Makefile.am 1.83 KB
Newer Older
1 2 3 4 5 6 7
#
# Makefile.am for the Nice Glib ICE library
#
# (C) 2006, 2007 Collabora Ltd.
# (C) 2006, 2007 Nokia Corporation. All rights reserved.
#
# Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
dafydd.harries's avatar
dafydd.harries committed
8

9
include common.mk
dafydd.harries's avatar
dafydd.harries committed
10

11 12
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

13
SUBDIRS = \
14
	stun \
15
	socket \
16 17
	random \
	agent \
Youness Alaoui's avatar
Youness Alaoui committed
18
	nice \
19
	gst \
20
	docs \
21 22
	tests \
	examples
23

24
DISTCHECK_CONFIGURE_FLAGS = --disable-assert -enable-gtk-doc --enable-introspection
25

26
EXTRA_DIST = \
27 28
	COPYING.LGPL \
	COPYING.MPL \
29
	README.win32 \
30
	autogen.sh \
31 32 33
	common.mk \
	scripts/lcov.mk \
	scripts/lcov.sh \
34
	scripts/valgrind.sh \
35
	win32 \
36
	win32/vs9/libnice.def \
37
	m4/introspection.m4
38

39 40
MAINTAINERCLEANFILES = ar-lib

41 42 43
dist_check_SCRIPTS = \
	scripts/check-symbols.sh \
	scripts/make-symbol-list.sh
44

45 46 47 48 49 50 51 52 53 54 55 56 57 58
# Generate the win32 DLL symbol export file.
# The stun_*() symbols at the end have historically been exported on Windows
# but not Linux, for no particular reason. They can’t be removed without
# breaking ABI. FIXME: Remove them when we next break ABI.
win32/vs9/libnice.def: nice/libnice.sym
	$(AM_V_GEN)(echo "LIBRARY libnice"; \
	            echo ""; \
	            echo "EXPORTS"; \
	            echo ""; \
	            cat $<; \
	            echo "stun_debug"; \
	            echo "stun_debug_bytes"; \
	            echo "stun_hash_creds") > $@

59
CLEANFILES += win32/vs9/libnice.def
60

61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
lcov:
	find -name '*.gcda' -delete
	$(MAKE) $(AM_MAKEFLAGS) check
	find -type d -name '.libs' | while read d ; do \
		mv -fv $$d/*.gc* $$d/.. 2>/dev/null || true ; \
	done
	$(MAKE) lcov-report

lcov-report:
	mkdir -p lcov
	lcov -d . -c > lcov/lcov.info
	lcov -l lcov/lcov.info 2>/dev/null | \
	  egrep '(^/usr|/test.*\.c)' | \
	  cut -d: -f1 > lcov/lcov.remove
	lcov -r lcov/lcov.info `cat lcov/lcov.remove` 2>/dev/null > lcov/lcov.info.clean
	genhtml -o lcov lcov/lcov.info.clean

78 79 80 81
clean-local:
	rm -rf doc

.PHONY: doc lcov-report lcov