summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..79cc3c5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+OBJS=gb.o test.o lodepng.o
+CFLAGS=-W -Wall -pedantic -Werror -Wextra -std=c11 -O3
+APP=./test
+
+.PHONY=all clean test
+
+all: $(APP)
+
+gb.c: ops.yaml
+ ./gen.rb > gb.c
+
+$(APP): $(OBJS)
+ $(CC) -o $(APP) $(OBJS)
+
+%.o: %.c gb.h
+ $(CC) -c $(CFLAGS) $<
+
+clean:
+ $(RM) $(OBJS) $(APP)