From 0d7cde7c4d735ebebd39b988440f50f5889bd29f Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 8 Feb 2015 12:15:06 -0500 Subject: lots of stuff --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 582f7c5..476b8f7 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,16 @@ OBJ := $(shell cat OBJ) CC = gcc LD = ld -INCLUDES = -Idrivers/include -Ikernel/include -Ilibc/include -CFLAGS = -std=gnu99 -ffreestanding -fno-stack-protector -nostdlib -Wall -Wextra -m32 $(INCLUDES) -g +INCLUDES = -Idrivers/include -Ikernel/include -Ilibc/include -Iapps/ + +CFLAGS := -std=gnu99 -ffreestanding -fno-stack-protector -nostdlib -Wall -Wextra -m32 $(INCLUDES) -g -O1 -mtune=generic -msse +CFLAGS += -fexpensive-optimizations -ftree-loop-vectorize -finline-functions -fomit-frame-pointer -ftree-vectorize + QEMU = qemu-system-i386 BOCHS = bochs AS = as -ASFLAGS=-march=i686 --32 +ASFLAGS = -march=i686 --32 ISODIR = isodir @@ -34,11 +37,11 @@ iso: kappa.bin kappa.bin: $(OBJ) $(SOURCES) Makefile @$(LD) -T kernel/linker.ld -o kappa.bin -melf_i386 $(OBJ) @echo "LD $@" -%.o: %.c +%.o: %.c Makefile @$(CC) $(CFLAGS) -c $< -o $@ @echo "CC $<" -%.o: %.S +%.o: %.S Makefile @$(AS) $(ASFLAGS) -c $< -o $@ @echo "AS $<" clean: -- cgit v1.1