diff Makefile.w32 @ 877:4a2ed354ab4c

Use ?= in the Makefiles to accept preset values.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Feb 2015 19:07:16 +0200
parents dd35d66c3714
children
line wrap: on
line diff
--- a/Makefile.w32	Wed Feb 04 18:00:48 2015 +0200
+++ b/Makefile.w32	Wed Feb 04 19:07:16 2015 +0200
@@ -1,13 +1,13 @@
 #
 # For win32 version cross-compilation with MinGW suite @ Linux
 #
-DMLIB = ./
-BINPATH=./exe/
-OBJPATH=./obj/win32/
-EXEEXT=.exe
+DMLIB ?= ./
+BINPATH ?= ./exe/
+OBJPATH ?= ./obj/win32/
+EXEEXT ?= .exe
 
-MINGW_PREFIX=i686-w64-mingw32-
-MINGW_PATH=/usr/i686-w64-mingw32
+MINGW_PREFIX ?= i686-w64-mingw32-
+MINGW_PATH ?= /usr/i686-w64-mingw32
 
 # C-compiler, flags and linker flags
 CC=$(MINGW_PREFIX)gcc