Merge EXTRA_DEFINES and EXTRA_INCLUDES into AM_CPPFLAGS

AM_CPPFLAGS is a documented Automake variable for C preprocessor flags
that should not be overridden when compiling the package.

There is no need to have two additional variables that are ultimately
merged into AM_CPPFLAGS.

Their names are also confusing. EXTDA_DIST is a documented Automake
variable. Everything else that starts with "EXTRA" is not.
master
Pavel Roskin 8 years ago
parent 85e98d211a
commit 0422734fc7

@ -1,40 +1,35 @@
EXTRA_DEFINES =
EXTRA_INCLUDES =
EXTRA_LIBS = EXTRA_LIBS =
EXTRA_FLAGS = EXTRA_FLAGS =
AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
-I$(top_srcdir)/common
if XRDP_DEBUG if XRDP_DEBUG
EXTRA_DEFINES += -DXRDP_DEBUG AM_CPPFLAGS += -DXRDP_DEBUG
else else
EXTRA_DEFINES += -DXRDP_NODEBUG AM_CPPFLAGS += -DXRDP_NODEBUG
endif endif
if XRDP_NEUTRINORDP if XRDP_NEUTRINORDP
EXTRA_DEFINES += -DXRDP_NEUTRINORDP AM_CPPFLAGS += -DXRDP_NEUTRINORDP
EXTRA_LIBS += $(FREERDP_LIBS) EXTRA_LIBS += $(FREERDP_LIBS)
endif endif
if XRDP_TJPEG if XRDP_TJPEG
EXTRA_DEFINES += -DXRDP_JPEG -DXRDP_TJPEG AM_CPPFLAGS += -DXRDP_JPEG -DXRDP_TJPEG @TurboJpegIncDir@
EXTRA_INCLUDES += @TurboJpegIncDir@
EXTRA_FLAGS += @TurboJpegLibDir@ EXTRA_FLAGS += @TurboJpegLibDir@
EXTRA_LIBS += -lturbojpeg EXTRA_LIBS += -lturbojpeg
else else
if XRDP_JPEG if XRDP_JPEG
EXTRA_DEFINES += -DXRDP_JPEG AM_CPPFLAGS += -DXRDP_JPEG
EXTRA_LIBS += -ljpeg EXTRA_LIBS += -ljpeg
endif endif
endif endif
AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
$(EXTRA_DEFINES) \
-I$(top_srcdir)/common \
$(EXTRA_INCLUDES)
module_LTLIBRARIES = \ module_LTLIBRARIES = \
libxrdp.la libxrdp.la

@ -1,20 +1,17 @@
EXTRA_DEFINES =
if XRDP_DEBUG
EXTRA_DEFINES += -DXRDP_DEBUG
else
EXTRA_DEFINES += -DXRDP_NODEBUG
endif
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \ -DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \ -DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \ -DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \ -DXRDP_PID_PATH=\"${localstatedir}/run\" \
$(EXTRA_DEFINES) \
-I$(top_srcdir)/common \ -I$(top_srcdir)/common \
$(FREERDP_CFLAGS) $(FREERDP_CFLAGS)
if XRDP_DEBUG
AM_CPPFLAGS += -DXRDP_DEBUG
else
AM_CPPFLAGS += -DXRDP_NODEBUG
endif
module_LTLIBRARIES = \ module_LTLIBRARIES = \
libxrdpneutrinordp.la libxrdpneutrinordp.la

@ -1,19 +1,16 @@
EXTRA_DEFINES =
if XRDP_DEBUG
EXTRA_DEFINES += -DXRDP_DEBUG
else
EXTRA_DEFINES += -DXRDP_NODEBUG
endif
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \ -DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \ -DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \ -DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \ -DXRDP_PID_PATH=\"${localstatedir}/run\" \
$(EXTRA_DEFINES) \
-I$(top_srcdir)/common -I$(top_srcdir)/common
if XRDP_DEBUG
AM_CPPFLAGS += -DXRDP_DEBUG
else
AM_CPPFLAGS += -DXRDP_NODEBUG
endif
module_LTLIBRARIES = \ module_LTLIBRARIES = \
librdp.la librdp.la

