Use this to specify that 'configure' depends on acglib.m4.
[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         -DG_LOG_DOMAIN=g_log_domain_gmodule @GLIB_DEBUG_FLAGS@
5
6 EXTRA_DIST =    \
7                 makefile.mingw  \
8                 makefile.mingw.in \
9                 makefile.msc    \
10                 makefile.msc.in \
11                 gmoduleconf.h.in \
12                 gmodule.def     \
13                 gmodule-dl.c    \
14                 gmodule-dld.c   \
15                 gmodule-os2.c   \
16                 gmodule-win32.c \
17                 gmodule-beos.c  \
18                 gmoduleconf.h.win32 \
19                 gmodule.rc      \
20                 gmodule.rc.in
21
22 BUILT_SOURCES = gmoduleconf.h
23 gmoduleconf.h:  gmoduleconf.h.in
24
25 glibincludedir=$(includedir)/glib-2.0
26 glibinclude_HEADERS = \
27                 gmodule.h
28
29 libglib = $(top_builddir)/libglib-1.3.la # -lglib
30
31 top_builddir_full=`cd \$(top_builddir); pwd`
32
33 lib_LTLIBRARIES = libgmodule-1.3.la libgplugin_a.la libgplugin_b.la
34
35 libgmodule_1_3_la_SOURCES = gmodule.c
36 libgmodule_1_3_la_LDFLAGS = \
37         @G_MODULE_LDFLAGS@ \
38         -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
39         -export-dynamic
40
41 libgmodule_1_3_la_LIBADD = @G_MODULE_LIBS_EXTRA@ @G_MODULE_LIBS@ # $(libglib)
42 # we should really depend on $(libglib) for libgmodule.la, but libtool has a
43 # problem with this ;(
44
45 libgplugin_a_la_SOURCES = libgplugin_a.c
46 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
47 libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ @G_MODULE_LIBS_EXTRA@ @G_MODULE_PLUGIN_LIBS@ # $(libglib)
48
49 libgplugin_b_la_SOURCES = libgplugin_b.c
50 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@ -avoid-version -module
51 libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ @G_MODULE_LIBS_EXTRA@ @G_MODULE_PLUGIN_LIBS@ # $(libglib)
52
53 noinst_PROGRAMS = testgmodule
54 testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
55 testgmodule_LDADD = libgmodule-1.3.la $(libglib) @G_MODULE_LIBS@
56
57 gmodule.rc: $(top_builddir)/config.status $(top_srcdir)/gmodule/gmodule.rc.in
58         cd $(top_builddir) && CONFIG_FILES=gmodule/$@ CONFIG_HEADERS= $(SHELL) ./config.status
59
60 makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/gmodule/makefile.mingw.in
61         cd $(top_builddir) && CONFIG_FILES=gmodule/$@ CONFIG_HEADERS= $(SHELL) ./config.status
62
63 makefile.msc: $(top_builddir)/config.status $(top_srcdir)/gmodule/makefile.msc.in
64         cd $(top_builddir) && CONFIG_FILES=gmodule/$@ CONFIG_HEADERS= $(SHELL) ./config.status
65
66 .PHONY: files release
67
68 files:
69         @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
70           echo $$p; \
71         done
72
73 install-libLTLIBRARIES: libgmodule-1.3.la
74         @$(NORMAL_INSTALL)
75         $(mkinstalldirs) $(DESTDIR)$(libdir)
76         @list='libgmodule-1.3.la'; for p in $$list; do \
77          if test -f $$p; then \
78           echo "$(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
79           $(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
80          else :; fi; \
81         done
82
83 release:
84         $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`