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