-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
90 lines (67 loc) · 2.08 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
EXTRA_DIST = Doxyfile
dist_doc_DATA = AUTHORS ChangeLog README TODO
if CHANGELOG_REGEN
ChangeLog:
-$(AM_V_GEN)GIT_DIR="${srcdir}/.git" $(GIT) log --pretty > $@
# Always regenerate!
.PHONY: ChangeLog
endif
distcheck-hook:
@test -s "${srcdir}"/ChangeLog || { echo "distcheck: empty ChangeLog found; make sure you have GIT installed" >/dev/stderr; false; }
lib_LTLIBRARIES = libnetembryo.la
pkginclude_HEADERS = netembryo/wsocket.h \
netembryo/wsocket-internal.h \
netembryo/url.h \
netembryo/rtsp.h
libnetembryo_la_SOURCES = \
utils/url.c \
utils/rtsp.c \
\
wsocket/multicast.c \
wsocket/socket.c \
wsocket/sock_ntop_host.c \
wsocket/get_info.c \
wsocket/Sock.c
libnetembryo_la_CFLAGS = $(GLIB_CFLAGS)
libnetembryo_la_LIBADD = $(GLIB_LIBS)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pkgconfig/libnetembryo.pc
noinst_DATA =
pkgconfig/libnetembryo-sctp%: pkgconfig/libnetembryo%
@$(mkdir_p) $(dir $@)
$(AM_V_GEN)$(LN_S) -f $(notdir $<) $@
if ENABLE_SSL
libnetembryo_la_SOURCES += \
wsocket/ssl.c \
wsocket/ssl.h
libnetembryo_la_CFLAGS += $(OPENSSL_CFLAGS)
libnetembryo_la_LIBADD += $(OPENSSL_LIBS)
endif
if ENABLE_SCTP
libnetembryo_la_LIBADD += $(SCTP_LIBS)
pkgconfig_DATA += pkgconfig/libnetembryo-sctp.pc
noinst_DATA += pkgconfig/libnetembryo-sctp-uninstalled.pc
endif
libnetembryo_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
ACLOCAL_AMFLAGS = -I m4
if BUILD_TESTS
TESTS = tests/testsuite
check_PROGRAMS = $(TESTS)
BUILT_SOURCES = tests/gtestmain.c
endif
tests_testsuite_SOURCES = \
tests/test_hostname.c \
tests/test_url.c \
tests/test_sock.c \
tests/gtest-extra.h
tests_testsuite_CFLAGS = $(GTESTER_CFLAGS)
tests_testsuite_LDADD = libnetembryo.la $(GTESTER_LIBS)
dist_tests_testsuite_SOURCES = tests/gtestmain.c
tests/gtestmain.c: $(tests_testsuite_SOURCES)
@$(mkdir_p) $(dir $@)
$(AM_V_GEN)$(EXUBERANT_CTAGS) -f - --file-scope=no $^ | \
sort -k 2 | $(EGREP) '^test_' | \
$(GAWK) -f $(srcdir)/tests/genmain.awk \
> $@
DISTCLEANFILES = $(BUILT_SOURCES)
CLEANFILES = libnetembryo-sctp.pc libnetembryo-sctp-uninstalled.pc