Rewrote build instructions.
[luabind.git] / src / makefile
blob06e88222573c1ff629e53e73b4353b8343560444
1 include ../config
3 SOURCES = \
4 wrapper_base.cpp \
5 pcall.cpp \
6 error.cpp \
7 ref.cpp \
8 scope.cpp \
9 class.cpp \
10 class_rep.cpp \
11 function.cpp \
12 find_best_match.cpp \
13 implicit_cast.cpp \
14 open.cpp \
15 create_class.cpp \
16 stack_content_by_name.cpp \
17 object_rep.cpp \
18 class_info.cpp \
19 class_registry.cpp \
20 link_compatibility.cpp \
21 weak_ref.cpp \
22 overload_rep.cpp \
23 link_compatibility.cpp
25 OBJECTS = $(SOURCES:.cpp=.o)
27 TARGET = ../lib/libluabind.a
33 all: $(TARGET)
35 $(TARGET): $(OBJECTS)
36 $(AR) rcu $@ $(OBJECTS)
37 ranlib $@
39 %.o:%.cpp
40 $(CXX) -g -ftemplate-depth-100 -Wall -DLUABIND_BUILDING -c $? -o $@ -I$(LUA_PATH)/include -I- -I.. -I$(BOOST_ROOT) $(CONFIG)
42 clean:
43 rm -f $(OBJECTS) $(TARGET)