annotate Makefile.cross-mingw @ 2833:d0e186348cb2 default tip

Add mention of soft level limitation to 'Eightleg woods'.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 26 May 2024 20:33:53 +0300
parents d75ce1235875
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2248
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
1 ###
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
2 ### For Win32/Win64 version cross-compilation via MinGW
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
3 ### compiler suite under Linux/Unix
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
4 ###
2227
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 #
2473
86ec56d0fe76 Fix/update comments in the MinGW cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 2472
diff changeset
6 # This Makefile assumes that you have MinGW installed the way
86ec56d0fe76 Fix/update comments in the MinGW cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 2472
diff changeset
7 # Debian MinGW packages do. It also assumes that you have
86ec56d0fe76 Fix/update comments in the MinGW cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 2472
diff changeset
8 # libpng and zlib__ /usr/local __ (not /usr!) in similar fashion.
2248
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
9 #
2227
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 # For differing configurations you will have to either edit this
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 # file or alternatively provide make parameters, e.g.
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 #
2248
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
13 # make -f Makefile.cross-mingw MINGW=64 BINTOOL_PREFIX=foo-bar-zoo
2227
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 #
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 ifeq ($(MINGW),64)
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 BINTOOL_PREFIX ?= x86_64-w64-mingw32-
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 MINGW_SYS_PATH ?= /usr/x86_64-w64-mingw32
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 MINGW_LOCAL_PATH ?= /usr/local/x86_64-w64-mingw32
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 OBJPATH ?= ./obj/win64/
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 else
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 BINTOOL_PREFIX ?= i686-w64-mingw32-
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 MINGW_SYS_PATH ?= /usr/i686-w64-mingw32
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 MINGW_LOCAL_PATH ?= /usr/local/i686-w64-mingw32
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 OBJPATH ?= ./obj/win32/
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 endif
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 # Miscellaneous
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30 PREFIX =
2355
cad432c0228f Set windows binary path to bin/
Matti Hamalainen <ccr@tnsp.org>
parents: 2263
diff changeset
31 BINPATH = ./bin/
2237
f9e5a67cd117 Rename EXEEXT to BINEXT in the build system, as per changes in th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2227
diff changeset
32 BINEXT = .exe
2227
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 # Compiler flags and linker flags
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 CFLAGS += \
2248
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
36 -mconsole \
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
37 -DTH_BYTEORDER=TH_LITTLE_ENDIAN \
2227
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 -DHAVE_STRING_H \
2472
549a4fea6d6a -DHAVE_STDBOOL_H
Matti Hamalainen <ccr@tnsp.org>
parents: 2355
diff changeset
39 -DHAVE_STDBOOL_H \
2248
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
40 -DHAVE_INTTYPES_H
2227
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42 LDFLAGS +=
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 HAVE_LIBPNG = yes
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
45 LIBPNG_CFLAGS ?= -I$(MINGW_LOCAL_PATH)/include
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
46 LIBPNG_LDFLAGS ?= $(MINGW_LOCAL_PATH)/lib/libpng.a
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48 ZLIB_CFLAGS ?=
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49 #ZLIB_LDFLAGS ?= $(MINGW_LOCAL_PATH)/lib/libz.a
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 ZLIB_LDFLAGS ?= $(MINGW_SYS_PATH)/lib/libz.a
2263
3204b944a3c8 Cosmetic.
Matti Hamalainen <ccr@tnsp.org>
parents: 2248
diff changeset
51
3204b944a3c8 Cosmetic.
Matti Hamalainen <ccr@tnsp.org>
parents: 2248
diff changeset
52
2248
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
53 ###
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
54 ### Stuff
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
55 ###
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
56 #NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
ae2aef1c9764 Sync changes from th-libs build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 2237
diff changeset
57 #THLIBS_DEP += config.h
2227
e452fa9e7bae New Makefile for cross-building Win32/64 versions of the tools. Not very
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
58
2516
d75ce1235875 Rename Makefile.gen to Makefile.common
Matti Hamalainen <ccr@tnsp.org>
parents: 2475
diff changeset
59 include Makefile.common