added weak_ref
[luabind.git] / src / makefile
blob84c670cc4ab1f05b5be589385341839af20902e0
1 include ../config
3 SOURCES = \
4 pcall.cpp \
5 error.cpp \
6 ref.cpp \
7 scope.cpp \
8 class.cpp \
9 class_rep.cpp \
10 function.cpp \
11 find_best_match.cpp \
12 implicit_cast.cpp \
13 open.cpp \
14 create_class.cpp \
15 stack_content_by_name.cpp \
16 object.cpp \
17 object_rep.cpp \
18 class_info.cpp \
19 class_registry.cpp \
20 link_compatibility.cpp
22 OBJECTS = $(SOURCES:.cpp=.o)
24 TARGET = ../lib/libluabind.a
30 all: $(TARGET)
32 $(TARGET): $(OBJECTS)
33 $(AR) rcu $@ $(OBJECTS)
34 ranlib $@
36 %.o:%.cpp
37 $(CXX) -g -Wall -DLUABIND_BUILDING -c $? -o $@ -I$(LUA_PATH) -I- -I.. -I$(BOOST_ROOT) $(CONFIG)
39 clean:
40 rm -f $(OBJECTS) $(TARGET)