1 ## Process this file with automake to produce Makefile.in
3 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule
4 DEFS += -DG_LOG_DOMAIN=g_log_domain_gmodule
11 BUILT_SOURCES = gmoduleconf.h
12 gmoduleconf.h: gmoduleconf.h.in
17 libglib = $(top_builddir)/libglib.la # -lglib
19 lib_LTLIBRARIES = libgmodule.la libgplugin_a.la libgplugin_b.la
21 libgmodule_la_SOURCES = gmodule.c
22 libgmodule_la_LDFLAGS = \
24 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
25 -release $(LT_RELEASE)
27 libgmodule_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
28 # we should really depend on $(libglib) for libgmodule.la, but libtool has a
29 # problem with this ;(
31 libgplugin_a_la_SOURCES = libgplugin_a.c
32 libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@
33 libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
35 libgplugin_b_la_SOURCES = libgplugin_b.c
36 libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@
37 libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
39 noinst_PROGRAMS = testgmodule
40 testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
41 testgmodule_LDADD = libgmodule.la $(libglib) @G_MODULE_LIBS@
46 @files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
50 install-libLTLIBRARIES: libgmodule.la
52 $(mkinstalldirs) $(DESTDIR)$(libdir)
53 @list='libgmodule.la'; for p in $$list; do \
54 if test -f $$p; then \
55 echo "$(LIBTOOL) --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
56 $(LIBTOOL) --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
61 $(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`