X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/e0ee3d449aacd33a84cb1f58961e55f9f06acb46..8ef44e8d53fcd532d6c581e1984532df3f01c7b8:/lunaix-os/makefile?ds=inline 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)