Mercurial > lcfOS
annotate cos/Makefile @ 18:6129643f5c34
Fixed interrupt issue, ds, es, ss, fs and gs were not initialized to 0
author | windel |
---|---|
date | Sun, 20 Nov 2011 20:35:51 +0100 |
parents | a58904747019 |
children | b1fed2171e1a |
rev | line source |
---|---|
9 | 1 # vim: set noexpandtab: |
2 | |
12 | 3 all: bootdisk.img Makefile |
9 | 4 |
12 | 5 bootdisk.img: lcfosc.elf grub/menu.lst Makefile |
9 | 6 objcopy -O binary lcfosc.elf lcfosc.bin |
7 cp grub/emptybootdisk.img bootdisk.img | |
8 mcopy -D o -i bootdisk.img lcfosc.bin :: | |
9 mcopy -D o -i bootdisk.img grub/menu.lst ::/grub | |
10 mdir -i bootdisk.img | |
11 | |
12 CRT0 = kernel/goto64.o | |
13 | |
14 CFLAGS = -m64 \ | |
15 -nostdinc \ | |
16 -nostdlib \ | |
17 -nostartfiles \ | |
18
6129643f5c34
Fixed interrupt issue, ds, es, ss, fs and gs were not initialized to 0
windel
parents:
14
diff
changeset
|
18 -mno-red-zone \ |
9 | 19 -fno-builtin \ |
12 | 20 -mcmodel=large \ |
9 | 21 -Iinclude |
22 | |
23 OBJECTS = \ | |
24 kernel/video.o \ | |
25 kernel/snprintf.o \ | |
14 | 26 kernel/kernel.o \ |
27 kernel/asmcode.o \ | |
28 kernel/handlers.o | |
29 | |
9 | 30 |
31 lcfosc.elf: $(CRT0) $(OBJECTS) linker.ld | |
32 ld -T linker.ld -o lcfosc.elf $(CRT0) $(OBJECTS) | |
33 | |
12 | 34 %.o : %.asm Makefile |
9 | 35 nasm -f elf64 -o $@ $< |
36 | |
12 | 37 %.o : %.c Makefile |
9 | 38 gcc $(CFLAGS) -o $@ -c $< -Wall -Wextra -Werror |
39 | |
40 clean: | |
41 rm $(OBJECTS) $(CRT0) lcfosc.bin lcfosc.elf | |
42 |