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