-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (34 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# makefile written for gnu make
CXX = g++
SRC = ./src
CPPFLAGS = -I$(SRC)
DEBUG = -g
OPTIMIZE = -O0
GCCWARN = -Wall # -Wstrict-prototypes
CXXFLAGS = $(DEBUG) $(GCCWARN) $(OPTIMIZE) $(INCLUDES)
LIB = ./libXmlRpc.a
# Add your system-dependent network libs here. These are
# only used to build the tests (your application will need them too).
# Linux: none
# Solaris: -lsocket -lnsl
#SYSTEMLIBS = -lsocket -lnsl
SYSTEMLIBS =
LDLIBS = $(LIB) $(SYSTEMLIBS)
OBJ = $(SRC)/XmlRpcClient.o $(SRC)/XmlRpcDispatch.o \
$(SRC)/XmlRpcServer.o $(SRC)/XmlRpcServerConnection.o \
$(SRC)/XmlRpcServerMethod.o $(SRC)/XmlRpcSocket.o $(SRC)/XmlRpcSource.o \
$(SRC)/XmlRpcUtil.o $(SRC)/XmlRpcValue.o
all: $(LIB) tests
$(LIB): $(OBJ)
$(AR) $(ARFLAGS) $(LIB) $(OBJ)
tests: $(LIB)
@echo Building and running tests...
@cd test && $(MAKE) CXX=$(CXX) CXXFLAGS="$(CXXFLAGS)" SYSTEMLIBS="$(SYSTEMLIBS)"
doc doxygen:
@cd src && doxygen Doxyfile
.PHONY:
clean:
@rm -f $(SRC)/*.o
@rm -f $(SRC)/*~ $(SRC)/*.bak
@rm -f $(LIB)
@cd test && $(MAKE) clean