00e70a5c54
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.
72 lines
1.2 KiB
Makefile
72 lines
1.2 KiB
Makefile
EXTRA_DIST = \
|
|
chansrv.h \
|
|
chansrv_fuse.h \
|
|
clipboard.h \
|
|
clipboard_common.h \
|
|
clipboard_file.h \
|
|
devredir.h \
|
|
drdynvc.h \
|
|
rail.h \
|
|
sound.h \
|
|
xcommon.h \
|
|
mlog.h \
|
|
chansrv_common.h \
|
|
irp.h \
|
|
smartcard.h \
|
|
smartcard_pcsc.h \
|
|
fifo.h
|
|
|
|
EXTRA_DEFINES =
|
|
EXTRA_INCLUDES =
|
|
EXTRA_LIBS =
|
|
EXTRA_FLAGS =
|
|
|
|
if XRDP_FUSE
|
|
EXTRA_DEFINES += -DXRDP_FUSE
|
|
EXTRA_LIBS += -lfuse
|
|
endif
|
|
|
|
if XRDP_OPUS
|
|
EXTRA_DEFINES += -DXRDP_OPUS
|
|
EXTRA_LIBS += -lopus
|
|
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 = \
|
|
xrdp-chansrv
|
|
|
|
xrdp_chansrv_SOURCES = \
|
|
chansrv.c \
|
|
sound.c \
|
|
clipboard.c \
|
|
clipboard_file.c \
|
|
devredir.c \
|
|
smartcard.c \
|
|
smartcard_pcsc.c \
|
|
rail.c \
|
|
xcommon.c \
|
|
drdynvc.c \
|
|
chansrv_fuse.c \
|
|
irp.c \
|
|
fifo.c \
|
|
chansrv_common.c
|
|
|
|
xrdp_chansrv_LDFLAGS = \
|
|
$(X_LIBS) \
|
|
$(EXTRA_FLAGS)
|
|
|
|
xrdp_chansrv_LDADD = \
|
|
$(top_builddir)/common/libcommon.la \
|
|
$(X_PRE_LIBS) -lXfixes -lXrandr -lX11 $(X_EXTRA_LIBS) \
|
|
$(EXTRA_LIBS)
|