Adds compiler optimization.
This commit is contained in:
parent
f73d831119
commit
aadccaa37a
1 changed files with 5 additions and 4 deletions
|
@ -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 $^
|
||||
|
|
Loading…
Reference in a new issue