Makefile.am 2.22 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
4
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
5

6 7 8 9 10 11
if PLATFORM_WIN32
no_undefined = -no-undefined
endif

if OS_WIN32
gimpmodule_def = gimpmodule.def
12
libgimpmodule_export_symbols = -export-symbols $(srcdir)/gimpmodule.def
13 14

install-libtool-import-lib:
15
	$(INSTALL) .libs/libgimpmodule-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
16
	$(INSTALL) $(srcdir)/gimpmodule.def $(DESTDIR)$(libdir)
17 18

uninstall-libtool-import-lib:
19
	-rm $(DESTDIR)$(libdir)/libgimpmodule-$(GIMP_API_VERSION).dll.a
20
	-rm $(DESTDIR)$(libdir)/gimpmodule.def
21 22 23 24 25 26
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif

if MS_LIB_AVAILABLE
27
noinst_DATA = gimpmodule-$(GIMP_API_VERSION).lib
28 29

install-ms-lib:
30
	$(INSTALL) gimpmodule-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
31 32

uninstall-ms-lib:
33
	-rm $(DESTDIR)$(libdir)/gimpmodule-$(GIMP_API_VERSION).lib
34

35 36
gimpmodule-@GIMP_API_VERSION@.lib: gimpmodule.def
	lib -name:libgimpmodule-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpmodule.def -out:$@
37 38 39 40 41 42

else
install-ms-lib:
uninstall-ms-lib:
endif

43
libgimpmoduleincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpmodule
44 45

AM_CPPFLAGS = \
46
	-DG_LOG_DOMAIN=\"LibGimpModule\"	\
47 48
	-DGIMP_MODULE_COMPILATION		\
	-I$(top_srcdir)				\
49
	$(GIO_CFLAGS)				\
50 51
	$(GLIB_CFLAGS)				\
	$(GMODULE_NO_EXPORT_CFLAGS)		\
52 53 54 55 56
	-I$(includedir)

EXTRA_DIST = \
	gimpmodule.def

57
lib_LTLIBRARIES = libgimpmodule-@GIMP_API_VERSION@.la
58

59
libgimpmodule_@GIMP_API_VERSION@_la_SOURCES = \
60 61
	gimpmoduletypes.h	\
	gimpmodule.c		\
62 63 64
	gimpmodule.h		\
	gimpmoduledb.c		\
	gimpmoduledb.h
65 66 67

libgimpmoduleinclude_HEADERS = \
	gimpmoduletypes.h	\
68 69
	gimpmodule.h		\
	gimpmoduledb.h
70

71
libgimpmodule_@GIMP_API_VERSION@_la_LDFLAGS = \
72 73
	-version-info $(LT_VERSION_INFO)	\
	$(no_undefined) 			\
74 75
	$(libgimpmodule_export_symbols)

76
EXTRA_libgimpmodule_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpmodule_def)
77

78
libgimpmodule_@GIMP_API_VERSION@_la_LIBADD = \
79
	$(libgimpbase)			\
80
	$(libgimpconfig)		\
81
	$(GMODULE_NO_EXPORT_LIBS) 	\
82
	$(GIO_LIBS)			\
83
	$(GLIB_LIBS)
84 85 86 87

install-data-local: install-ms-lib install-libtool-import-lib

uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib