mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
3abb7730b2
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3772 d0543943-73ff-0310-b7d9-9358b9ac24b2
50 lines
844 B
Makefile
50 lines
844 B
Makefile
ifeq ($(SRCDIR)x,x)
|
|
SRCDIR = $(CURDIR)/../..
|
|
BUILDDIR= $(SRCDIR)
|
|
endif
|
|
|
|
default: all
|
|
|
|
include $(BUILDDIR)/Makefile.config
|
|
|
|
include ../Makefile.common
|
|
|
|
INCLUDES = -I$(SRCDIR) -I$(SRCDIR)/include
|
|
|
|
CXXFLAGS = $(INCLUDES) $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
|
|
|
|
LDFLAGS = $(CLIENT_LDFLAGS) $(LADD)
|
|
|
|
all: xml-rpc-api2cpp
|
|
|
|
OBJECTS = \
|
|
xml-rpc-api2cpp.o \
|
|
DataType.o \
|
|
XmlRpcFunction.o \
|
|
XmlRpcClass.o \
|
|
SystemProxy.o \
|
|
|
|
xml-rpc-api2cpp: \
|
|
$(OBJECTS) \
|
|
$(LIBXMLRPC_CPP) \
|
|
$(LIBXMLRPC_CLIENT) \
|
|
$(LIBXMLRPC_SERVER) \
|
|
$(LIBXMLRPC) \
|
|
$(LIBXML)
|
|
$(LIBTOOL) --mode=link $(CXXLD) -o $@ $(LDFLAGS) $^
|
|
|
|
%.o:%.cpp
|
|
$(LIBTOOL) --mode=compile $(CXX) -c $(CXXFLAGS) $<
|
|
|
|
include Makefile.depend
|
|
|
|
.PHONY: clean
|
|
clean: clean-common
|
|
rm -f xml-rpc-api2cpp
|
|
|
|
.PHONY: distclean
|
|
distclean: clean distclean-common
|
|
|
|
.PHONY: dep
|
|
dep: dep-common
|