Port get_host_ip() to Android/Bionic
[profile/ivi/GSSDP.git] / libgssdp / Makefile.am
1 # Version format current:revision:age
2 # If the library source code has changed at all since the last update, then
3 # increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
4 # If any interfaces have been added, removed, or changed since the last update,
5 # increment current, and set revision to 0.
6 # If any interfaces have been added since the last public release, then
7 # increment age.
8 # If any interfaces have been removed since the last public release, then set
9 # age to 0.
10
11 LTVERSION = 3:0:0
12
13 AM_CFLAGS = $(LIBGSSDP_CFLAGS) -I$(top_srcdir)
14
15 libgssdpincdir = $(includedir)/gssdp-1.0/libgssdp
16
17 lib_LTLIBRARIES = libgssdp-1.0.la
18
19 libgssdpinc_HEADERS =   gssdp-client.h           \
20                         gssdp-error.h            \
21                         gssdp-resource-browser.h \
22                         gssdp-resource-group.h   \
23                         gssdp.h
24
25 gssdp-marshal.c: gssdp-marshal.list
26         $(AM_V_GEN) \
27         $(GLIB_GENMARSHAL) --prefix=gssdp_marshal $(srcdir)/gssdp-marshal.list --header --body > gssdp-marshal.c
28
29 gssdp-marshal.h: gssdp-marshal.list
30         $(AM_V_GEN) \
31         $(GLIB_GENMARSHAL) --prefix=gssdp_marshal $(srcdir)/gssdp-marshal.list --header > gssdp-marshal.h
32
33 BUILT_SOURCES = gssdp-marshal.c gssdp-marshal.h
34
35 introspection_sources = $(libgssdpinc_HEADERS)  \
36                         gssdp-client.c          \
37                         gssdp-error.c           \
38                         gssdp-resource-browser.c\
39                         gssdp-resource-group.c
40
41 libgssdp_1_0_la_LDFLAGS = -version-info $(LTVERSION)
42 libgssdp_1_0_la_SOURCES = $(introspection_sources)      \
43                           gssdp-client-private.h        \
44                           gssdp-protocol.h              \
45                           gssdp-socket-source.c         \
46                           gssdp-socket-source.h         \
47                           gssdp-socket-functions.c      \
48                           gssdp-socket-functions.h      \
49                           $(BUILT_SOURCES)
50
51 libgssdp_1_0_la_LIBADD = $(LIBGSSDP_LIBS)
52
53 if OS_WIN32
54
55 libgssdp_1_0_la_LIBADD += -lws2_32 -liphlpapi
56 libgssdp_1_0_la_LDFLAGS += -no-undefined
57 endif
58
59 if TARGET_ANDROID
60 libgssdp_1_0_la_LIBADD += -llog
61 endif
62
63 EXTRA_DIST = gssdp-marshal.list
64
65 CLEANFILES = $(BUILT_SOURCES)
66
67 -include $(INTROSPECTION_MAKEFILE)
68 INTROSPECTION_GIRS =
69 INTROSPECTION_SCANNER_ARGS = --warn-all                         \
70                              --symbol-prefix=gssdp              \
71                              --identifier-prefix=GSSDP          \
72                              --add-include-path=$(top_srcdir) \
73                              --pkg-export=gssdp-1.0
74 INTROSPECTION_COMPILER_ARGS = --includedir=$(top_srcdir)
75
76
77 if HAVE_INTROSPECTION
78 GSSDP-1.0.gir: libgssdp-1.0.la
79 GSSDP_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0
80 GSSDP_1_0_gir_CFLAGS = $(INCLUDES)
81 GSSDP_1_0_gir_LIBS = libgssdp-1.0.la
82 GSSDP_1_0_gir_FILES = $(introspection_sources)
83 GSSDP_1_0_gir_NAMESPACE = GSSDP
84 GSSDP_1_0_gir_VERSION = 1.0
85 INTROSPECTION_GIRS += GSSDP-1.0.gir
86
87 girdir = $(datadir)/gir-1.0
88 gir_DATA = GSSDP-1.0.gir
89
90 typelibdir = $(libdir)/girepository-1.0
91 typelib_DATA = $(gir_DATA:.gir=.typelib)
92
93 CLEANFILES += $(gir_DATA) $(typelib_DATA)
94 endif
95
96 DISTCLEANFILES = $(BUILT_SOURCES)
97 MAINTAINERCLEANFILES = Makefile.in $(BUILT_SOURCES)