annotate Makefile.cross-mingw @ 493:3a733cdfc576

Remove some useless things.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2019 02:50:57 +0200
parents 76653f979a62
children 5d2c1bfc04aa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
434
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
490
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
2 # For Win32/Win64 version cross-compilation via MinGW
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
3 # compiler suite under Linux/Unix
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
4 #
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
5 # This Makefile assumes that you have MinGW installed under /usr
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
6 # the way Debian MinGW packages do.
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
7 # For differing configurations you will have to either edit this
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
8 # file or alternatively provide make parameters, e.g.
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
9 #
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
10 # make -f Makefile.cross-mingw MINGW=64 BINTOOL_PREFIX=/opt/zoo/bar/
434
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 #
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
490
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
13 ifeq ($(MINGW),64)
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
14 BINTOOL_PREFIX ?= x86_64-w64-mingw32-
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
15 OBJPATH ?= ./obj/win64/
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
16 else
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
17 BINTOOL_PREFIX ?= i686-w64-mingw32-
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
18 OBJPATH ?= ./obj/win32/
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
19 endif
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
20
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
21
434
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # Miscellaneous
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 PREFIX =
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24 BINPATH = ./
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 EXEEXT = .exe
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 # Compiler flags and linker flags
493
3a733cdfc576 Remove some useless things.
Matti Hamalainen <ccr@tnsp.org>
parents: 491
diff changeset
28 CFLAGS += \
491
76653f979a62 Build fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 490
diff changeset
29 -D_NO_BOOL_TYPEDEF \
76653f979a62 Build fixes.
Matti Hamalainen <ccr@tnsp.org>
parents: 490
diff changeset
30 -DHAVE_STRING_H \
490
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
31 -DTH_BYTEORDER=TH_LITTLE_ENDIAN \
ad647427303a Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 484
diff changeset
32 -mconsole
457
85fa3d333556 Actually, revert the boolean changes .. meh.
Matti Hamalainen <ccr@tnsp.org>
parents: 453
diff changeset
33
493
3a733cdfc576 Remove some useless things.
Matti Hamalainen <ccr@tnsp.org>
parents: 491
diff changeset
34 LDFLAGS +=
434
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37 ###
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38 ### Stuff
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 ###
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 #NOINST_TARGETS += $(ENDIANCHK_BIN) config.h
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
41 #THLIBS_DEP += config.h
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43 include Makefile.gen
8c3b3d8009f6 Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44