old-SuperVM/libvm/Makefile

34 lines
445 B
Makefile
Raw Normal View History

2016-06-29 08:55:22 +00:00
CC = gcc
all: explink expdump emulator as
2016-06-29 08:55:22 +00:00
.PHONY: as clean run
2016-06-29 14:39:25 +00:00
explink: explink.c
$(CC) -g -o bin/$@ $^
2016-06-29 14:39:25 +00:00
expdump: expdump.c mnemonics.c disassembler.c
$(CC) -g -o bin/$@ $^
2016-06-29 08:55:22 +00:00
emulator: emulator.c vm.c
$(CC) -g -o bin/$@ $^ -lSDL
as:
make -C as
2016-06-29 08:55:22 +00:00
test: exp
./exp -o test.exp $(ARGS)
hexdump -C test.exp
run: test.exp
./bin/emulator -d $^
%.exp: %.bin
./bin/explink -o $@ -c $^
%.bin: %.asm
./bin/as -o $@ -L $^
clean:
rm *.bin