summaryrefslogtreecommitdiff
path: root/mingw32.mak
diff options
context:
space:
mode:
Diffstat (limited to 'mingw32.mak')
-rw-r--r--mingw32.mak10
1 files changed, 6 insertions, 4 deletions
diff --git a/mingw32.mak b/mingw32.mak
index 39db786..73ff0f1 100644
--- a/mingw32.mak
+++ b/mingw32.mak
@@ -6,12 +6,14 @@
# http://sourceforge.net/projects/msys2/
.PHONY: test check
-CC = gcc
-
# Ruben van Boxem i686-w64-mingw32
#CRT_GLOB_OBJ = C:/mingw32/i686-w64-mingw32/lib/CRT_glob.o
+# We need C++ for d2u_printf in common.c.
+
+UNIFILE=1
# MSYS2
+CC = gcc
CRT_GLOB_OBJ = /mingw32/i686-w64-mingw32/lib/CRT_glob.o
prefix=c:/usr/local
@@ -24,7 +26,7 @@ endif
LIBS_EXTRA += $(CRT_GLOB_OBJ)
all:
- $(MAKE) all EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) CFLAGS_OS=-I/mingw32/include
+ $(MAKE) all EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) CFLAGS_OS=-I/mingw32/include UNIFILE=$(UNIFILE)
test: all
cd test; $(MAKE) test
@@ -32,7 +34,7 @@ test: all
check: test
install:
- $(MAKE) install EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) CFLAGS_OS=-I/mingw32/include
+ $(MAKE) install EXE=.exe ENABLE_NLS=$(ENABLE_NLS) LIBS_EXTRA="$(LIBS_EXTRA)" prefix=$(prefix) LINK="cp -f" CC=$(CC) CFLAGS_OS=-I/mingw32/include UNIFILE=$(UNIFILE)
uninstall:
$(MAKE) uninstall EXE=.exe prefix=$(prefix)