diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 11 insertions, 12 deletions
@@ -5,15 +5,10 @@ # # ##################### - -############ phony targets ############ - -.PHONY: all clean run stick new newrun - - ############ some constants ############ -USB_STICK=/dev/sdf #take care! +#take care to set this properly! +USB_STICK=/dev/sdf #here our kernel will be loaded by the bootloader. KERNEL_START=0x100000 @@ -21,12 +16,17 @@ KERNEL_START=0x100000 #use our cross compiler CC=i686-elf-gcc -############ flags ############ +############ compiler flags ############ -CFLAGS=-ffreestanding -nostdlib -lgcc -std=gnu11 +CFLAGS= +CFLAGS+=-ffreestanding +CFLAGS+=-nostdlib +CFLAGS+=-std=gnu11 CFLAGS+= -I. -CFLAGS+= -Wno-implicit-function-declaration -#CFLAGS+= -O0 + +#CFLAGS+=-lgcc +#CFLAGS+= -Wno-implicit-function-declaration +#CFLAGS+= -O4 #CFLAGS+=-fdata-sections -ffunction-sections #CFLAGS+= -Werror @@ -80,7 +80,6 @@ newrun: clean run # the kernel_entry.o needs to be FIRST!! kernel.bin: $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) $(CC) $(CFLAGS) -o $@ -Wl,-Ttext,$(KERNEL_START),--oformat,binary $^ - #ld -o $@ -Ttext $(KERNEL_START) --oformat binary -melf_i386 $^ -O0 # --gc-sections --entry=kernel_main -v ############ fool-font ############ |
