summaryrefslogtreecommitdiff
path: root/example/makefile
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-09-27 18:09:07 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-09-27 18:09:07 +0300
commit2eae362fd3f50325067fa3d7e13db6882df80e76 (patch)
treea6eff5f8f12b990e3d256d4b02fdb86d70d81eac /example/makefile
downloadtexo-2eae362fd3f50325067fa3d7e13db6882df80e76.tar
texo-2eae362fd3f50325067fa3d7e13db6882df80e76.tar.xz
texo-2eae362fd3f50325067fa3d7e13db6882df80e76.zip
Texo initial.
Diffstat (limited to 'example/makefile')
-rw-r--r--example/makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/example/makefile b/example/makefile
new file mode 100644
index 0000000..5255f5b
--- /dev/null
+++ b/example/makefile
@@ -0,0 +1,24 @@
+# Uncomment following to enable debug mode:
+# DEBUG = yes
+
+CC = g++
+EXAMPLES = plain_to_html
+
+CFLAGS = -Wall
+ifeq '$(DEBUG)' 'yes'
+CFLAGS += -g -O0
+else
+CFLAGS += -O3
+endif
+
+INCLUDE = -I ../src
+LFLAGS = -L.. -ltexo
+
+
+default: $(EXAMPLES)
+
+%: %.cpp
+ $(CC) $(CFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@
+
+clean:
+ rm -f $(EXAMPLES)