Mercurial > lcfOS
annotate cos/Makefile @ 22:69bc6d477b38
Added python run function
author | windel |
---|---|
date | Wed, 30 Nov 2011 22:41:51 +0100 |
parents | b1fed2171e1a |
children | d8627924d40d |
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 \ |
22 | 18 -mcmodel=large |
9 | 19 |
20 OBJECTS = \ | |
21 kernel/video.o \ | |
22 kernel/snprintf.o \ | |
14 | 23 kernel/kernel.o \ |
24 kernel/asmcode.o \ | |
25 kernel/handlers.o | |
26 | |
20 | 27 lcfosc.bin: $(CRT0) $(OBJECTS) linker.ld |
22 | 28 ld -T linker.ld -s -o lcfosc.bin $(CRT0) $(OBJECTS) |
9 | 29 |
12 | 30 %.o : %.asm Makefile |
9 | 31 nasm -f elf64 -o $@ $< |
32 | |
12 | 33 %.o : %.c Makefile |
9 | 34 gcc $(CFLAGS) -o $@ -c $< -Wall -Wextra -Werror |
35 | |
36 clean: | |
20 | 37 rm $(OBJECTS) $(CRT0) lcfosc.bin |
9 | 38 |