diff options
author | Michael Terry <mike@mterry.name> | 2011-06-01 15:24:28 -0400 |
---|---|---|
committer | Michael Terry <mike@mterry.name> | 2011-06-01 15:24:28 -0400 |
commit | 5ddcf6b51cdcb8d793748ff4a812f843a0d4f6e7 (patch) | |
tree | 67cdd3557d77ae36dbc61ed05cd6c136bf4f2fe8 /src/Makefile.am | |
parent | 3e67ec3d19dd4e31ec68b1b9c33f4b330c7672a3 (diff) | |
download | ayatana-ido-5ddcf6b51cdcb8d793748ff4a812f843a0d4f6e7.tar.gz ayatana-ido-5ddcf6b51cdcb8d793748ff4a812f843a0d4f6e7.tar.bz2 ayatana-ido-5ddcf6b51cdcb8d793748ff4a812f843a0d4f6e7.zip |
allow building either gtk2 or gtk3 versions; some deprecation cleanups
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 1485019..5ac5a01 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,3 +1,11 @@ +if USE_GTK3 +VER=3 +lib_LTLIBRARIES = libido3-0.1.la +else +VER= +lib_LTLIBRARIES = libido-0.1.la +endif + ido_built_public_sources = \ idotypebuiltins.h @@ -40,16 +48,13 @@ INCLUDES = \ -DLIBDIR=\"$(libdir)"\" \ -DG_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ - -DGDK_DISABLE_DEPRECATED \ - -DGTK_DISABLE_DEPRECATED + -DGDK_DISABLE_DEPRECATED AM_CPPFLAGS = \ $(GCC_FLAGS) \ $(GTK_CFLAGS) \ $(MAINTAINER_CFLAGS) -lib_LTLIBRARIES = libido-0.1.la - libido_0_1_la_SOURCES = \ idotypebuiltins.c \ idocalendarmenuitem.c \ @@ -58,8 +63,9 @@ libido_0_1_la_SOURCES = \ idorange.c \ idoscalemenuitem.c \ idotimeline.c +libido3_0_1_la_SOURCES = $(libido_0_1_la_SOURCES) -libidoincludedir=$(includedir)/libido-0.1/libido +libidoincludedir=$(includedir)/libido$(VER)-0.1/libido libidoinclude_HEADERS = \ idocalendarmenuitem.h \ @@ -72,8 +78,8 @@ libidoinclude_HEADERS = \ libido_0_1_la_LIBADD = $(GTK_LIBS) libido_0_1_la_LDFLAGS = $(GTK_LT_LDFLAGS) - -idoheadersdir = $(includedir)/ido-0.1/ido +libido3_0_1_la_LIBADD = $(libido_0_1_la_LIBADD) +libido3_0_1_la_LDFLAGS = $(libido_0_1_la_LDFLAGS) DISTCLEANFILES = \ stamp-idotypebuiltins.h \ |