comparison Makefile.cross-mingw @ 353:bf954444cce7

Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 Jan 2020 08:09:13 +0200
parents
children db64a58314a9
comparison
equal deleted inserted replaced
352:4978ff445572 353:bf954444cce7
1 ###
2 ### For Win32/Win64 version cross-compilation via MinGW
3 ### compiler suite under Linux/Unix
4 ###
5 #
6 # This Makefile assumes that you have MinGW installed under /usr
7 # the way Debian MinGW packages do. It also assumes that you have
8 # built/installed libogg, Tremor, libpng16, SDL2 ad SDL2_ttf under
9 # __ /usr/local __ (not /usr!) in similar fashion.
10 #
11 # For differing configurations you will have to either edit this
12 # file or alternatively provide make parameters, e.g.
13 #
14 # make -f Makefile.cross-mingw MINGW=64 BINTOOL_PREFIX=foo-bar-zoo
15 #
16
17 ifeq ($(MINGW),64)
18 BINTOOL_PREFIX ?= x86_64-w64-mingw32-
19 MINGW_SYS_PATH ?= /usr/x86_64-w64-mingw32
20 MINGW_LOCAL_PATH ?= /usr/local/x86_64-w64-mingw32
21 OBJPATH ?= ./obj/win64/
22 else
23 BINTOOL_PREFIX ?= i686-w64-mingw32-
24 MINGW_SYS_PATH ?= /usr/i686-w64-mingw32
25 MINGW_LOCAL_PATH ?= /usr/local/i686-w64-mingw32
26 OBJPATH ?= ./obj/win32/
27 endif
28
29
30 # Miscellaneous
31 PREFIX =
32 BINPATH = ./
33 BINEXT = .exe
34
35 # Compiler flags and linker flags
36 CFLAGS += \
37 -mconsole \
38 -DTH_BYTEORDER=TH_LITTLE_ENDIAN \
39 -D_NO_BOOL_TYPEDEF \
40 -DHAVE_STRING_H \
41 -DHAVE_INTTYPES_H
42
43 LDFLAGS += -s
44 STILGREPC_LDFLAGS += -lole32
45
46
47 ###
48 ### Stuff
49 ###
50 #NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
51 #THLIBS_DEP += config.h
52
53 include Makefile.gen
54