Mercurial > hg > th-libs
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 |
rev | line source |
---|---|
434
8c3b3d8009f6
Add Mingw/win32 cross-build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
1 # |
490 | 2 # For Win32/Win64 version cross-compilation via MinGW |
3 # compiler suite under Linux/Unix | |
4 # | |
5 # This Makefile assumes that you have MinGW installed under /usr | |
6 # the way Debian MinGW packages do. | |
7 # For differing configurations you will have to either edit this | |
8 # file or alternatively provide make parameters, e.g. | |
9 # | |
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 | 13 ifeq ($(MINGW),64) |
14 BINTOOL_PREFIX ?= x86_64-w64-mingw32- | |
15 OBJPATH ?= ./obj/win64/ | |
16 else | |
17 BINTOOL_PREFIX ?= i686-w64-mingw32- | |
18 OBJPATH ?= ./obj/win32/ | |
19 endif | |
20 | |
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 | 29 -D_NO_BOOL_TYPEDEF \ |
30 -DHAVE_STRING_H \ | |
490 | 31 -DTH_BYTEORDER=TH_LITTLE_ENDIAN \ |
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 |