added makefiles for the library.
[luabind.git] / src / makefile
blobea52d81912eeb1d08aa5faf7fbdc23233ad0ea87
1 # the library's configuration is
2 # controlled through the CONFIG variable
4 #$(CONFIG) = \
5 # -DLUABIND_DONT_COPY_STRINGS \
6 # -DLUABIND_NO_EXCEPTIONS \
7 # -DLUABIND_NO_ERROR_CHECKING
9 SRCS = \
10 class_rep.cpp \
11 function.cpp \
12 find_best_match.cpp \
13 implicit_cast.cpp \
14 open.cpp
16 OBJS = $(SRCS:.cpp=.o)
18 TARGET = ../lib/libluabind.a
20 all: $(TARGET)
22 $(TARGET): $(OBJS)
23 $(AR) rcu $@ $(OBJS)
24 ranlib $@
26 %.o:%.cpp
27 g++ -c $? -o $@ -I- -I.. $(CONFIG)
29 clean:
30 rm -f $(OBJS) $(TARGET)