ref: bf33bcd039a9c1beec325580eff7a970a6c33593
parent: 1cfda6a71fb45e257f56917147b3e684f77954a3
author: Ralph Giles <giles@mozilla.com>
date: Wed Dec 30 20:57:11 EST 2015
mingw: Use $(CURDIR) instead of ${PWD}. This doesn't work in a normal shell, but enables 'make -C mingw' which is convenient. Thanks to ron for the suggestion.
--- a/doc/release.txt
+++ b/doc/release.txt
@@ -23,7 +23,7 @@
Win32 binaries:
- Assuming the mingw cross toolchain:
-- run cd mingw && make
+- run `make -C mingw`
- Downloads versions of libogg, opus, openssl.
- Compiles them.
- Compiles static opusfile and examples against the built deps.
--- a/mingw/Makefile
+++ b/mingw/Makefile
@@ -17,12 +17,12 @@
libopusfile-0.dll: ../unix/Makefile $(DEPS)
CC=$(TOOL_PREFIX)-gcc \
RANLIB=$(TOOL_PREFIX)-ranlib \
- PKG_CONFIG_PATH=${PWD}/lib/pkgconfig \
+ PKG_CONFIG_PATH=$(CURDIR)/lib/pkgconfig \
$(MAKE) -f $<
opusfile: $(DEPS)
- ../configure --host=$(TOOL_PREFIX) --prefix=${PWD} \
- PKG_CONFIG_PATH=${PWD}/lib/pkgconfig
+ ../configure --host=$(TOOL_PREFIX) --prefix=$(CURDIR) \
+ PKG_CONFIG_PATH=$(CURDIR)/lib/pkgconfig
$(MAKE)
clean:
@@ -57,18 +57,18 @@
# NOTE: 'make check' generally requires wine with cross-compiling.
ogg_BUILD: $(ogg_DIR)
- cd $< && ./configure --host=$(TOOL_PREFIX) --prefix=${PWD}
+ cd $< && ./configure --host=$(TOOL_PREFIX) --prefix=$(CURDIR)
$(MAKE) -C $< check
$(MAKE) -C $< install
opus_BUILD: $(opus_DIR)
- cd $< && ./configure --host=$(TOOL_PREFIX) --prefix=${PWD}
+ cd $< && ./configure --host=$(TOOL_PREFIX) --prefix=$(CURDIR)
$(MAKE) -C $< check
$(MAKE) -C $< install
ssl_BUILD: $(ssl_DIR)
cd $< && ./Configure shared mingw64 no-asm \
- --prefix=${PWD} \
+ --prefix=$(CURDIR) \
--cross-compile-prefix=$(TOOL_PREFIX)-
$(MAKE) -C $< depend
$(MAKE) -C $<