[PATCH 4/5] build: use EXEEXT_FOR_BUILD instead EXEEXT for wayland-scanner

mchalain [marc.chalain@gmail.com] marc.chalain at gmail.com
Thu Sep 5 06:11:17 PDT 2013


From: mchalain <marc.chalain at gmail.com>

AX_CC_FOR_BUILD set the EXEEXT_FOR_BUILD variable to define the application extention of  build platform.
---
 src/Makefile.am |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index de5b23a..4b6e1dd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -38,15 +38,16 @@ pkgconfig_DATA = wayland-client.pc wayland-server.pc
 AM_CPPFLAGS = $(FFI_CFLAGS)
 AM_CFLAGS = $(GCC_CFLAGS)
 CC_FOR_BUILD = @CC_FOR_BUILD@
+EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
 CCLD_FOR_BUILD = $(CC_FOR_BUILD)
 COMPILE_FOR_BUILD = $(CC_FOR_BUILD)
 
 protocoldir = $(top_srcdir)/protocol
 
 if ENABLE_SCANNER
-wayland_scanner = $(top_builddir)/src/wayland-scanner
+wayland_scanner = $(top_builddir)/src/wayland-scanner$(EXEEXT_FOR_BUILD)
 else
-wayland_scanner = wayland-scanner
+wayland_scanner = wayland-scanner$(EXEEXT_FOR_BUILD)
 endif
 
 include $(top_srcdir)/src/scanner.mk
@@ -65,7 +66,7 @@ wayland_scanner_SOURCES =				\
 wayland_scanner_LDADD = $(EXPAT_LIBS)
 wayland_scanner_LINK = $(CCLD_FOR_BUILD) -o $@
 
-$(BUILT_SOURCES) : wayland-scanner
+$(BUILT_SOURCES) : wayland-scanner$(EXEEXT_FOR_BUILD)
 
 scannerpkgconfigdir = $(datadir)/pkgconfig
 scannerpkgconfig_DATA = wayland-scanner.pc
-- 
1.7.9.5



More information about the wayland-devel mailing list