Mercurial > lcfOS
annotate cos/kernel/Makefile @ 383:173e20a47fda
Added linker description loader
author | Windel Bouwman |
---|---|
date | Sun, 27 Apr 2014 17:40:39 +0200 |
parents | 5c20bd53cccd |
children |
rev | line source |
---|---|
9 | 1 # vim: set noexpandtab: |
2 | |
29 | 3 all: lcfos.bin Makefile |
9 | 4 |
28 | 5 CRT0 = goto64.o |
9 | 6 |
34
8012221dd740
Fixes for uninitialized data. This causes problems on real machines
windel
parents:
33
diff
changeset
|
7 CFLAGS = -g -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ |
28 | 8 -fno-builtin -mcmodel=large -Wall -Wextra -Werror |
9 | 9 |
28 | 10 OBJECTS = video.o snprintf.o kernel.o asmcode.o handlers.o keyboard.o \ |
37 | 11 klib.o malloc.o task.o mm.o timer.o fs.o initrd.o multiboot.o \ |
12 shell.o | |
14 | 13 |
36 | 14 lcfos.bin: $(CRT0) $(OBJECTS) kernel.ld |
15 ld -g -T kernel.ld -s --cref -Map=kernel.map -o lcfos.bin $(CRT0) $(OBJECTS) | |
9 | 16 |
29 | 17 %.o : %.asm |
9 | 18 nasm -f elf64 -o $@ $< |
19 | |
30 | 20 %.o : %.c kernel.h |
28 | 21 gcc $(CFLAGS) -o $@ -c $< |
9 | 22 |
23 clean: | |
32
3a6a9b929db0
Added initial ramdisk and some virtual file system functions
windel
parents:
30
diff
changeset
|
24 rm $(OBJECTS) $(CRT0) lcfos.bin |
9 | 25 |