Adds compiler optimization.

This commit is contained in:
Felix Queißner 2016-07-01 11:18:31 +02:00
parent f73d831119
commit aadccaa37a

View file

@ -1,18 +1,19 @@
CC = gcc
CFLAGS=-O3
all: explink expdump emulator as
.PHONY: as clean run
explink: explink.c
$(CC) -g -o bin/$@ $^
$(CC) -g -o bin/$@ $^ $(CFLAGS)
expdump: expdump.c mnemonics.c disassembler.c
$(CC) -g -o bin/$@ $^
$(CC) -g -o bin/$@ $^ $(CFLAGS)
emulator: emulator.c vm.c
$(CC) -g -o bin/$@ $^ -lSDL
$(CC) -g -o bin/$@ $^ -lSDL $(CFLAGS)
as:
make -C as
@ -22,7 +23,7 @@ test: exp
hexdump -C test.exp
run: test.exp
./bin/emulator -d $^
./bin/emulator -dV $^
%.exp: %.bin
./bin/explink -o $@ -c $^