X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/e0ee3d449aacd33a84cb1f58961e55f9f06acb46..f4aab93debd6eed5115c2328ada3160512027bd2:/lunaix-os/makefile diff --git a/lunaix-os/makefile b/lunaix-os/makefile index 2ffc930..2ff30c0 100644 --- a/lunaix-os/makefile +++ b/lunaix-os/makefile @@ -18,7 +18,7 @@ OS_ISO = $(OS_NAME).iso CC := i686-elf-gcc AS := i686-elf-as -O := -O3 +O := -O2 W := -Wall -Wextra CFLAGS := -std=gnu99 -ffreestanding $(O) $(W) LDFLAGS := -ffreestanding $(O) -nostdlib -lgcc @@ -39,7 +39,7 @@ $(ISO_DIR): $(OBJECT_DIR)/%.S.o: %.S @mkdir -p $(@D) - $(CC) -c $< -o $@ + $(CC) $(INCLUDES) -c $< -o $@ $(OBJECT_DIR)/%.c.o: %.c @mkdir -p $(@D)