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

4
AM_CFLAGS = $(CWFLAG) $(SOFIA_COVERAGE) $(SOFIA_CFLAGS)
5 6 7 8 9

# Use with --enable-ndebug
if NDEBUG
AM_CFLAGS += -DNDEBUG
endif
10

Pekka Pessi's avatar
Pekka Pessi committed
11 12
built-sources: $(BUILT_SOURCES)

13 14
DISTCLEANFILES = $(BUILT_SOURCES)

15
clean-built-sources:
16
	-rm -rf $(BUILT_SOURCES) $(BUILT_SOURCES:%=$(srcdir)/%)
17

Pekka Pessi's avatar
Pekka Pessi committed
18 19 20 21
# rules for building tag files

TAG_AWK=$(top_srcdir)/libsofia-sip-ua/su/tag_dll.awk

22
*_tag_ref.c: $(TAG_AWK)
Pekka Pessi's avatar
Pekka Pessi committed
23

24
%_tag_ref.c: %_tag.c
25
	$(AWK) -f $(TAG_AWK) NODLL=1 $(TAG_DLL_FLAGS) $<
26 27

if ENABLE_COVERAGE
28
coverage:
29
	@$(top_srcdir)/scripts/coverage $(COVERAGE_FLAGS) $(COVERAGE_INPUT)
30
endif
31 32 33 34 35 36

../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:
37
	$(MAKE) -C $(@D) $(@F)
Pekka Pessi's avatar
Pekka Pessi committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57

INTERNAL_INCLUDES = \
	-I$(srcdir)/../features -I../features \
	-I$(srcdir)/../ipt -I../ipt \
	-I$(srcdir)/../iptsec -I../iptsec \
	-I$(srcdir)/../bnf -I../bnf \
	-I$(srcdir)/../http -I../http \
	-I$(srcdir)/../msg -I../msg \
	-I$(srcdir)/../nth -I../nth \
	-I$(srcdir)/../nta -I../nta \
	-I$(srcdir)/../nea -I../nea \
	-I$(srcdir)/../nua -I../nua \
	-I$(srcdir)/../soa -I../soa \
	-I$(srcdir)/../sdp -I../sdp \
	-I$(srcdir)/../sip -I../sip \
	-I$(srcdir)/../soa -I../soa \
	-I$(srcdir)/../sresolv -I../sresolv \
	-I$(srcdir)/../tport -I../tport \
	-I$(srcdir)/../stun -I../stun \
	-I$(srcdir)/../url -I../url \
58
	-I$(srcdir)/../su -I../su
59 60

include $(top_srcdir)/rules/valcheck.am