shithub: opusfile

Download patch

ref: 7d672dd2547b5894f062922076b7a451fef96999
parent: 3d742462645c2c81c7283e492e2e65eafac67333
author: Ralph Giles <giles@mozilla.com>
date: Fri Mar 1 09:17:41 EST 2013

Add an exe extension variable and use it in the mingw build.

--- a/unix/Makefile
+++ b/unix/Makefile
@@ -47,6 +47,7 @@
 # Extras for the MS target
 ifneq ($(findstring mingw,${CC}),)
 LIBS += -lwsock32 -lws2_32 -lgdi32 -lcrypt32
+EXEEXT := .exe
 endif
 
 RANLIB ?= ranlib
@@ -116,8 +117,8 @@
 # ${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}