sofia.am 2.23 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
AM_CFLAGS = $(CWFLAG) $(SOFIA_COVERAGE) $(SOFIA_CFLAGS) $(openssl_CFLAGS)
8

Pekka Pessi's avatar
Pekka Pessi committed
9 10
SOFIA_COVERAGE = $(COVERAGE_FLAGS)

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

Pekka Pessi's avatar
Pekka Pessi committed
16 17
built-sources: $(BUILT_SOURCES)

18 19
DISTCLEANFILES = $(BUILT_SOURCES)

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

Pekka Pessi's avatar
Pekka Pessi committed
23 24
# rules for building tag files

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

27
*_tag_ref.c: $(TAG_AWK)
Pekka Pessi's avatar
Pekka Pessi committed
28

29 30 31 32
SUFFIXES = _tag_ref.c _tag.c

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

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

41 42
checklib: $(noinst_LTLIBRARIES) $(check_LTLIBRARIES)

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

Pekka Pessi's avatar
Pekka Pessi committed
64 65
PHONY = built-sources clean-built-sources

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

68
if HAVE_LCOV
Pekka Pessi's avatar
Pekka Pessi committed
69
include $(top_srcdir)/rules/lcov.am
70
endif