diff options
Diffstat (limited to 'sesman')
| -rw-r--r-- | sesman/chansrv/Makefile.am | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/sesman/chansrv/Makefile.am b/sesman/chansrv/Makefile.am index c4cd1a3f..2ecd67b4 100644 --- a/sesman/chansrv/Makefile.am +++ b/sesman/chansrv/Makefile.am @@ -1,32 +1,27 @@ -EXTRA_DEFINES = -EXTRA_INCLUDES = -EXTRA_LIBS = -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 + +CHANSRV_EXTRA_LIBS = if XRDP_FUSE -EXTRA_DEFINES += -DXRDP_FUSE -EXTRA_LIBS += -lfuse +AM_CPPFLAGS += -DXRDP_FUSE +CHANSRV_EXTRA_LIBS += -lfuse endif if XRDP_OPUS -EXTRA_DEFINES += -DXRDP_OPUS -EXTRA_LIBS += -lopus +AM_CPPFLAGS += -DXRDP_OPUS +CHANSRV_EXTRA_LIBS += -lopus endif if XRDP_MP3LAME -EXTRA_DEFINES += -DXRDP_MP3LAME -EXTRA_LIBS += -lmp3lame +AM_CPPFLAGS += -DXRDP_MP3LAME +CHANSRV_EXTRA_LIBS += -lmp3lame 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) sbin_PROGRAMS = \ @@ -65,10 +60,9 @@ xrdp_chansrv_SOURCES = \ xcommon.h xrdp_chansrv_LDFLAGS = \ - $(X_LIBS) \ - $(EXTRA_FLAGS) + $(X_LIBS) xrdp_chansrv_LDADD = \ $(top_builddir)/common/libcommon.la \ $(X_PRE_LIBS) -lXfixes -lXrandr -lX11 $(X_EXTRA_LIBS) \ - $(EXTRA_LIBS) + $(CHANSRV_EXTRA_LIBS) |
