Update to libtool-1.2b, change library versioning scheme to drop
[platform/upstream/glib.git] / gmodule / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule
4 DEFS += -DG_LOG_DOMAIN=g_log_domain_gmodule
5
6 EXTRA_DIST =    \
7                 gmoduleconf.h.in \
8                 gmodule-dl.c    \
9                 gmodule-dld.c
10
11 BUILT_SOURCES = gmoduleconf.h
12 gmoduleconf.h:  gmoduleconf.h.in
13
14 include_HEADERS = \
15                 gmodule.h
16
17 libglib = $(top_builddir)/libglib.la # -lglib
18
19 lib_LTLIBRARIES = libgmodule.la libgplugin_a.la libgplugin_b.la
20
21 libgmodule_la_SOURCES = gmodule.c
22 libgmodule_la_LDFLAGS = \
23         @G_MODULE_LDFLAGS@ \
24         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
25         -release $(LT_RELEASE)
26
27 libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
28 # we should really depend on $(libglib) for libgmodule.la, but libtool has a
29 # problem with this ;(
30
31 libgplugin_a_la_SOURCES = libgplugin_a.c
32 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@
33 libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
34
35 libgplugin_b_la_SOURCES = libgplugin_b.c
36 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@
37 libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
38
39 noinst_PROGRAMS = testgmodule
40 testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
41 testgmodule_LDADD = libgmodule.la $(libglib) @G_MODULE_LIBS@
42
43 .PHONY: files release
44
45 files:
46         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
47           echo $$p; \
48         done
49
50 install-libLTLIBRARIES: libgmodule.la
51         @$(NORMAL_INSTALL)
52         $(mkinstalldirs) $(DESTDIR)$(libdir)
53         @list='libgmodule.la'; for p in $$list; do \
54          if test -f $$p; then \
55           echo "$(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
56           $(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
57          else :; fi; \
58         done
59
60 release:
61         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`