2007-04-14 22:03:41 -04:00
|
|
|
# common Makefile targets for libsofia-sip-ua(-glib) modules
|
|
|
|
# ----------------------------------------------------------
|
|
|
|
|
2007-12-06 13:44:14 -05:00
|
|
|
sofiasrcdir = ${top_srcdir}/libsofia-sip-ua
|
|
|
|
sofiabuilddir = ${top_builddir}/libsofia-sip-ua
|
|
|
|
|
2010-04-02 01:15:18 -04:00
|
|
|
AM_CFLAGS = $(CWFLAG) $(SOFIA_COVERAGE) $(SOFIA_CFLAGS) $(openssl_CFLAGS) $(SOFIA_PLAT_CFLAGS)
|
2007-04-14 22:03:41 -04:00
|
|
|
|
2007-05-08 15:14:10 -04:00
|
|
|
SOFIA_COVERAGE = $(COVERAGE_FLAGS)
|
|
|
|
|
2007-04-14 22:03:41 -04:00
|
|
|
# Use with --enable-ndebug
|
|
|
|
if NDEBUG
|
|
|
|
AM_CFLAGS += -DNDEBUG
|
|
|
|
endif
|
|
|
|
|
|
|
|
built-sources: $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
DISTCLEANFILES = $(BUILT_SOURCES)
|
|
|
|
|
|
|
|
clean-built-sources:
|
|
|
|
-rm -rf $(BUILT_SOURCES) $(BUILT_SOURCES:%=$(srcdir)/%)
|
|
|
|
|
|
|
|
# rules for building tag files
|
|
|
|
|
2007-12-06 13:44:14 -05:00
|
|
|
TAG_AWK=${sofiasrcdir}/su/tag_dll.awk
|
2007-04-14 22:03:41 -04:00
|
|
|
|
|
|
|
*_tag_ref.c: $(TAG_AWK)
|
|
|
|
|
|
|
|
SUFFIXES = _tag_ref.c _tag.c
|
|
|
|
|
|
|
|
_tag.c_tag_ref.c:
|
|
|
|
$(AWK) -f $(TAG_AWK) NODLL=1 $(TAG_DLL_FLAGS) REF=$@ $<
|
|
|
|
|
|
|
|
../bnf/libbnf.la ../http/libhttp.la ../ipt/libipt.la ../iptsec/libiptsec.la \
|
|
|
|
../msg/libmsg.la ../nea/libnea.la ../nta/libnta.la ../nth/libnth.la \
|
|
|
|
../nua/libnua.la ../sdp/libsdp.la ../sip/libsip.la ../soa/libsoa.la \
|
|
|
|
../sresolv/libsresolv.la ../stun/libstun.la ../su/libsu.la \
|
|
|
|
../tport/libtport.la ../url/liburl.la:
|
2007-10-11 15:58:13 -04:00
|
|
|
cd $(@D) && $(MAKE) $(@F)
|
2007-04-14 22:03:41 -04:00
|
|
|
|
2008-03-07 12:38:16 -05:00
|
|
|
checklib: $(noinst_LTLIBRARIES) $(check_LTLIBRARIES)
|
|
|
|
|
2007-04-14 22:03:41 -04:00
|
|
|
INTERNAL_INCLUDES = \
|
2007-12-06 13:44:14 -05:00
|
|
|
-I${sofiasrcdir}/features -I${sofiabuilddir}/features \
|
|
|
|
-I${sofiasrcdir}/ipt -I${sofiabuilddir}/ipt \
|
|
|
|
-I${sofiasrcdir}/iptsec -I${sofiabuilddir}/iptsec \
|
|
|
|
-I${sofiasrcdir}/bnf -I${sofiabuilddir}/bnf \
|
|
|
|
-I${sofiasrcdir}/http -I${sofiabuilddir}/http \
|
|
|
|
-I${sofiasrcdir}/msg -I${sofiabuilddir}/msg \
|
|
|
|
-I${sofiasrcdir}/nth -I${sofiabuilddir}/nth \
|
|
|
|
-I${sofiasrcdir}/nta -I${sofiabuilddir}/nta \
|
|
|
|
-I${sofiasrcdir}/nea -I${sofiabuilddir}/nea \
|
|
|
|
-I${sofiasrcdir}/nua -I${sofiabuilddir}/nua \
|
|
|
|
-I${sofiasrcdir}/soa -I${sofiabuilddir}/soa \
|
|
|
|
-I${sofiasrcdir}/sdp -I${sofiabuilddir}/sdp \
|
|
|
|
-I${sofiasrcdir}/sip -I${sofiabuilddir}/sip \
|
|
|
|
-I${sofiasrcdir}/soa -I${sofiabuilddir}/soa \
|
|
|
|
-I${sofiasrcdir}/sresolv -I${sofiabuilddir}/sresolv \
|
|
|
|
-I${sofiasrcdir}/tport -I${sofiabuilddir}/tport \
|
|
|
|
-I${sofiasrcdir}/stun -I${sofiabuilddir}/stun \
|
|
|
|
-I${sofiasrcdir}/url -I${sofiabuilddir}/url \
|
|
|
|
-I${sofiasrcdir}/su -I${sofiabuilddir}/su
|
2007-04-14 22:03:41 -04:00
|
|
|
|
2007-05-08 15:14:10 -04:00
|
|
|
PHONY = built-sources clean-built-sources
|
|
|
|
|
|
|
|
include $(top_srcdir)/rules/valcheck.am
|
|
|
|
|
|
|
|
if HAVE_LCOV
|
|
|
|
include $(top_srcdir)/rules/lcov.am
|
|
|
|
endif
|
2009-02-11 11:56:03 -05:00
|
|
|
|
|
|
|
include $(top_srcdir)/rules/silent.am
|