aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2024-04-01 14:00:27 -0600
committerJack Sangdahl <[email protected]>2024-04-01 14:00:27 -0600
commit6fb34179efc44a8d3d39cfa7a514ecaaed83e9f8 (patch)
treef4712db984d79223630c4d9bd15a2a29a4d4ea38 /Makefile
downloadsynacor_challenge-6fb34179efc44a8d3d39cfa7a514ecaaed83e9f8.tar.gz
synacor_challenge-6fb34179efc44a8d3d39cfa7a514ecaaed83e9f8.zip
initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..896bfd4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+OBJS = main.o util.o vm.o memory.o stack.o
+CFLAGS = -Wall -DNDEBUG
+
+all: $(OBJS)
+ cc $(CFLAGS) -o vm $(OBJS)
+
+test:
+ ./validate.sh codes.txt
+
+clean:
+ rm *.o vm
+
+util.o: util.h
+vm.o: vm.h
+memory.o: memory.h
+stack.o: stack.h