diff options
| author | Franklin Wei <frankhwei536@gmail.com> | 2015-02-08 17:32:23 -0500 |
|---|---|---|
| committer | Franklin Wei <frankhwei536@gmail.com> | 2015-02-08 17:32:23 -0500 |
| commit | 52d2b12c32ab15f4314cf5f0b27ea24709ed1cb1 (patch) | |
| tree | a092e2e798139456d5f1b2f6b320a6c60a705205 /Makefile | |
| parent | 0d7cde7c4d735ebebd39b988440f50f5889bd29f (diff) | |
| download | kappa-52d2b12c32ab15f4314cf5f0b27ea24709ed1cb1.zip kappa-52d2b12c32ab15f4314cf5f0b27ea24709ed1cb1.tar.gz kappa-52d2b12c32ab15f4314cf5f0b27ea24709ed1cb1.tar.bz2 kappa-52d2b12c32ab15f4314cf5f0b27ea24709ed1cb1.tar.xz | |
lots of optimization, new features
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -3,8 +3,8 @@ CC = gcc LD = ld 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 +CFLAGS = -std=gnu99 -ffreestanding -fno-stack-protector -nostdlib -Wall -Wextra -m32 $(INCLUDES) -g +OPTFLAGS = -fexpensive-optimizations -ftree-loop-vectorize -finline-functions -fomit-frame-pointer -ftree-vectorize -O1 -mtune=generic QEMU = qemu-system-i386 BOCHS = bochs @@ -37,13 +37,19 @@ iso: kappa.bin kappa.bin: $(OBJ) $(SOURCES) Makefile @$(LD) -T kernel/linker.ld -o kappa.bin -melf_i386 $(OBJ) @echo "LD $@" + +drivers/gfx.o: drivers/gfx.c Makefile + @echo "CC $<" + @$(CC) $(CFLAGS) -O3 -msse -c $< -o $@ + %.o: %.c Makefile - @$(CC) $(CFLAGS) -c $< -o $@ @echo "CC $<" + @$(CC) $(CFLAGS) $(OPTFLAGS) -c $< -o $@ + %.o: %.S Makefile - @$(AS) $(ASFLAGS) -c $< -o $@ @echo "AS $<" + @$(AS) $(ASFLAGS) -c $< -o $@ clean: @echo "Cleaning build directory..." @rm -f $(OBJ) kappa.iso kappa.bin |