@ -1,32 +1,28 @@
EXTRA_DEFINES =
EXTRA_INCLUDES =
EXTRA_LIBS = EXTRA_LIBS =
EXTRA_FLAGS = EXTRA_FLAGS =
AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
-I$(top_srcdir)/common
if XRDP_FUSE if XRDP_FUSE
EXTRA_DEFINES += -DXRDP_FUSE AM_CPPFLAGS += -DXRDP_FUSE
EXTRA_LIBS += -lfuse EXTRA_LIBS += -lfuse
endif endif
if XRDP_OPUS if XRDP_OPUS
EXTRA_DEFINES += -DXRDP_OPUS AM_CPPFLAGS += -DXRDP_OPUS
EXTRA_LIBS += -lopus EXTRA_LIBS += -lopus
endif endif
if XRDP_MP3LAME if XRDP_MP3LAME
EXTRA_DEFINES += -DXRDP_MP3LAME AM_CPPFLAGS += -DXRDP_MP3LAME
EXTRA_LIBS += -lmp3lame EXTRA_LIBS += -lmp3lame
endif endif
AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
$(EXTRA_DEFINES) \
-I$(top_srcdir)/common \
$(EXTRA_INCLUDES)
AM_CFLAGS = $(X_CFLAGS) AM_CFLAGS = $(X_CFLAGS)
sbin_PROGRAMS = \ sbin_PROGRAMS = \

@ -1,37 +1,34 @@
EXTRA_INCLUDES =
EXTRA_LIBS = EXTRA_LIBS =
EXTRA_FLAGS = EXTRA_FLAGS =
AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
-DXRDP_MODULE_PATH=\"${moduledir}\" \
-I$(top_builddir) \
-I$(top_srcdir)/common \
-I$(top_srcdir)/libxrdp
if XRDP_DEBUG if XRDP_DEBUG
EXTRA_DEFINES = -DXRDP_DEBUG AM_CPPFLAGS += -DXRDP_DEBUG
else else
EXTRA_DEFINES = -DXRDP_NODEBUG AM_CPPFLAGS += -DXRDP_NODEBUG
endif endif
if XRDP_RFXCODEC if XRDP_RFXCODEC
EXTRA_DEFINES += -DXRDP_RFXCODEC AM_CPPFLAGS += -DXRDP_RFXCODEC
EXTRA_INCLUDES += -I$(top_srcdir)/librfxcodec/include AM_CPPFLAGS += -I$(top_srcdir)/librfxcodec/include
EXTRA_LIBS += $(top_srcdir)/librfxcodec/src/.libs/librfxencode.a EXTRA_LIBS += $(top_srcdir)/librfxcodec/src/.libs/librfxencode.a
endif endif
if XRDP_PIXMAN if XRDP_PIXMAN
EXTRA_DEFINES += -DXRDP_PIXMAN AM_CPPFLAGS += -DXRDP_PIXMAN
EXTRA_INCLUDES += $(XRDP_PIXMAN_CFLAGS) AM_CPPFLAGS += $(XRDP_PIXMAN_CFLAGS)
EXTRA_LIBS += $(XRDP_PIXMAN_LIBS) EXTRA_LIBS += $(XRDP_PIXMAN_LIBS)
endif endif
AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
-DXRDP_MODULE_PATH=\"${moduledir}\" \
$(EXTRA_DEFINES) \
-I$(top_builddir) \
-I$(top_srcdir)/common \
-I$(top_srcdir)/libxrdp \
$(EXTRA_INCLUDES)
sbin_PROGRAMS = \ sbin_PROGRAMS = \
xrdp xrdp

@ -1,12 +1,6 @@
EXTRA_DEFINES =
EXTRA_INCLUDES =
EXTRA_LIBS = EXTRA_LIBS =
EXTRA_FLAGS = EXTRA_FLAGS =
AM_CPPFLAGS = \
$(EXTRA_DEFINES) \
$(EXTRA_INCLUDES)
module_LTLIBRARIES = \ module_LTLIBRARIES = \
libxrdpapi.la libxrdpapi.la

@ -1,12 +1,6 @@
EXTRA_DEFINES =
EXTRA_INCLUDES =
EXTRA_LIBS = EXTRA_LIBS =
EXTRA_FLAGS = EXTRA_FLAGS =
AM_CPPFLAGS = \
$(EXTRA_DEFINES) \
$(EXTRA_INCLUDES)
module_LTLIBRARIES = \ module_LTLIBRARIES = \
libxrdpvr.la libxrdpvr.la

Loading…
Cancel
Save