From a8c075e84eab3ffdc486caefd90cad4f156c99e7 Mon Sep 17 00:00:00 2001 From: seflerZ Date: Tue, 16 Apr 2024 23:19:06 +0800 Subject: [PATCH] refine makefile --- sesman/chansrv/Makefile.am | 10 +++------- xrdp/Makefile.am | 4 ---- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/sesman/chansrv/Makefile.am b/sesman/chansrv/Makefile.am index 817f9aae..7afc98c8 100644 --- a/sesman/chansrv/Makefile.am +++ b/sesman/chansrv/Makefile.am @@ -10,9 +10,7 @@ AM_CPPFLAGS = \ -DXRDP_PID_PATH=\"${localstatedir}/run\" \ -DXRDP_SOCKET_ROOT_PATH=\"${socketdir}\" \ -I$(top_srcdir)/sesman/libsesman \ - -I$(top_srcdir)/common \ - $(IBUS_CFLAGS) \ - $(GLIB2_CFLAGS) + -I$(top_srcdir)/common CHANSRV_EXTRA_LIBS = @@ -41,8 +39,8 @@ AM_CPPFLAGS += -DXRDP_RDPSNDAUDIN endif if XRDP_IBUS -AM_CPPFLAGS += -DXRDP_IBUS $(IBUS_CFLAGS) -CHANSRV_EXTRA_LIBS += $(IBUS_LIBS) +AM_CPPFLAGS += -DXRDP_IBUS $(IBUS_CFLAGS) $(GLIB2_CFLAGS) +CHANSRV_EXTRA_LIBS += $(IBUS_LIBS) $(GLIB2_LIBS) endif AM_CFLAGS = $(X_CFLAGS) @@ -93,6 +91,4 @@ xrdp_chansrv_LDADD = \ $(top_builddir)/sesman/libsesman/libsesman.la \ $(top_builddir)/libipm/libipm.la \ $(X_PRE_LIBS) -lXfixes -lXrandr -lX11 $(X_EXTRA_LIBS) \ - $(GLIB2_LIBS) \ - $(IBUS_LIBS) \ $(CHANSRV_EXTRA_LIBS) diff --git a/xrdp/Makefile.am b/xrdp/Makefile.am index 58641617..cf38cece 100644 --- a/xrdp/Makefile.am +++ b/xrdp/Makefile.am @@ -16,8 +16,6 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/libxrdp \ -I$(top_srcdir)/third_party \ -I$(top_srcdir)/third_party/tomlc99 \ - $(IMLIB2_CFLAGS) \ - $(GLIB2_CFLAGS) \ $(IBUS_CFLAGS) XRDP_EXTRA_LIBS = @@ -78,8 +76,6 @@ xrdp_LDADD = \ $(top_builddir)/libxrdp/libxrdp.la \ $(top_builddir)/third_party/tomlc99/libtoml.la \ $(IMLIB2_LIBS) \ - $(GLIB2_LIBS) \ - $(IBUS_LIBS) \ $(XRDP_EXTRA_LIBS) xrdpsysconfdir=$(sysconfdir)/xrdp