Mercurial > lcfOS
annotate cos/Makefile @ 27:7f74363f4c82
Added some files for the python port
author | windel |
---|---|
date | Tue, 27 Dec 2011 18:59:02 +0100 |
parents | dcce92b1efbc |
children |
rev | line source |
---|---|
9 | 1 # vim: set noexpandtab: |
2 | |
12 | 3 all: bootdisk.img Makefile |
9 | 4 |
20 | 5 bootdisk.img: lcfosc.bin grub/menu.lst Makefile |
9 | 6 cp grub/emptybootdisk.img bootdisk.img |
7 mcopy -D o -i bootdisk.img lcfosc.bin :: | |
8 mcopy -D o -i bootdisk.img grub/menu.lst ::/grub | |
9 | |
10 CRT0 = kernel/goto64.o | |
11 | |
12 CFLAGS = -m64 \ | |
13 -nostdinc \ | |
14 -nostdlib \ | |
15 -nostartfiles \ | |
18
6129643f5c34
Fixed interrupt issue, ds, es, ss, fs and gs were not initialized to 0
windel
parents:
14
diff
changeset
|
16 -mno-red-zone \ |
9 | 17 -fno-builtin \ |
27 | 18 -mcmodel=large \ |
19 -Ipython/Include | |
9 | 20 |
21 OBJECTS = \ | |
22 kernel/video.o \ | |
23 kernel/snprintf.o \ | |
14 | 24 kernel/kernel.o \ |
25 kernel/asmcode.o \ | |
24 | 26 kernel/handlers.o \ |
27 kernel/keyboard.o \ | |
28 kernel/klib.o \ | |
29 kernel/malloc.o \ | |
25 | 30 kernel/task.o \ |
26 | 31 kernel/mm.o \ |
24 | 32 kernel/timer.o |
14 | 33 |
20 | 34 lcfosc.bin: $(CRT0) $(OBJECTS) linker.ld |
22 | 35 ld -T linker.ld -s -o lcfosc.bin $(CRT0) $(OBJECTS) |
9 | 36 |
12 | 37 %.o : %.asm Makefile |
9 | 38 nasm -f elf64 -o $@ $< |
39 | |
12 | 40 %.o : %.c Makefile |
9 | 41 gcc $(CFLAGS) -o $@ -c $< -Wall -Wextra -Werror |
42 | |
43 clean: | |
20 | 44 rm $(OBJECTS) $(CRT0) lcfosc.bin |
9 | 45 |