From 8998bd04c94da08dc49ab62007da5604d53895c3 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Mon, 1 May 2023 13:50:52 +0100 Subject: Initial import --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..746491b --- /dev/null +++ b/Makefile @@ -0,0 +1,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 + -- cgit v1.2.3