diff --git a/src/bin/init/Makefile b/src/bin/init/Makefile index 625ee5a..ee8dc4e 100755 --- a/src/bin/init/Makefile +++ b/src/bin/init/Makefile @@ -45,7 +45,7 @@ $(GCC) -Wall -fomit-frame-pointer -O $(CFLAGS) -S -o $@ $< .S.o: - $(GCC) -Wall -fomit-frame-pointer -c -o $@ $< + $(GCC) -Wall -fomit-frame-pointer -c -o ${CFLAGS} $@ $< # Clean Up The junk clean: diff --git a/src/lib/libc/stdlib/Makefile b/src/lib/libc/stdlib/Makefile index 0edcb02..854317c 100755 --- a/src/lib/libc/stdlib/Makefile +++ b/src/lib/libc/stdlib/Makefile @@ -6,6 +6,8 @@ GCC = gcc G++ = gcc +CFLAGS = -fno-builtin + #Linker LD = ld -Bshareable AR = ar @@ -22,19 +24,19 @@ # Compile the source files .cc.o: - $(G++) -Wall -nostdinc -O -I../include -c -o $@ $< + $(G++) -Wall ${CFLAGS} -nostdinc -O -I../include -c -o $@ $< .cc.s: - $(G++) -Wall -nostdinc -O -I../include -S -o $@ $< + $(G++) -Wall ${CFLAGS} -nostdinc -O -I../include -S -o $@ $< .c.o: - $(GCC) -Wall -nostdinc -O -I../include -c $< + $(GCC) -Wall ${CFLAGS} -nostdinc -O -I../include -c $< .c.s: - $(GCC) -Wall -nostdinc -O -I../include -S -o $@ $< + $(GCC) -Wall ${CFLAGS} -nostdinc -O -I../include -S -o $@ $< .S.o: - $(GCC) -Wall -nostdinc -c -o $@ $< + $(GCC) -Wall ${CFLAGS} -nostdinc -c -o $@ $< # Clean up the junk clean: