xrdp/sesman/tools/Makefile.am
Pavel Roskin 58c9cb43e9 Make socket directory configurable, don't hardcode /tmp/.xrdp
Use XRDP_SOCKET_PATH in file_loc.h

Don't define any non-socket paths in file_loc.h, they should come from
the makefiles.

Define all paths unconditionally, they should not be defined elsewhere.

Pass XRDP_SOCKET_PATH as environment variable to the backends.
2017-03-17 22:25:05 -07:00

60 lines
1.0 KiB
Makefile

AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
-DXRDP_SHARE_PATH=\"${datadir}/xrdp\" \
-DXRDP_PID_PATH=\"${localstatedir}/run\" \
-DXRDP_SOCKET_PATH=\"${socketdir}\" \
-I$(top_srcdir)/common \
-I$(top_srcdir)/sesman/libscp \
-I$(top_srcdir)/sesman
if XRDP_DEBUG
AM_CPPFLAGS += -DXRDP_DEBUG
endif
AM_CFLAGS = $(X_CFLAGS)
bin_PROGRAMS = \
xrdp-sesrun \
xrdp-sesadmin \
xrdp-dis
noinst_PROGRAMS = \
xrdp-sestest \
xrdp-xcon
xrdp_sesrun_SOURCES = \
config.c \
sesrun.c \
tcp.c \
tcp.h
xrdp_sestest_SOURCES = \
sestest.c
xrdp_sesadmin_SOURCES = \
sesadmin.c
xrdp_dis_SOURCES = \
dis.c
xrdp_xcon_SOURCES = \
xcon.c
xrdp_sesrun_LDADD = \
$(top_builddir)/common/libcommon.la
xrdp_sestest_LDADD = \
$(top_builddir)/common/libcommon.la \
$(top_builddir)/sesman/libscp/libscp.la
xrdp_sesadmin_LDADD = \
$(top_builddir)/common/libcommon.la \
$(top_builddir)/sesman/libscp/libscp.la
xrdp_xcon_LDFLAGS = \
$(X_LIBS)
xrdp_xcon_LDADD = \
$(X_PRE_LIBS) -lX11 $(X_EXTRA_LIBS)