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