Mercurial > lcfOS
annotate cos/kernel/Makefile @ 36:91f91ff07ea8
Removed test variables
author | windel |
---|---|
date | Mon, 16 Jan 2012 20:47:05 +0100 |
parents | 8012221dd740 |
children | 5c20bd53cccd |
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 \ |
32
3a6a9b929db0
Added initial ramdisk and some virtual file system functions
windel
parents:
30
diff
changeset
|
11 klib.o malloc.o task.o mm.o timer.o fs.o initrd.o |
14 | 12 |
36 | 13 lcfos.bin: $(CRT0) $(OBJECTS) kernel.ld |
14 ld -g -T kernel.ld -s --cref -Map=kernel.map -o lcfos.bin $(CRT0) $(OBJECTS) | |
9 | 15 |
29 | 16 %.o : %.asm |
9 | 17 nasm -f elf64 -o $@ $< |
18 | |
30 | 19 %.o : %.c kernel.h |
28 | 20 gcc $(CFLAGS) -o $@ -c $< |
9 | 21 |
22 clean: | |
32
3a6a9b929db0
Added initial ramdisk and some virtual file system functions
windel
parents:
30
diff
changeset
|
23 rm $(OBJECTS) $(CRT0) lcfos.bin |
9 | 24 |