diff options
| author | Miguel <m.i@gmx.at> | 2018-08-17 17:51:51 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-17 17:51:51 +0200 |
| commit | 51d4dd040a291b62c648ff6cc0d7e0058cf4056f (patch) | |
| tree | 142b7db302ba038dba526f99e5854cfc87b5f92e /Makefile | |
| parent | 006214f8c63189500b6ca55e0ef8f97eb35d47f5 (diff) | |
starting implicit function calls cleanup
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 37 |
1 files changed, 16 insertions, 21 deletions
@@ -1,9 +1,7 @@ - ##################### - # # - # FoolOS Build Sys. # - # # - ##################### + #################### + # FoolOS Build Sys # + #################### .PHONY: all new run newrun stick clean tags mount umount @@ -18,32 +16,29 @@ CC=i686-elf-gcc AS=i686-elf-as ############ compiler flags ############ + CFLAGS= -## CFLAGS+=-fstack-protector-all -CFLAGS+=-Wno-implicit-function-declaration -## CFLAGS+=-w -CFLAGS+=-ffreestanding -#CFLATS+=-Wall -#CFLAGS+=-Wextra -#CFLAGS+=-O3 +CFLAGS+=-ffreestanding # do we need this if using own compiler? +CFLAGS+=-nostdlib CFLAGS+=-O0 -#CFLAGS+=-nostdlib -CFLAGS+=-std=gnu11 CFLAGS+=-I. -#CFLAGS+=-I/home/miguel/temp/fool-os-stuff/newlib-2.1.0/newlib/libc/include CFLAGS+=-I/home/miguel/foolos/usr/i686-foolos//include/ CFLAGS+=-gstabs -#CFLAGS+=-lgcc + +#CFLAGS+=-fstack-protector-all #CFLAGS+=-fno-zero-initialized-in-bss -#CFLAGS+= -O4 #CFLAGS+=-fdata-sections -ffunction-sections + +#CFLAGS+= -w # disable all warnings +#CFLAGS+= -Wimplicit-function-declaration +#CFLAGS+= -Wextra +#CFLAGS+= -Wall #CFLAGS+= -Werror -CFLAGS+= -w +CFLAGS+= -Werror=implicit-function-declaration ######## linker flags #################### LDFLAGS= -LDFLAGS+=-nostdlib -LDFLAGS+=-lgcc +LDLIBS+=-lgcc ########## assembler flags ################# ASFLAGS= @@ -121,7 +116,7 @@ $(CLEANDIRS): ############ linking kernel binary ############ $(KERNEL_IMG): $(ASM_MULTIBOOT_OBJ) $(ASM_OBJECTS) $(OBJECTS) - $(CC) $(CFLAGS) $(LDFLAGS) -T linker.ld -o $@ $^ + $(CC) $(CFLAGS) $(LDFLAGS) -T linker.ld -o $@ $^ $(LDLIBS) ############ assembling of final image ############ |
