diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-09 08:59:02 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-09 08:59:02 +0200 |
commit | 7d8b1ff684b412da292e0fc734748975188a0f10 (patch) | |
tree | 2673e3da51cc80bfc38a426048b30a4d71c31d4c /tolua/src/tests/Makefile | |
parent | 62c5bb90525baf0d82c23892c2666f611750d63c (diff) | |
download | crawler-7d8b1ff684b412da292e0fc734748975188a0f10.tar.gz crawler-7d8b1ff684b412da292e0fc734748975188a0f10.tar.bz2 |
first trials with a Google normalizer called from Lua, std::string is the problem currently
and the missing wrapper for the URL class
also added a local 'tolua', we will have to hack it
Diffstat (limited to 'tolua/src/tests/Makefile')
-rw-r--r-- | tolua/src/tests/Makefile | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/tolua/src/tests/Makefile b/tolua/src/tests/Makefile new file mode 100644 index 0000000..9fb6bb1 --- /dev/null +++ b/tolua/src/tests/Makefile @@ -0,0 +1,84 @@ +# makefile for tolua executable + +TOLUA=../.. +TOLUAEXE = tolua + +include $(TOLUA)/config + +LIBS = -ltolua -llua + +EXE = tmodule tnamespace tclass tinheritance tconstant tvariable tfunction tarray tdirective tenum tvararg + +all: $(EXE) + ./tmodule; ./tnamespace; ./tclass; ./tinheritance; ./tconstant; ./tvariable; ./tfunction; ./tarray; ./tdirective; ./tfunction; ./tenum; ./tvararg + +tarray: tarray.o tarraybind.o + $(CC) $(CFLAGS) -o $@ tarray.o tarraybind.o $(TLIB) $(LIB) $(LIBS) +tarraybind.c: tarray.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tvariable: tvariable.o tvariablebind.o + $(CC) $(CFLAGS) -o $@ tvariable.o tvariablebind.o $(TLIB) $(LIB) $(LIBS) +tvariablebind.c: tvariable.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tmodule: tmodule.o tmodulebind.o + $(CC) $(CFLAGS) -o $@ tmodule.o tmodulebind.o $(TLIB) $(LIB) $(LIBS) +tmodulebind.c: tmodule.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tnamespace: tnamespace.o tnamespacebind.o + $(CCPP) $(CFLAGS) -o $@ tnamespace.o tnamespacebind.o $(TLIB) $(LIB) $(LIBS) +tnamespacebind.cpp: tnamespace.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tdirective: tdirectivebind.o + $(CC) $(CFLAGS) -o $@ tdirectivebind.o $(TLIB) $(LIB) $(LIBS) +tdirectivebind.c: tdirective.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tfunction: tfunction.o tfunctionbind.o + $(CCPP) $(CPPFLAGS) -o $@ tfunction.o tfunctionbind.o $(TLIB) $(LIB) $(LIBS) +tfunctionbind.cpp: tfunction.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tconstant: tconstant.o tconstantbind.o + $(CCPP) $(CPPFLAGS) -o $@ tconstant.o tconstantbind.o $(TLIB) $(LIB) $(LIBS) +tconstantbind.cpp: tconstant.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tclass: tclass.o tclassbind.o + $(CCPP) $(CPPFLAGS) -o $@ tclass.o tclassbind.o $(TLIB) $(LIB) $(LIBS) +tclassbind.cpp: tclass.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tinheritance: tinheritance.o tinheritancebind.o + $(CCPP) $(CPPFLAGS) -o $@ tinheritance.o tinheritancebind.o $(TLIB) $(LIB) $(LIBS) +tinheritancebind.cpp: tinheritance.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tenum: tenum.o tenumbind.o + $(CC) $(CPPFLAGS) -o $@ tenum.o tenumbind.o $(TLIB) $(LIB) $(LIBS) +tenumbind.c: tenum.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +tvararg: tvararg.o tvarargbind.o + $(CCPP) $(CPPFLAGS) -o $@ tvararg.o tvarargbind.o $(TLIB) $(LIB) $(LIBS) +tvarargbind.cpp: tvararg.pkg + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +.cpp.o: + $(CCPP) -c $(CPPFLAGS) -o $@ $< + +.pkg.cpp: + $(TOLUA)/bin/$(TOLUAEXE) -o $@ $< + +clean: + rm -f t*bind.* + rm -f *.o + +klean: + rm -f $(EXE) + + + |