Fix the lib path
[external/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 = 2: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 libgssdp_1_0_la_LDFLAGS = -version-info $(LTVERSION)
36
37 libgssdp_1_0_la_SOURCES = gssdp-client.c                \
38                           gssdp-client-private.h        \
39                           gssdp-error.c                 \
40                           gssdp-protocol.h              \
41                           gssdp-resource-browser.c      \
42                           gssdp-resource-group.c        \
43                           gssdp-socket-source.c         \
44                           gssdp-socket-source.h         \
45                           $(BUILT_SOURCES)
46
47 libgssdp_1_0_la_LIBADD = $(LIBGSSDP_LIBS)
48
49 EXTRA_DIST = gssdp-marshal.list
50
51
52 if HAVE_INTROSPECTION
53
54 GSSDP-1.0.gir: libgssdp-1.0.la $(INTROSPECTION_SCANNER)
55         $(AM_V_GEN) \
56         $(INTROSPECTION_SCANNER) -v \
57                 --namespace=GSSDP --nsversion=1.0 \
58                 --include=GObject-2.0 \
59                 --library=$< \
60                 --libtool="$(top_builddir)/libtool" \
61                 --pkg gobject-2.0 \
62                 --output $@ \
63                 -I$(top_srcdir) \
64                 $(addprefix $(top_srcdir)/libgssdp/, $(libgssdpinc_HEADERS)) \
65                 $(top_srcdir)/libgssdp/gssdp-client.c \
66                 $(top_srcdir)/libgssdp/gssdp-error.c \
67                 $(top_srcdir)/libgssdp/gssdp-protocol.h \
68                 $(top_srcdir)/libgssdp/gssdp-resource-browser.c \
69                 $(top_srcdir)/libgssdp/gssdp-resource-group.c
70
71 girdir = $(datadir)/gir-1.0
72 gir_DATA = GSSDP-1.0.gir
73
74 typelibdir = $(libdir)/girepository-1.0/
75 typelib_DATA = $(gir_DATA:.gir=.typelib)
76
77 %.typelib: %.gir $(INTROSPECTION_COMPILER)
78         $(AM_V_GEN) \
79         $(INTROSPECTION_COMPILER) \
80                 --includedir=$(srcdir) \
81                 --includedir=. \
82                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
83
84 endif
85
86 CLEANFILES = $(BUILT_SOURCES) $(gir_DATA) $(typelib_DATA)
87 DISTCLEANFILES = $(BUILT_SOURCES)
88 MAINTAINERCLEANFILES = Makefile.in $(BUILT_SOURCES)