Mercurial > hg > th-libs
comparison Makefile.cross-mingw @ 738:7de6eb6d427c
Clean cruft from Mingw cross-build Makefile.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 11 Dec 2022 00:00:23 +0200 |
parents | 31bc1ed07cf5 |
children | 94e8e6ad8c9e |
comparison
equal
deleted
inserted
replaced
737:6b778871f770 | 738:7de6eb6d427c |
---|---|
1 ### | 1 ### |
2 ### For Win32/Win64 version cross-compilation via MinGW | 2 ### For Win32/Win64 version cross-compilation via MinGW |
3 ### compiler suite under Linux/Unix | 3 ### compiler suite under Linux/Unix |
4 ### | 4 ### |
5 # | 5 # |
6 # This Makefile assumes that you have MinGW installed under /usr | 6 # make -f Makefile.cross-mingw MINGW=64 |
7 # the way Debian MinGW packages do. It also assumes that you have | |
8 # built/installed libogg, Tremor, libpng16, SDL2 ad SDL2_ttf under | |
9 # __ /usr/local __ (not /usr!) in similar fashion. | |
10 # | |
11 # For differing configurations you will have to either edit this | |
12 # file or alternatively provide make parameters, e.g. | |
13 # | |
14 # make -f Makefile.cross-mingw MINGW=64 BINTOOL_PREFIX=foo-bar-zoo | |
15 # | 7 # |
16 | 8 |
17 ifeq ($(MINGW),64) | 9 ifeq ($(MINGW),64) |
18 BINTOOL_PREFIX ?= x86_64-w64-mingw32- | 10 BINTOOL_PREFIX ?= x86_64-w64-mingw32- |
19 MINGW_SYS_PATH ?= /usr/x86_64-w64-mingw32 | |
20 MINGW_LOCAL_PATH ?= /usr/local/x86_64-w64-mingw32 | |
21 OBJPATH ?= ./obj/win64/ | 11 OBJPATH ?= ./obj/win64/ |
22 else | 12 else |
23 BINTOOL_PREFIX ?= i686-w64-mingw32- | 13 BINTOOL_PREFIX ?= i686-w64-mingw32- |
24 MINGW_SYS_PATH ?= /usr/i686-w64-mingw32 | |
25 MINGW_LOCAL_PATH ?= /usr/local/i686-w64-mingw32 | |
26 OBJPATH ?= ./obj/win32/ | 14 OBJPATH ?= ./obj/win32/ |
27 endif | 15 endif |
28 | 16 |
29 | 17 |
30 # Miscellaneous | 18 # Miscellaneous |
40 -DHAVE_STDBOOL_H \ | 28 -DHAVE_STDBOOL_H \ |
41 -DHAVE_INTTYPES_H | 29 -DHAVE_INTTYPES_H |
42 | 30 |
43 LDFLAGS += | 31 LDFLAGS += |
44 | 32 |
45 | |
46 ### | |
47 ### Stuff | |
48 ### | |
49 #NOINST_TARGETS += $(ENDIANCHK_BIN) config.h | |
50 #THLIBS_DEP += config.h | |
51 | |
52 include Makefile.gen | 33 include Makefile.gen |
53 | 34 |