comparison Makefile.w32 @ 68:8dda5f225083

Improve build process.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 27 Dec 2015 22:10:29 +0200
parents ea774012d049
children 19cbd8642875
comparison
equal deleted inserted replaced
67:b114164d9ed9 68:8dda5f225083
2 # For win32 version cross-compilation with MinGW suite @ Linux 2 # For win32 version cross-compilation with MinGW suite @ Linux
3 # 3 #
4 4
5 # C-compiler, flags and linker flags 5 # C-compiler, flags and linker flags
6 MINGW_PREFIX=i686-w64-mingw32- 6 MINGW_PREFIX=i686-w64-mingw32-
7 CC=$(MINGW_PREFIX)gcc 7 CC ?= $(MINGW_PREFIX)gcc
8 AR=$(MINGW_PREFIX)ar 8 AR ?= $(MINGW_PREFIX)ar
9 RANLIB=$(MINGW_PREFIX)ranlib 9 RANLIB ?= $(MINGW_PREFIX)ranlib
10 WINDRES=$(MINGW_PREFIX)windres 10 WINDRES ?= $(MINGW_PREFIX)windres
11 11
12 CFLAGS=-DHAVE_STRING_H -DTH_BYTEORDER=TH_LITTLE_ENDIAN -mconsole 12 CFLAGS += -DHAVE_STRING_H -DTH_BYTEORDER=TH_LITTLE_ENDIAN -mconsole
13 LDFLAGS= -s 13 LDFLAGS += -s
14 14
15 # Miscellaneous 15 # Miscellaneous
16 EXEEXT=.exe 16 EXEEXT=.exe
17 OBJPATH=obj/win32/ 17 OBJPATH=obj/win32/
18 BINPATH=./ 18 BINPATH=./