kern
diff Makefile @ 38:e6f75f91e606
- added makefile pattern to produce assembly output from c source files.
- removed a commented out previous version of the gmtime_r function in klibc/time.c
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 10 Jun 2011 23:19:25 +0300 |
parents | 2cbc2b922e49 |
children | 928b0ebfff4d |
line diff
1.1 --- a/Makefile Fri Jun 10 19:54:47 2011 +0300 1.2 +++ b/Makefile Fri Jun 10 23:19:25 2011 +0300 1.3 @@ -12,7 +12,7 @@ 1.4 1.5 # -nostdinc instructs the compiler to ignore standard include directories 1.6 # -m32 instructs the compiler to produce 32bit code (in case we have a 64bit compiler) 1.7 -CFLAGS = -m32 -Wall -g -nostdinc -fno-builtin $(inc) 1.8 +CFLAGS = -O0 -m32 -Wall -g -nostdinc -fno-builtin $(inc) 1.9 ASFLAGS = -m32 -g -nostdinc -fno-builtin $(inc) 1.10 1.11 bin = kernel.elf 1.12 @@ -23,6 +23,9 @@ 1.13 $(bin): $(obj) 1.14 ld -melf_i386 -o $@ -Ttext 0x100000 -e kentry $(obj) -Map link.map 1.15 1.16 +%.s: %.c 1.17 + $(CC) $(CFLAGS) -S -o $@ $< 1.18 + 1.19 -include $(dep) 1.20 1.21 %.d: %.c