Released GLib 1.1.3
[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-@LT_RELEASE@.la # -lglib-@LT_RELEASE@
18
19 lib_LTLIBRARIES = libgmodule-1.1.la libgplugin_a.la libgplugin_b.la
20
21 libgmodule_1_1_la_SOURCES = gmodule.c
22 libgmodule_1_1_la_LDFLAGS = @G_MODULE_LDFLAGS@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
23 libgmodule_1_1_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
24 # we should really depend on $(libglib) for libgmodule-1.1.la, but libtool has a
25 # problem with this ;(
26
27 libgplugin_a_la_SOURCES = libgplugin_a.c
28 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@
29 libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
30
31 libgplugin_b_la_SOURCES = libgplugin_b.c
32 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@
33 libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
34
35 noinst_PROGRAMS = testgmodule
36 testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
37 testgmodule_LDADD = libgmodule-@LT_RELEASE@.la $(libglib) @G_MODULE_LIBS@
38
39 .PHONY: files release
40
41 files:
42         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
43           echo $$p; \
44         done
45
46 install-libLTLIBRARIES: libgmodule-1.1.la
47         @$(NORMAL_INSTALL)
48         $(mkinstalldirs) $(DESTDIR)$(libdir)
49         @list='libgmodule-1.1.la'; for p in $$list; do \
50          if test -f $$p; then \
51           echo "$(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
52           $(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
53          else :; fi; \
54         done
55
56 release:
57         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`