summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-21 10:32:51 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-21 10:35:53 +0100
commitf017ddf090f9602e750c7db22d034b4a707fff1f (patch)
tree68f6b988962adda6225fe5522dcb524ca10bfa2f /Makefile
Initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6e84e3d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+CC = gcc
+CFLAGS = -Wall -Wextra -std=c99 -fwrapv
+ifneq ($(DEBUG),)
+ CFLAGS += -g
+else
+ CFLAGS += -O2
+endif
+BIN = bin2c
+
+.PHONY: all clean remake
+
+all: $(BIN)
+
+clean:
+ rm -rf $(BIN) *.dSYM
+
+remake: clean all