Mercurial > hg > sidinfo
annotate Makefile.cross-mingw @ 409:5a27c0fbbf20 default tip
Added tag rel-1_0_1 for changeset f18129e65b6f
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 20 Dec 2023 08:08:38 +0200 |
parents | 964ae4f29138 |
children |
rev | line source |
---|---|
353
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 ### |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
2 ### For Win32/Win64 version cross-compilation via MinGW |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
3 ### compiler suite under Linux/Unix |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
4 ### |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
5 # |
397
8958acd67028
Remove cruft from Mingw crossbuild Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
393
diff
changeset
|
6 # make -f Makefile.cross-mingw MINGW=64 |
353
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 # |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
9 ifeq ($(MINGW),64) |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
10 BINTOOL_PREFIX ?= x86_64-w64-mingw32- |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 OBJPATH ?= ./obj/win64/ |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 else |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 BINTOOL_PREFIX ?= i686-w64-mingw32- |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
14 OBJPATH ?= ./obj/win32/ |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 endif |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
17 |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
18 # Miscellaneous |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
19 PREFIX = |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
20 BINPATH = ./ |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
21 BINEXT = .exe |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
23 # Compiler flags and linker flags |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
24 CFLAGS += \ |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
25 -mconsole \ |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
26 -DTH_BYTEORDER=TH_LITTLE_ENDIAN \ |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
27 -DHAVE_STRING_H \ |
393
db64a58314a9
Renaming BOOL->bool and TRUE/FALSE to true/false, and using stdbool.h if available.
Matti Hamalainen <ccr@tnsp.org>
parents:
353
diff
changeset
|
28 -DHAVE_STDBOOL_H \ |
353
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
29 -DHAVE_INTTYPES_H |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
30 |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
31 LDFLAGS += -s |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
32 STILGREPC_LDFLAGS += -lole32 |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
33 |
bf954444cce7
Move to combined Makefile.cross-mingw makefile instead of the separate w32/64 wrappers.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
34 |
405
964ae4f29138
Rename Makefile.gen to Makefile.common
Matti Hamalainen <ccr@tnsp.org>
parents:
399
diff
changeset
|
35 include Makefile.common |