Get rid of EXTRA_LIBS, use variables with more specific names
This commit is contained in:
parent
5c69f3cd57
commit
a370306f75
@ -1,5 +1,3 @@
|
|||||||
EXTRA_LIBS =
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
|
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
|
||||||
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
||||||
@ -9,6 +7,8 @@ AM_CPPFLAGS = \
|
|||||||
|
|
||||||
AM_LDFLAGS =
|
AM_LDFLAGS =
|
||||||
|
|
||||||
|
LIBXRDP_EXTRA_LIBS =
|
||||||
|
|
||||||
if XRDP_DEBUG
|
if XRDP_DEBUG
|
||||||
AM_CPPFLAGS += -DXRDP_DEBUG
|
AM_CPPFLAGS += -DXRDP_DEBUG
|
||||||
else
|
else
|
||||||
@ -17,17 +17,17 @@ endif
|
|||||||
|
|
||||||
if XRDP_NEUTRINORDP
|
if XRDP_NEUTRINORDP
|
||||||
AM_CPPFLAGS += -DXRDP_NEUTRINORDP
|
AM_CPPFLAGS += -DXRDP_NEUTRINORDP
|
||||||
EXTRA_LIBS += $(FREERDP_LIBS)
|
LIBXRDP_EXTRA_LIBS += $(FREERDP_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if XRDP_TJPEG
|
if XRDP_TJPEG
|
||||||
AM_CPPFLAGS += -DXRDP_JPEG -DXRDP_TJPEG @TurboJpegIncDir@
|
AM_CPPFLAGS += -DXRDP_JPEG -DXRDP_TJPEG @TurboJpegIncDir@
|
||||||
AM_LDFLAGS += @TurboJpegLibDir@
|
AM_LDFLAGS += @TurboJpegLibDir@
|
||||||
EXTRA_LIBS += -lturbojpeg
|
LIBXRDP_EXTRA_LIBS += -lturbojpeg
|
||||||
else
|
else
|
||||||
if XRDP_JPEG
|
if XRDP_JPEG
|
||||||
AM_CPPFLAGS += -DXRDP_JPEG
|
AM_CPPFLAGS += -DXRDP_JPEG
|
||||||
EXTRA_LIBS += -ljpeg
|
LIBXRDP_EXTRA_LIBS += -ljpeg
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -55,4 +55,4 @@ libxrdp_la_SOURCES = \
|
|||||||
|
|
||||||
libxrdp_la_LIBADD = \
|
libxrdp_la_LIBADD = \
|
||||||
$(top_builddir)/common/libcommon.la \
|
$(top_builddir)/common/libcommon.la \
|
||||||
$(EXTRA_LIBS)
|
$(LIBXRDP_EXTRA_LIBS)
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
EXTRA_LIBS =
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
|
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
|
||||||
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
||||||
@ -7,19 +5,21 @@ AM_CPPFLAGS = \
|
|||||||
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
|
||||||
-I$(top_srcdir)/common
|
-I$(top_srcdir)/common
|
||||||
|
|
||||||
|
CHANSRV_EXTRA_LIBS =
|
||||||
|
|
||||||
if XRDP_FUSE
|
if XRDP_FUSE
|
||||||
AM_CPPFLAGS += -DXRDP_FUSE
|
AM_CPPFLAGS += -DXRDP_FUSE
|
||||||
EXTRA_LIBS += -lfuse
|
CHANSRV_EXTRA_LIBS += -lfuse
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if XRDP_OPUS
|
if XRDP_OPUS
|
||||||
AM_CPPFLAGS += -DXRDP_OPUS
|
AM_CPPFLAGS += -DXRDP_OPUS
|
||||||
EXTRA_LIBS += -lopus
|
CHANSRV_EXTRA_LIBS += -lopus
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if XRDP_MP3LAME
|
if XRDP_MP3LAME
|
||||||
AM_CPPFLAGS += -DXRDP_MP3LAME
|
AM_CPPFLAGS += -DXRDP_MP3LAME
|
||||||
EXTRA_LIBS += -lmp3lame
|
CHANSRV_EXTRA_LIBS += -lmp3lame
|
||||||
endif
|
endif
|
||||||
|
|
||||||
AM_CFLAGS = $(X_CFLAGS)
|
AM_CFLAGS = $(X_CFLAGS)
|
||||||
@ -65,4 +65,4 @@ xrdp_chansrv_LDFLAGS = \
|
|||||||
xrdp_chansrv_LDADD = \
|
xrdp_chansrv_LDADD = \
|
||||||
$(top_builddir)/common/libcommon.la \
|
$(top_builddir)/common/libcommon.la \
|
||||||
$(X_PRE_LIBS) -lXfixes -lXrandr -lX11 $(X_EXTRA_LIBS) \
|
$(X_PRE_LIBS) -lXfixes -lXrandr -lX11 $(X_EXTRA_LIBS) \
|
||||||
$(EXTRA_LIBS)
|
$(CHANSRV_EXTRA_LIBS)
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
EXTRA_LIBS =
|
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
|
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
|
||||||
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
-DXRDP_SBIN_PATH=\"${sbindir}\" \
|
||||||
@ -10,6 +8,8 @@ AM_CPPFLAGS = \
|
|||||||
-I$(top_srcdir)/common \
|
-I$(top_srcdir)/common \
|
||||||
-I$(top_srcdir)/libxrdp
|
-I$(top_srcdir)/libxrdp
|
||||||
|
|
||||||
|
XRDP_EXTRA_LIBS =
|
||||||
|
|
||||||
if XRDP_DEBUG
|
if XRDP_DEBUG
|
||||||
AM_CPPFLAGS += -DXRDP_DEBUG
|
AM_CPPFLAGS += -DXRDP_DEBUG
|
||||||
else
|
else
|
||||||
@ -19,13 +19,13 @@ endif
|
|||||||
if XRDP_RFXCODEC
|
if XRDP_RFXCODEC
|
||||||
AM_CPPFLAGS += -DXRDP_RFXCODEC
|
AM_CPPFLAGS += -DXRDP_RFXCODEC
|
||||||
AM_CPPFLAGS += -I$(top_srcdir)/librfxcodec/include
|
AM_CPPFLAGS += -I$(top_srcdir)/librfxcodec/include
|
||||||
EXTRA_LIBS += $(top_srcdir)/librfxcodec/src/.libs/librfxencode.a
|
XRDP_EXTRA_LIBS += $(top_srcdir)/librfxcodec/src/.libs/librfxencode.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if XRDP_PIXMAN
|
if XRDP_PIXMAN
|
||||||
AM_CPPFLAGS += -DXRDP_PIXMAN
|
AM_CPPFLAGS += -DXRDP_PIXMAN
|
||||||
AM_CPPFLAGS += $(XRDP_PIXMAN_CFLAGS)
|
AM_CPPFLAGS += $(XRDP_PIXMAN_CFLAGS)
|
||||||
EXTRA_LIBS += $(XRDP_PIXMAN_LIBS)
|
XRDP_EXTRA_LIBS += $(XRDP_PIXMAN_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
sbin_PROGRAMS = \
|
sbin_PROGRAMS = \
|
||||||
@ -53,7 +53,7 @@ xrdp_SOURCES = \
|
|||||||
xrdp_LDADD = \
|
xrdp_LDADD = \
|
||||||
$(top_builddir)/common/libcommon.la \
|
$(top_builddir)/common/libcommon.la \
|
||||||
$(top_builddir)/libxrdp/libxrdp.la \
|
$(top_builddir)/libxrdp/libxrdp.la \
|
||||||
$(EXTRA_LIBS)
|
$(XRDP_EXTRA_LIBS)
|
||||||
|
|
||||||
xrdpsysconfdir=$(sysconfdir)/xrdp
|
xrdpsysconfdir=$(sysconfdir)/xrdp
|
||||||
|
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
EXTRA_LIBS =
|
|
||||||
|
|
||||||
module_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libxrdpapi.la
|
libxrdpapi.la
|
||||||
|
|
||||||
libxrdpapi_la_SOURCES = \
|
libxrdpapi_la_SOURCES = \
|
||||||
xrdpapi.c \
|
xrdpapi.c \
|
||||||
xrdpapi.h
|
xrdpapi.h
|
||||||
|
|
||||||
libxrdpapi_la_LIBADD = \
|
|
||||||
$(EXTRA_LIBS)
|
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
EXTRA_LIBS =
|
|
||||||
|
|
||||||
module_LTLIBRARIES = \
|
module_LTLIBRARIES = \
|
||||||
libxrdpvr.la
|
libxrdpvr.la
|
||||||
|
|
||||||
libxrdpvr_la_SOURCES = \
|
libxrdpvr_la_SOURCES = \
|
||||||
xrdpvr.c \
|
xrdpvr.c \
|
||||||
xrdpvr.h
|
xrdpvr.h
|
||||||
|
|
||||||
libxrdpvr_la_LIBADD = \
|
|
||||||
$(EXTRA_LIBS)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user