*** empty log message ***
[luabind.git] / test / makefile
blob25c4c32bd2da78a3b8c64cf593f275e1a3f2cef4
1 CXX = g++
2 CXXFLAGS = -Wall -ftemplate-depth-50 -Os
4 sources =\
5 main.cpp\
6 test_iterator.cpp\
7 test_lua_classes.cpp\
8 test_typetraits.cpp\
9 test_construction.cpp\
10 test_operators.cpp\
11 test_attributes.cpp\
12 test_exceptions.cpp\
13 test_const.cpp\
14 test_null_pointer.cpp\
15 test_implicit_cast.cpp\
16 test_policies.cpp\
17 test_free_functions.cpp\
18 test_object.cpp\
19 test_held_type.cpp
21 target = test_luabind
23 #libs = -llua -llualib -L/scratch/lua-5.0/lib -L.
24 libs = -llua -llualib -lluabind -L/usr/local/lib -L../src
26 #inc = -I./ -I/scratch/lua-5.0/include -I- -I.. -I/scratch/boost_1_30_0
27 inc = -I./ -I/usr/local/include -I- -I..
30 RM = rm
31 AR = ar
32 MAKEDEPEND = $(CXX) -MM
33 DEPENDFILE = Makedepend
35 O_FILES = $(sources:.cpp=.o)
37 all: $(target)
39 $(target): $(O_FILES)
40 $(CXX) $(CXXFLAGS) $^ $(inc) $(libs) -o $@
42 .cpp:
43 $(CXX) $(CXXFLAGS) $(inc) -c -o $*.o $*.cpp
45 .cpp.o:
46 $(CXX) $(CXXFLAGS) $(inc) -c -o $*.o $*.cpp
48 depend:
49 touch $(DEPENDFILE)
50 $(RM) $(DEPENDFILE)
51 $(MAKEDEPEND) $(CXXFLAGS) $(inc) $(sources) > $(DEPENDFILE)
53 relink:
54 touch $(target)
55 $(RM) $(target)
56 make
58 clean:
59 touch core
60 touch $(O_FILES)
61 touch $(target)
62 $(RM) $(O_FILES) $(target) core
64 include $(DEPENDFILE)
65 # DO NOT DELETE