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

mchalain [marc.chalain@gmail.com] marc.chalain at gmail.com
Thu Sep 5 03:15:26 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 |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 2921041..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$(EXEEXT)
+wayland_scanner = $(top_builddir)/src/wayland-scanner$(EXEEXT_FOR_BUILD)
 else
-wayland_scanner = wayland-scanner$(EXEEXT)
+wayland_scanner = wayland-scanner$(EXEEXT_FOR_BUILD)
 endif
 
 include $(top_srcdir)/src/scanner.mk
@@ -56,7 +57,7 @@ build-%.o : %.c
 	$(AM_V_CC)$(COMPILE_FOR_BUILD) -MT $@ -MD -MP -MF $(DEPDIR)/build-$*.Tpo -c -o $@ $<
 	$(AM_V_at)$(am__mv) $(DEPDIR)/build-$*.Tpo $(DEPDIR)/build-$*.Po
 
-bin_PROGRAMS = wayland-scanner$(EXEEXT)
+bin_PROGRAMS = wayland-scanner
 
 wayland_scanner_SOURCES =				\
 	build-scanner.c		\
@@ -65,7 +66,7 @@ wayland_scanner_SOURCES =				\
 wayland_scanner_LDADD = $(EXPAT_LIBS)
 wayland_scanner_LINK = $(CCLD_FOR_BUILD) -o $@
 
-$(BUILT_SOURCES) : wayland-scanner$(EXEEXT)
+$(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