Gimp/libgimpbase/Makefile.am
Tor Lillqvist 6e2568839b Additions for Win32: Use -no-undefined. Use the gimpbase.def file. Produce
2002-03-30  Tor Lillqvist  <tml@iki.fi>

	* libgimpbase/Makefile.am: Additions for Win32: Use
	-no-undefined. Use the gimpbase.def file. Produce MS style import
	library if possible. Install (and uninstall) import
	libraries. Pass definition of PREFIX in CPPFLAGS.

	* libgimpbase/gimpbase.def: Do export gimp_signal_private.

	* libgimpbase/gimpenv.c: Similar Win32 working as in the gimp-1-2
	branch:
	(gimp_directory): Replace funny chars in user name (when used as
	part of last-resort personal gimp directory name) with
	underscores.
	(gimp_toplevel_directory): New (Win32-only) function. Deduces the
	installation prefix at run-time.
	(gimp_path_runtime_fix): New function. On Win32, replace the
	string with one where the compile-time prefix has been replaced
	with the run-time one.
	(gimp_path_parse, gimp_env_get_dir): Call it.

	* libgimpbase/gimpsignal.c: Trim (lots of) trailing spaces in
	copyright notice.
	(gimp_signal_private): Bypass on Win32, return NULL. Or should we
	call g_error(), thus requiring that calls of this are enclosed with
	#ifdef G_OS_UNIX?

	* libgimpbase/makefile.mingw.in: Add comment that it is seriously
	out-of-date.

	* libgimpbase/makefile.msc: Do compile gimpsignal.c.
2002-03-29 23:10:18 +00:00

117 lines
2.4 KiB
Makefile

## Process this file with automake to produce Makefile.in
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if OS_WIN32
gimpbase_def = gimpbase.def
libgimpbase_export_symbols = -export-symbols gimpbase.def
install-libtool-import-lib:
$(INSTALL) .libs/libgimpbase-1.3.dll.a $(DESTDIR)$(libdir)
uninstall-libtool-import-lib:
-rm $(DESTDIR)$(libdir)/libgimpbase-1.3.dll.a
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif
if MS_LIB_AVAILABLE
noinst_DATA = gimpbase-1.3.lib
install-ms-lib:
$(INSTALL) gimpbase-1.3.lib $(DESTDIR)$(libdir)
uninstall-ms-lib:
-rm $(DESTDIR)$(libdir)/gimpbase-1.3.lib
gimpbase-1.3.lib: gimpbase.def
lib -name:libgimpbase-1.3-@LT_CURRENT_MINUS_AGE@.dll -def:gimpbase.def -out:$@
else
install-ms-lib:
uninstall-ms-lib:
endif
libgimpbaseincludedir = $(includedir)/gimp-$(LT_RELEASE)/libgimpbase
AM_CPPFLAGS = @STRIP_BEGIN@ \
-DPREFIX=\""$(prefix)"\" \
-DGIMPDIR=\""$(gimpdir)"\" \
-DDATADIR=\""$(gimpdatadir)"\" \
-DPLUGINDIR=\""$(gimpplugindir)"\" \
-DSYSCONFDIR=\""$(gimpsysconfdir)"\" \
-DG_LOG_DOMAIN=\"LibGimpBase\" \
@GIMP_THREAD_FLAGS@ \
@STRIP_END@
INCLUDES = @STRIP_BEGIN@ \
-I$(top_srcdir) \
$(GLIB_CFLAGS) \
-I$(includedir) \
@STRIP_END@
EXTRA_DIST = \
gimpversion.h.in \
makefile.mingw \
makefile.mingw.in \
makefile.msc \
gimpbase.def
lib_LTLIBRARIES = libgimpbase-1.3.la
# help `make' along by giving another name for the file, which it knows
# how to build
../libgimpbase/gimpversion.h: gimpversion.h
@:
libgimpbase_1_3_la_SOURCES = @STRIP_BEGIN@ \
gimpbase.h \
gimpbasetypes.h \
gimpenv.c \
gimpenv.h \
gimplimits.h \
gimpsignal.c \
gimpsignal.h \
gimpparasite.c \
gimpparasite.h \
gimpparasiteio.c \
gimpparasiteio.h \
gimpprotocol.c \
gimpprotocol.h \
gimpunit.h \
gimpversion.h \
gimpwire.c \
gimpwire.h \
@STRIP_END@
libgimpbaseinclude_HEADERS = @STRIP_BEGIN@ \
gimpbase.h \
gimpbasetypes.h \
gimpenv.h \
gimplimits.h \
gimpsignal.h \
gimpparasite.h \
gimpparasiteio.h \
gimpunit.h \
gimpversion.h \
@STRIP_END@
EXTRA_HEADERS =
libgimpbase_1_3_la_LDFLAGS = @STRIP_BEGIN@ \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
$(no_undefined) \
$(libgimpbase_export_symbols) \
@STRIP_END@
libgimpbase_1_3_la_DEPENDENCIES = $(gimpbase_def)
libgimpbase_1_3_la_LIBADD = $(GLIB_LIBS)
install-data-local: install-ms-lib install-libtool-import-lib
uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib