Makefile.am 1.66 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3 4 5 6 7 8 9 10
# ref: http://www.gnu.org/software/automake/manual/automake.html

AUTOMAKE_OPTIONS = foreign

# note: order does matter in the subdir list
SUBDIRS = docs su bnf sresolv sdp url msg sip stun ipt soa tport http nea nta iptsec nth nua 
EXTRA_DIST = sofia.am

lib_LTLIBRARIES = libsofia-sip-ua.la

11 12 13 14
if HAVE_TLS
tls_objs=stun/stun_objs.o
endif

Pekka Pessi's avatar
Pekka Pessi committed
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
libsofia_sip_ua_la_SOURCES = 
libsofia_sip_ua_la_LIBADD = 	bnf/bnf_objs.o \
				ipt/ipt_objs.o \
				iptsec/iptsec_objs.o \
				msg/msg_objs.o \
				nea/nea_objs.o \
				nta/nta_objs.o \
				nth/nth_objs.o \
				nua/nua_objs.o \
				http/http_objs.o \
				sdp/sdp_objs.o \
				sip/sip_objs.o \
				soa/soa_objs.o \
				sresolv/sresolv_objs.o \
				su/su_objs.o \
				tport/tport_objs.o \
31 32
				url/url_objs.o \
				${tls_objs}
Pekka Pessi's avatar
Pekka Pessi committed
33

34
all-recursive: built-sources-recursive
Pekka Pessi's avatar
Pekka Pessi committed
35
built-sources: built-sources-recursive
36 37 38 39 40
built-sources-recursive:
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making build-sources-recursive in $$subdir"; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) built-sources) \
	done;
Pekka Pessi's avatar
Pekka Pessi committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64

empty-doxytags:
	@echo Generating empty doxytags ; \
	cd ${srcdir}; \
	for d in $(DIST_SUBDIRS); do \
	  test -r $$d/Doxyfile || continue ; \
	  test -d docs/$$d || mkdir docs/$$d ; \
	  test -r $$d/docs/doxytags || \
		echo '<?xml version="1.0"?>\
<tagfile />' >>  docs/$$d/doxytags ; \
	done

doxygen: built-sources empty-doxytags 
	@cd ${srcdir} ;\
	for d in $(DIST_SUBDIRS); do \
	  test -r ${srcdir}/$$d/Doxyfile \
	  && pushd $$d > /dev/null \
	  && echo running doxygen in $$d \
          && doxygen \
          && popd > /dev/null ; \
	done ; \
	cd ${srcdir}/docs/html && ../hide_emails.sh

.PHONY: built-sources built-sources-am empty-doxytags doxygen