Mercurial > lcfOS
annotate cos/kernel/Makefile @ 33:d8185ddb6c7b
Added more interrupt handlers
author | windel |
---|---|
date | Sun, 15 Jan 2012 13:39:49 +0100 |
parents | 3a6a9b929db0 |
children | 8012221dd740 |
rev | line source |
---|---|
9 | 1 # vim: set noexpandtab: |
2 | |
29 | 3 all: lcfos.bin Makefile |
9 | 4 |
28 | 5 CRT0 = goto64.o |
9 | 6 |
28 | 7 CFLAGS = -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ |
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 |
29 | 13 lcfos.bin: $(CRT0) $(OBJECTS) link.ld |
33 | 14 ld -M -T link.ld -s -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 |