Initial revision
[luabind.git] / test / makefile
blobf305f07d70fac0f0cb86d26910281c5b6c00aa42
1 CXX = g++
2 CXXFLAGS = -Wall -ftemplate-depth-50 -g
4 sources =\
5 main.cpp\
6 test_lua_classes.cpp\
7 test_typetraits.cpp\
8 test_construction.cpp\
9 test_operators.cpp\
10 test_attributes.cpp\
11 test_exceptions.cpp\
12 test_const.cpp\
13 test_null_pointer.cpp\
14 test_implicit_cast.cpp\
15 test_policies.cpp\
16 test_free_functions.cpp\
17 test_object.cpp\
18 test_held_type.cpp
20 target = test_luabind
22 #libs = -llua -llualib -L/scratch/lua-5.0/lib -L.
23 libs = -llua -llualib -L/usr/local/lib
25 #inc = -I./ -I/scratch/lua-5.0/include -I- -I.. -I/scratch/boost_1_30_0
26 inc = -I./ -I/usr/local/include -I- -I..
29 RM = rm
30 AR = ar
31 MAKEDEPEND = $(CXX) -MM
32 DEPENDFILE = Makedepend
34 O_FILES = $(sources:.cpp=.o)
36 all: $(target)
38 $(target): $(O_FILES)
39 $(CXX) $(CXXFLAGS) $^ $(inc) $(libs) -o $@
41 .cpp:
42 $(CXX) $(CXXFLAGS) $(inc) -c -o $*.o $*.cpp
44 .cpp.o:
45 $(CXX) $(CXXFLAGS) $(inc) -c -o $*.o $*.cpp
47 depend:
48 touch $(DEPENDFILE)
49 $(RM) $(DEPENDFILE)
50 $(MAKEDEPEND) $(CXXFLAGS) $(inc) $(sources) > $(DEPENDFILE)
52 relink:
53 touch $(target)
54 $(RM) $(target)
55 make
57 clean:
58 touch core
59 touch $(O_FILES)
60 touch $(target)
61 $(RM) $(O_FILES) $(target) core
63 include $(DEPENDFILE)
64 # DO NOT DELETE