xrdp/sesman/tools/Makefile.am
Pavel Roskin 00e70a5c54 Use standard autotools means to detect X11
Use AC_PATH_XTRA to search for X11 in configure.ac. In Makefiles, add
X_CFLAGS to AM_CFLAGS for the source compilation. Add X_LIBS to LDFLAGS.
Add X_PRE_LIBS and X_EXTRA_LIBS to LDADD.

With this patch, X Windows system is correctly detected on Mac OS X.
2016-01-30 17:18:52 -08:00

56 lines
993 B
Makefile

EXTRA_DIST = tcp.h
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 \
-I$(top_srcdir)/sesman/libscp \
-I$(top_srcdir)/sesman
AM_CFLAGS = $(X_CFLAGS)
bin_PROGRAMS = \
xrdp-sesrun \
xrdp-sesadmin \
xrdp-dis
noinst_PROGRAMS = \
xrdp-sestest \
xrdp-xcon
xrdp_sesrun_SOURCES = \
sesrun.c \
tcp.c \
config.c
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)