about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..28efc74
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+CFLAGS ?= -Wall -Werror -g
+.DEFAULT_GOAL := all
+
+build/cutec: build src/cutec.c
+	$(CC) $(CPPFLAGS) -o build/cutec src/cutec.c
+
+build:
+	mkdir -p ./build
+
+.PHONY: all run clean
+
+all: build/cutec
+
+run: build/cutec
+	./build/cutec
+
+clean:
+	rm -rf build/*