Add an exe extension variable and use it in the mingw build.
authorRalph Giles <giles@mozilla.com>
Fri, 1 Mar 2013 22:17:41 +0000 (14:17 -0800)
committerRalph Giles <giles@mozilla.com>
Fri, 1 Mar 2013 22:17:41 +0000 (14:17 -0800)
unix/Makefile

index 973a66a..785ba1b 100644 (file)
@@ -47,6 +47,7 @@ endif
 # Extras for the MS target
 ifneq ($(findstring mingw,${CC}),)
 LIBS += -lwsock32 -lws2_32 -lgdi32 -lcrypt32
+EXEEXT := .exe
 endif
 
 RANLIB ?= ranlib
@@ -116,8 +117,8 @@ ALL_CSOURCES:= \
 # ${FOO_CSOURCES} \
 # Prepand target path to file names.
 LIBOPUSFILE_TARGET:= ${TARGETLIBDIR}/${LIBOPUSFILE_TARGET}
-OPUSFILE_EXAMPLE_TARGET:= ${TARGETBINDIR}/${OPUSFILE_EXAMPLE_TARGET}
-SEEKING_EXAMPLE_TARGET:= ${TARGETBINDIR}/${SEEKING_EXAMPLE_TARGET}
+OPUSFILE_EXAMPLE_TARGET:= ${TARGETBINDIR}/${OPUSFILE_EXAMPLE_TARGET}${EXEEXT}
+SEEKING_EXAMPLE_TARGET:= ${TARGETBINDIR}/${SEEKING_EXAMPLE_TARGET}${EXEEXT}
 # Prepend test path to file names.
 #TODO: tests
 FOO_TARGET:= ${TESTBINDIR}/${FOO_TARGET}