aboutsummaryrefslogtreecommitdiff
path: root/libXaw/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'libXaw/src/Makefile.am')
-rw-r--r--libXaw/src/Makefile.am24
1 files changed, 23 insertions, 1 deletions
diff --git a/libXaw/src/Makefile.am b/libXaw/src/Makefile.am
index 2aa99800c..3bc4b29b1 100644
--- a/libXaw/src/Makefile.am
+++ b/libXaw/src/Makefile.am
@@ -56,7 +56,9 @@ COMMON_SOURCES = \
XawI18n.h
COMMON_CFLAGS = \
- $(CWARNFLAGS) \
+ $(CWARNFLAGS)
+
+COMMON_CPPFLAGS = \
-I${top_srcdir}/include \
-I${top_srcdir}/include/X11/Xaw \
-DPROJECT_ROOT=\"$(prefix)\"
@@ -65,6 +67,9 @@ if BUILD_XAW6
lib_LTLIBRARIES += libXaw6.la
+libXaw6_la_CPPFLAGS = \
+ $(COMMON_CPPFLAGS)
+
libXaw6_la_CFLAGS = \
$(COMMON_CFLAGS) \
-DOLDXAW \
@@ -85,6 +90,13 @@ else
-rm -f $(DESTDIR)$(libdir)/libXaw.@LIBEXT@.6
(cd $(DESTDIR)$(libdir) && ln -s libXaw6.@LIBEXT@.6 libXaw.@LIBEXT@.6)
endif
+
+uninstall-local::
+if PLATFORM_DARWIN
+ -rm -f $(DESTDIR)$(libdir)/libXaw.6.@LIBEXT@
+else
+ -rm -f $(DESTDIR)$(libdir)/libXaw.@LIBEXT@.6
+endif
endif
endif
@@ -93,6 +105,9 @@ if BUILD_XAW7
lib_LTLIBRARIES += libXaw7.la
+libXaw7_la_CPPFLAGS = \
+ $(COMMON_CPPFLAGS)
+
libXaw7_la_CFLAGS = \
$(COMMON_CFLAGS) \
-DXAW7 \
@@ -114,6 +129,13 @@ else
-rm -f $(DESTDIR)$(libdir)/libXaw.@LIBEXT@.7
(cd $(DESTDIR)$(libdir) && ln -s libXaw7.@LIBEXT@.7 libXaw.@LIBEXT@.7)
endif
+
+uninstall-local::
+if PLATFORM_DARWIN
+ -rm -f $(DESTDIR)$(libdir)/libXaw.7.@LIBEXT@
+else
+ -rm -f $(DESTDIR)$(libdir)/libXaw.@LIBEXT@.7
+endif
endif
endif