aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-08-28 09:07:08 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-08-28 09:07:08 +0300
commit749cdb81da654efad8e8b54c772f4c92b7330ed7 (patch)
tree67bb943511c325408431ab7ce27caeb85f096844 /Makefile
parent0ffd577cd6ee67d7e3f4af9b1102e9ac1af78925 (diff)
downloadtela-749cdb81da654efad8e8b54c772f4c92b7330ed7.tar
tela-749cdb81da654efad8e8b54c772f4c92b7330ed7.tar.xz
tela-749cdb81da654efad8e8b54c772f4c92b7330ed7.zip
Refactored.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1ddb25d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+DEBUG ?= yes
+
+CFLAGS = -xc -ansi -Wall
+ifeq '$(DEBUG)' 'yes'
+CFLAGS += -g -O0
+else
+CFLAGS += -O3
+endif
+
+tl_example: tl_example.c tl.c
+ gcc $(CFLAGS) $^ -I. -o $@
+
+.PHONY: clean
+clean:
+ rm -f tl_example