summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
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: