Makefile.am 1.61 KB
Newer Older
Tim Janik's avatar
Tim Janik committed
1 2 3 4 5 6 7 8 9 10 11 12 13
## Process this file with automake to produce Makefile.in

INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/gmodule

EXTRA_DIST =	\
		gmoduleconf.h.in

BUILT_SOURCES = gmoduleconf.h
gmoduleconf.h:	gmoduleconf.h.in

include_HEADERS = \
		gmodule.h

14 15
libglib = $(top_builddir)/libglib-@LT_RELEASE@.la # -lglib-@LT_RELEASE@

Tim Janik's avatar
Tim Janik committed
16 17 18 19
lib_LTLIBRARIES = libgmodule-1.1.la libgplugin_a.la libgplugin_b.la

libgmodule_1_1_la_SOURCES = gmodule.c
libgmodule_1_1_la_LDFLAGS = @G_MODULE_LDFLAGS@ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
20 21 22
libgmodule_1_1_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
# we should really depend on $(libglib) for libgmodule-1.1.la, but libtool has a
# problem with this ;(
Tim Janik's avatar
Tim Janik committed
23 24 25

libgplugin_a_la_SOURCES = libgplugin_a.c
libgplugin_a_la_LDFLAGS = @G_MODULE_LDFLAGS@
26
libgplugin_a_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
Tim Janik's avatar
Tim Janik committed
27 28 29

libgplugin_b_la_SOURCES = libgplugin_b.c
libgplugin_b_la_LDFLAGS = @G_MODULE_LDFLAGS@
30
libgplugin_b_la_LIBADD = @G_MODULE_LIBS@ # $(libglib)
Tim Janik's avatar
Tim Janik committed
31 32 33

noinst_PROGRAMS = testgmodule
testgmodule_LDFLAGS += @G_MODULE_LDFLAGS@
34
testgmodule_LDADD = libgmodule-@LT_RELEASE@.la $(libglib) @G_MODULE_LIBS@
Tim Janik's avatar
Tim Janik committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

.PHONY: files release

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done

install-libLTLIBRARIES: libgmodule-1.1.la
	@$(NORMAL_INSTALL)
	$(mkinstalldirs) $(DESTDIR)$(libdir)
	@list='libgmodule-1.1.la'; for p in $$list; do \
	 if test -f $$p; then \
	  echo "$(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
	  $(LIBTOOL)  --mode=install $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
	 else :; fi; \
	done

release:
	$(MAKE) dist distdir=$(PACKAGE)`date +"%y%m%d"`