Mercurial > lcfOS
diff cos/Makefile @ 12:fcdae30b2782
Fixup of variable argument things
author | windel |
---|---|
date | Mon, 14 Nov 2011 21:31:27 +0100 |
parents | 607898120eb1 |
children | a58904747019 |
line wrap: on
line diff
--- a/cos/Makefile Sun Nov 13 23:24:10 2011 +0100 +++ b/cos/Makefile Mon Nov 14 21:31:27 2011 +0100 @@ -1,8 +1,8 @@ # vim: set noexpandtab: -all: lcfosc.elf +all: bootdisk.img Makefile -bootdisk.img: lcfosc.elf grub/menu.lst +bootdisk.img: lcfosc.elf grub/menu.lst Makefile objcopy -O binary lcfosc.elf lcfosc.bin cp grub/emptybootdisk.img bootdisk.img mcopy -D o -i bootdisk.img lcfosc.bin :: @@ -16,6 +16,7 @@ -nostdlib \ -nostartfiles \ -fno-builtin \ + -mcmodel=large \ -Iinclude OBJECTS = \ @@ -26,10 +27,10 @@ lcfosc.elf: $(CRT0) $(OBJECTS) linker.ld ld -T linker.ld -o lcfosc.elf $(CRT0) $(OBJECTS) -%.o : %.asm +%.o : %.asm Makefile nasm -f elf64 -o $@ $< -%.o : %.c +%.o : %.c Makefile gcc $(CFLAGS) -o $@ -c $< -Wall -Wextra -Werror clean: