diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-01 13:50:52 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-01 13:58:09 +0100 |
commit | 8998bd04c94da08dc49ab62007da5604d53895c3 (patch) | |
tree | 43a588f7a372ce17d035536a56fd71691fa6a73f /Makefile | |
download | tr8vm-8998bd04c94da08dc49ab62007da5604d53895c3.tar.gz tr8vm-8998bd04c94da08dc49ab62007da5604d53895c3.zip |
Initial import
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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 + |