<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2021-10-03 21:31:59 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2021-10-03 21:31:59 +0100
commitd973b4b8eaaa5e7f1d10f9f02069c6d7bde25dcc (patch)
tree814987a1977dc62251fc05a1a76526d2479722dd /Makefile
parent69852d9ae210080e999eb5bbb81481f527580a97 (diff)
downloadcudl-d973b4b8eaaa5e7f1d10f9f02069c6d7bde25dcc.tar
Add testing code and fix a few bugs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ebfaa61..0e38739 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,9 @@
CC=tcc
-BIN=test
+CFLAGS=-I.
-test: test.o
+test: test.o cudl.o
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+test.o: cudl.h