summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-10-18 12:37:46 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-10-18 12:37:46 +0300
commit9a23fd146be4ba64b0cb720993bdc73a514fecf2 (patch)
tree9c8d9554d37f7ab25087e1468c012fb41a6e39ee /examples/Makefile
parent7b09f265c1deb12c9e6778c4d92473d66fc5406b (diff)
downloadtexo-9a23fd146be4ba64b0cb720993bdc73a514fecf2.tar
texo-9a23fd146be4ba64b0cb720993bdc73a514fecf2.tar.xz
texo-9a23fd146be4ba64b0cb720993bdc73a514fecf2.zip
.
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/Makefile b/examples/Makefile
index be725ae..d288391 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -11,10 +11,12 @@ else
CPPFLAGS += -O3
endif
-INCLUDE = -I../src
-LFLAGS = -L.. -ltexo
+INCLUDE = -I../src -I$(SCRIPTDIR)
+LFLAGS = -L.. -ltexo -L$(SCRIPTDIR) -lscriptpp
TEXO = ../libtexo.a
+SCRIPTDIR = ../../lib/scriptpp
+SCRIPTPP = $(SCRIPTDIR)/libscriptpp.a
default: $(EXAMPLES)
@@ -22,7 +24,10 @@ default: $(EXAMPLES)
$(TEXO):
cd ..; $(MAKE)
-%: %.cpp $(TEXO)
+$(SCRIPTPP):
+ cd $(SCRIPTDIR); $(MAKE)
+
+%: %.cpp $(SCRIPTPP) $(TEXO)
$(CC) $(CPPFLAGS) $(INCLUDE) $< $(LFLAGS) -o $@
clean: