1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-08-13 17:38:59 +00:00
Files
build
clients
cmake_modules
conf
debian
docs
dtd
freeswitch.xcodeproj
fscomm
htdocs
libs
apr
apr-util
broadvoice
curl
esl
freetdm
iksemel
ilbc
js
ldns
libcodec2
libdingaling
libedit
libg722_1
libnatpmp
libsndfile
libteletone
miniupnpc
openzap
pcre
portaudio
silk
sofia-sip
spandsp
speex
sqlite
srtp
stfu
tiff-3.8.2
unimrcp
win32
xmlrpc-c
Windows
conf
debian
doc
examples
cpp
.cvsignore
Makefile
asynch_client.cpp
meerkat-app-list.cpp
pstream_client.cpp
pstream_inetd_server.cpp
sample_add_client_complex.cpp
xmlrpc_inetd_server.cpp
xmlrpc_loop_server.cpp
xmlrpc_sample_add_client.cpp
xmlrpc_sample_add_server.cpp
.cvsignore
Makefile
README
auth_client.c
gen_sample_add_xml.c
interrupted_client.c
interrupted_server.c
query-meerkat.c
synch_client.c
xmlrpc_asynch_client.c
xmlrpc_inetd_server.c
xmlrpc_loop_server.c
xmlrpc_sample_add_client.c
xmlrpc_sample_add_server.c
xmlrpc_sample_add_server_cgi.c
xmlrpc_sample_add_server_w32httpsys.c
xmlrpc_server_validatee.c
xmlrpc_socket_server.c
include
lib
src
tools
.cvsignore
.update
GNUmakefile
Makefile
Makefile.common
Makefile.config.in
Makefile.depend
Makefile.srcdir.in
Makefile.version
README
common.mk
config.mk.in
configure.gnu
configure.in
dll-common.make
dylib-common.make
install-sh
irix-common.make
ltconfig
missing
mkinstalldirs
stamp-h.in
transport_config.make
unix-common.make
version.h
xmlrpc-c-config.in
xmlrpc-c-config.main
xmlrpc-c-config.test.in
xmlrpc-c-config.test.main
xmlrpc_amconfig.h.in
xmlrpc_config.h.in
yaml
.gitignore
patches
scripts
src
support-d
w32
web
.gitignore
.version.in
CMakeLists.txt
Freeswitch.2005.unsupported.sln
Freeswitch.2008.express.sln
Freeswitch.2008.sln
Freeswitch.2008.sln.debug.bat
Freeswitch.2008.sln.release.bat
Freeswitch.2010.express.sln
Freeswitch.2010.sln
INSTALL
Makefile.am
acinclude.m4
bootstrap.sh
configure.in
devel-bootstrap.sh
freeswitch-sounds-en-us-callie.spec
freeswitch-sounds-music.spec
freeswitch-sounds-ru-RU-elena.spec
freeswitch.spec
swig_common.i
freeswitch/libs/xmlrpc-c/examples/cpp/Makefile

115 lines
2.7 KiB
Makefile
Raw Normal View History

# Since the programs in this directories are examples for the user, this
# make file should be as ordinary as possible. It should not rely heavily
# on included make files or configuration parameters. It should not use
# libtool. Also, we don't try to build or rebuild the libraries on which
# these programs depend.
ifeq ($(SRCDIR),)
SRCDIR = $(CURDIR)/../..
BLDDIR = $(SRCDIR)
endif
SUBDIR=examples/cpp
include $(BLDDIR)/config.mk
default: all
CXXFLAGS = $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
LDFLAGS = $(LADD)
# If this were a real application, working from an installed copy of
# Xmlrpc-c, XMLRPC_C_CONFIG would just be 'xmlrpc-c-config'. It would be
# found in the user's PATH.
XMLRPC_C_CONFIG = $(BLDDIR)/xmlrpc-c-config.test
SERVERPROGS_ABYSS = \
xmlrpc_inetd_server \
xmlrpc_loop_server \
xmlrpc_sample_add_server \
CLIENTPROGS = \
xmlrpc_sample_add_client \
sample_add_client_complex \
asynch_client \
# Build up PROGS:
PROGS =
ifeq ($(ENABLE_ABYSS_SERVER),yes)
PROGS += $(SERVERPROGS_ABYSS)
endif
ifeq ($(MUST_BUILD_CLIENT),yes)
PROGS += $(CLIENTPROGS)
endif
PROGS += pstream_inetd_server
ifeq ($(MUST_BUILD_CLIENT),yes)
PROGS += pstream_client
endif
INCLUDES = -I. $(shell $(XMLRPC_C_CONFIG) c++2 client abyss-server --cflags)
LDADD_SERVER_ABYSS = \
$(shell $(XMLRPC_C_CONFIG) c++2 abyss-server --ldadd)
LDADD_CLIENT = \
$(shell $(XMLRPC_C_CONFIG) c++2 client --ldadd)
LDADD_BASE = \
$(shell $(XMLRPC_C_CONFIG) c++2 --ldadd)
all: $(PROGS)
$(SERVERPROGS_ABYSS):%:%.o
$(CXXLD) -o $@ $(LDFLAGS) $^ $(LDADD_SERVER_ABYSS)
$(CLIENTPROGS):%:%.o
$(CXXLD) -o $@ $(LDFLAGS) $^ $(LDADD_CLIENT)
LDADD_PSTREAM_CLIENT = \
$(shell $(XMLRPC_C_CONFIG) c++2 client --ldadd)
pstream_client:%:%.o
$(CXXLD) -o $@ $(LDFLAGS) $^ $(LDADD_PSTREAM_CLIENT)
LDADD_PSTREAM_SERVER = \
$(shell $(XMLRPC_C_CONFIG) c++2 pstream-server --ldadd)
pstream_inetd_server:%:%.o
$(CXXLD) -o $@ $(LDFLAGS) $^ $(LDADD_PSTREAM_SERVER)
OBJECTS = $(PROGS:%=%.o)
$(OBJECTS):%.o:%.cpp
$(CXX) -c $(INCLUDES) $(CXXFLAGS) $<
# See example/Makefile for an explanation of config.h and xmlrpc_amconfig.h
$(OBJECTS): config.h xmlrpc_amconfig.h
config.h:
$(LN_S) $(BLDDIR)/xmlrpc_config.h $@
xmlrpc_amconfig.h:
$(LN_S) $(BLDDIR)/$@ .
include $(SRCDIR)/common.mk
.PHONY: clean
clean: clean-common
rm -f $(PROGS) config.h xmlrpc_amconfig.h
.PHONY: distclean
distclean: clean
.PHONY: dep depend
dep depend:
# We don't do dependencies in this directory, because it's supposed to be
# an example of what a program outside this package would do, so we can't
# go weaving it into the rest of the package. Ergo, a developer must
# carefully clean and remake examples as he updates other parts of the tree.