summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2020-01-31 17:16:27 +0300
committerAleksey Veresov <aleksey@veresov.pro>2020-01-31 17:16:27 +0300
commit3032869b86efa52f20ad9840381a37017980f587 (patch)
treefdce664ffdc127e391dff6f94d84d98af57e3e6d /examples/Makefile
parent233c346c4af51371cb4744be5e1c9798d2fcac02 (diff)
downloadtexo-3032869b86efa52f20ad9840381a37017980f587.tar
texo-3032869b86efa52f20ad9840381a37017980f587.tar.xz
texo-3032869b86efa52f20ad9840381a37017980f587.zip
[xift] Almost done.
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile15
1 files changed, 5 insertions, 10 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 7d9937c..a3662b2 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -1,22 +1,20 @@
# Uncomment following to enable debug mode:
-DEBUG = yes
+# DEBUG = yes
CC = g++
EXAMPLES = plain lines markdown
-CPPFLAGS = -Wall -ansi
+CPPFLAGS = -Wall -ansi -pedantic
ifeq '$(DEBUG)' 'yes'
CPPFLAGS += -g -O0
else
CPPFLAGS += -O3
endif
-INCLUDE = -I../src -I$(SCRIPTDIR)
-LFLAGS = -L.. -ltexo -L$(SCRIPTDIR) -lscriptpp
+INCLUDE = -I../src
+LFLAGS = -L.. -ltexo
TEXO = ../libtexo.a
-SCRIPTDIR = ../../lib/scriptpp
-SCRIPTPP = $(SCRIPTDIR)/libscriptpp.a
default: $(EXAMPLES)
@@ -24,10 +22,7 @@ default: $(EXAMPLES)
$(TEXO):
cd ..; $(MAKE)
-$(SCRIPTPP):
- cd $(SCRIPTDIR); $(MAKE)
-
-%: %.cpp $(SCRIPTPP) $(TEXO)
+%: %.cpp $(TEXO)
$(CC) $(CPPFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@
clean: