[network-manager-pptp/jk/libnm-port: 2/4] build: use AM_CPPFLAGS, avoid deprecated INCLUDES
- From: Jiří Klimeš <jklimes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-pptp/jk/libnm-port: 2/4] build: use AM_CPPFLAGS, avoid deprecated INCLUDES
- Date: Fri, 29 May 2015 08:35:34 +0000 (UTC)
commit 41f3dd7dfbff09d3c53575fe8fbd75a9aea98c7a
Author: Jiří Klimeš <jklimes redhat com>
Date: Thu May 21 17:13:55 2015 +0200
build: use AM_CPPFLAGS, avoid deprecated INCLUDES
Since automake 1.12.4, the warnings are issued on running automake:
warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Avoid INCLUDES and roll these flags into AM_CPPFLAGS.
auth-dialog/Makefile.am | 2 +-
properties/Makefile.am | 2 +-
src/Makefile.am | 9 ++++-----
3 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/auth-dialog/Makefile.am b/auth-dialog/Makefile.am
index 48f547b..66c0495 100644
--- a/auth-dialog/Makefile.am
+++ b/auth-dialog/Makefile.am
@@ -1,4 +1,4 @@
-INCLUDES = -I${top_srcdir}
+AM_CPPFLAGS = -I${top_srcdir}
libexec_PROGRAMS = nm-pptp-auth-dialog
diff --git a/properties/Makefile.am b/properties/Makefile.am
index 8d8c79b..6acce22 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -1,7 +1,7 @@
plugindir = $(libdir)/NetworkManager
plugin_LTLIBRARIES = libnm-pptp-properties.la
-INCLUDES = -I${top_srcdir}
+AM_CPPFLAGS = -I${top_srcdir}
libnm_pptp_properties_la_SOURCES = \
nm-pptp.c \
diff --git a/src/Makefile.am b/src/Makefile.am
index d37d065..d3a210a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,9 +1,8 @@
-INCLUDES = -I${top_srcdir}
-
AM_CPPFLAGS = \
- $(DBUS_GLIB_CFLAGS) \
+ $(DBUS_GLIB_CFLAGS) \
$(GLIB_CFLAGS) \
- $(NM_CFLAGS) \
+ $(NM_CFLAGS) \
+ -I${top_srcdir} \
-DG_DISABLE_DEPRECATED \
-DBINDIR=\"$(bindir)\" \
-DPREFIX=\""$(prefix)"\" \
@@ -11,7 +10,7 @@ AM_CPPFLAGS = \
-DNM_VERSION="\"$(VERSION)\"" \
-DLIBDIR=\""$(libdir)"\" \
-DLIBEXECDIR=\""$(libexecdir)"\" \
- -DLOCALSTATEDIR=\""$(localstatedir)"\" \
+ -DLOCALSTATEDIR=\""$(localstatedir)"\" \
-DDATADIR=\"$(datadir)\" \
-DNM_PPTP_LOCALEDIR=\"$(datadir)/locale\" \
-DPLUGINDIR=\"$(PPPD_PLUGIN_DIR)\"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]