sofia.am 2.32 KB
Newer Older
1 2
# common Makefile targets for libsofia-sip-ua(-glib) modules
# ----------------------------------------------------------
Pekka Pessi's avatar
Pekka Pessi committed
3

4 5 6
sofiasrcdir = ${top_srcdir}/libsofia-sip-ua
sofiabuilddir = ${top_builddir}/libsofia-sip-ua

7 8 9
AM_CFLAGS = $(CWFLAG) $(SOFIA_COVERAGE) $(SOFIA_CFLAGS) $(openssl_CFLAGS) $(SOFIA_PLAT_CFLAGS)

LDADD += $(openssl_LIBS)
10

Pekka Pessi's avatar
Pekka Pessi committed
11 12
SOFIA_COVERAGE = $(COVERAGE_FLAGS)

13 14 15 16
# Use with --enable-ndebug
if NDEBUG
AM_CFLAGS += -DNDEBUG
endif
17

Pekka Pessi's avatar
Pekka Pessi committed
18 19
built-sources: $(BUILT_SOURCES)

20 21
DISTCLEANFILES = $(BUILT_SOURCES)

22
clean-built-sources:
23
	-rm -rf $(BUILT_SOURCES) $(BUILT_SOURCES:%=$(srcdir)/%)
24

Pekka Pessi's avatar
Pekka Pessi committed
25 26
# rules for building tag files

27
TAG_AWK=${sofiasrcdir}/su/tag_dll.awk
Pekka Pessi's avatar
Pekka Pessi committed
28

29
*_tag_ref.c: $(TAG_AWK)
Pekka Pessi's avatar
Pekka Pessi committed
30

31 32 33 34
SUFFIXES = _tag_ref.c _tag.c

_tag.c_tag_ref.c:
	$(AWK) -f $(TAG_AWK) NODLL=1 $(TAG_DLL_FLAGS) REF=$@ $<
35

36 37 38 39 40
../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:
41
	cd $(@D) && $(MAKE) $(@F)
Pekka Pessi's avatar
Pekka Pessi committed
42

43 44
checklib: $(noinst_LTLIBRARIES) $(check_LTLIBRARIES)

Pekka Pessi's avatar
Pekka Pessi committed
45
INTERNAL_INCLUDES = \
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    -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
65

Pekka Pessi's avatar
Pekka Pessi committed
66 67
PHONY = built-sources clean-built-sources

68
include $(top_srcdir)/rules/valcheck.am
Pekka Pessi's avatar
Pekka Pessi committed
69

70
if HAVE_LCOV
Pekka Pessi's avatar
Pekka Pessi committed
71
include $(top_srcdir)/rules/lcov.am
72
endif
73 74

include $(top_srcdir)/rules/silent.am