Mercurial > hg > th-libs
annotate Makefile.cross-mingw @ 789:d61d3eb29053 default tip
Bump copyright.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 08 Mar 2024 15:26:24 +0200 |
parents | 94e8e6ad8c9e |
children |
rev | line source |
---|---|
599
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
1 ### |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
2 ### For Win32/Win64 version cross-compilation via MinGW |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
3 ### compiler suite under Linux/Unix |
ee165ef28b6f
Improve few Makefile comments.
Matti Hamalainen <ccr@tnsp.org>
parents:
576
diff
changeset
|
4 ### |
490 | 5 # |
738
7de6eb6d427c
Clean cruft from Mingw cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
735
diff
changeset
|
6 # make -f Makefile.cross-mingw MINGW=64 |
434
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 # |
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 |
490 | 9 ifeq ($(MINGW),64) |
10 BINTOOL_PREFIX ?= x86_64-w64-mingw32- | |
11 OBJPATH ?= ./obj/win64/ | |
12 else | |
13 BINTOOL_PREFIX ?= i686-w64-mingw32- | |
14 OBJPATH ?= ./obj/win32/ | |
15 endif | |
16 | |
17 | |
434
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
18 # Miscellaneous |
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
19 PREFIX = |
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
20 BINPATH = ./ |
562
5d2c1bfc04aa
Rename EXEEXT to BINEXT in the build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
493
diff
changeset
|
21 BINEXT = .exe |
434
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 |
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
23 # Compiler flags and linker flags |
493
3a733cdfc576
Remove some useless things.
Matti Hamalainen <ccr@tnsp.org>
parents:
491
diff
changeset
|
24 CFLAGS += \ |
637
8e6caddfe117
Cosmetic Windows/MINGW Makefile flags reorder.
Matti Hamalainen <ccr@tnsp.org>
parents:
599
diff
changeset
|
25 -mconsole \ |
8e6caddfe117
Cosmetic Windows/MINGW Makefile flags reorder.
Matti Hamalainen <ccr@tnsp.org>
parents:
599
diff
changeset
|
26 -DTH_BYTEORDER=TH_LITTLE_ENDIAN \ |
491 | 27 -DHAVE_STRING_H \ |
735
31bc1ed07cf5
Renaming BOOL->bool and TRUE/FALSE to true/false, and using stdbool.h if available.
Matti Hamalainen <ccr@tnsp.org>
parents:
637
diff
changeset
|
28 -DHAVE_STDBOOL_H \ |
637
8e6caddfe117
Cosmetic Windows/MINGW Makefile flags reorder.
Matti Hamalainen <ccr@tnsp.org>
parents:
599
diff
changeset
|
29 -DHAVE_INTTYPES_H |
457
85fa3d333556
Actually, revert the boolean changes .. meh.
Matti Hamalainen <ccr@tnsp.org>
parents:
453
diff
changeset
|
30 |
493
3a733cdfc576
Remove some useless things.
Matti Hamalainen <ccr@tnsp.org>
parents:
491
diff
changeset
|
31 LDFLAGS += |
434
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
32 |
782
94e8e6ad8c9e
Rename Makefile.gen to Makefile.common
Matti Hamalainen <ccr@tnsp.org>
parents:
738
diff
changeset
|
33 include Makefile.common |
434
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
34 |