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