Makefile.am 1.74 KB
Newer Older
1 2 3
include $(top_srcdir)/Makefile.decl

EXTRA_DIST += gailutil.def
4 5 6
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
7
if OS_WIN32
8 9 10 11 12
export_symbols = -export-symbols $(srcdir)/gailutil.def
install-def-file: gailutil.def
	$(INSTALL) $(srcdir)/gailutil.def $(DESTDIR)$(libdir)
uninstall-def-file:
	-rm $(DESTDIR)$(libdir)/gailutil.def
13
else
14 15
install-def-file:
uninstall-def-file:
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
endif

if MS_LIB_AVAILABLE
noinst_DATA = gailutil.lib

install-ms-lib:
	$(INSTALL) gailutil.lib $(DESTDIR)$(libdir)

uninstall-ms-lib:
	-rm $(DESTDIR)$(libdir)/gailutil.lib
else
install-ms-lib:
uninstall-ms-lib:
endif


Matthias Clasen's avatar
Matthias Clasen committed
32
lib_LTLIBRARIES = libgailutil-3.la
33 34 35 36 37

util_c_sources =		\
	gailmisc.c		\
	gailtextutil.c

38
libgailutilincludedir=$(includedir)/gail-3.0/libgail-util
39 40 41 42 43 44

util_public_h_sources =		\
	gailmisc.h		\
	gailtextutil.h		\
	gail-util.h

Matthias Clasen's avatar
Matthias Clasen committed
45
libgailutil_3_la_SOURCES = 	\
46 47 48 49 50
	$(util_c_sources)

libgailutilinclude_HEADERS =	\
	$(util_public_h_sources)

Matthias Clasen's avatar
Matthias Clasen committed
51
libgailutil_3_la_CPPFLAGS = \
52
	-I$(top_srcdir)		\
53 54 55 56
	-I$(top_srcdir)/gdk	\
	-I$(top_builddir)/gdk	\
	-I$(top_srcdir)/gtk	\
	-I$(top_builddir)/gtk	\
57 58 59
	$(AM_CPPFLAGS) 		\
	-DGDK_DISABLE_DEPRECATED\
	-DGTK_DISABLE_DEPRECATED
60

Matthias Clasen's avatar
Matthias Clasen committed
61
libgailutil_3_la_CFLAGS = \
62 63 64 65
	$(GTK_DEP_CFLAGS)	\
	$(GTK_DEBUG_FLAGS)	\
	$(AM_CFLAGS)

Matthias Clasen's avatar
Matthias Clasen committed
66 67 68
libgailutil_3_la_LIBADD = \
	$(top_builddir)/gtk/libgtk-3.la	\
	$(top_builddir)/gdk/libgdk-3.la	\
69 70
	$(GTK_DEP_LIBS)

Matthias Clasen's avatar
Matthias Clasen committed
71
libgailutil_3_la_LDFLAGS = \
72
	-version-info $(GAIL_LT_VERSION_INFO)	\
73 74 75 76
	$(no_undefined)				\
	$(export_symbols)			\
        $(LDFLAGS)

Matthias Clasen's avatar
Matthias Clasen committed
77
gailutil.lib: libgailutil-3.la gailutil.def
78
	lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgailutil-3.0-$(GAIL_LT_CURRENT_MINUS_AGE).dll -def:gailutil.def -out:$@
79

80
install-data-local: install-ms-lib install-def-file
81

82
uninstall-local: uninstall-ms-lib uninstall-def-file
83 84

-include $(top_srcdir)/git.mk