formated code and fix include error in interrupts.c
[lunaix-os.git] / lunaix-os / makefile
index 2ffc9304c692e0d72bc252a331c4945907c0dc81..2ff30c0eb64237e3c90822de8c5da038dfa66d73 100644 (file)
@@ -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)