aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 746491b0de70bb1ee8bf19747d305d3d1b1a4d98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC := gcc
CFLAGS := -std=c89 -Wpedantic -s -O2 -Wall -I.
LDFLAGS := 

all: tr8as tr8vm

tr8vm: vm.c vm.h
	$(CC) $(CFLAGS) -DDO_MAIN $< -o $@

tr8as: tr8as.c
	$(CC) $(CFLAGS) -DDO_MAIN $< -o $@

example: example.tr8 tr8vm
	./tr8vm example.tr8

example.tr8: example.asm tr8as
	./tr8as example.asm example.tr8

clean:
	rm -f tr8as tr8vm example.tr8

.PHONY: clean all example