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