diff options
author | 3gg <3gg@shellblade.net> | 2025-08-30 16:53:58 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2025-08-30 16:53:58 -0700 |
commit | 6aaedb813fa11ba0679c3051bc2eb28646b9506c (patch) | |
tree | 34acbfc9840e02cb4753e6306ea7ce978bf8b58e /src/contrib/SDL-3.2.20/build-scripts/pkg-support/mingw/Makefile | |
parent | 8f228ade99dd3d4c8da9b78ade1815c9adf85c8f (diff) |
Update to SDL3
Diffstat (limited to 'src/contrib/SDL-3.2.20/build-scripts/pkg-support/mingw/Makefile')
-rw-r--r-- | src/contrib/SDL-3.2.20/build-scripts/pkg-support/mingw/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/build-scripts/pkg-support/mingw/Makefile b/src/contrib/SDL-3.2.20/build-scripts/pkg-support/mingw/Makefile new file mode 100644 index 0000000..9b6cd55 --- /dev/null +++ b/src/contrib/SDL-3.2.20/build-scripts/pkg-support/mingw/Makefile | |||
@@ -0,0 +1,39 @@ | |||
1 | # | ||
2 | # Makefile for installing the mingw32 version of the SDL library | ||
3 | |||
4 | DESTDIR = /usr/local | ||
5 | ARCHITECTURES := i686-w64-mingw32 x86_64-w64-mingw32 | ||
6 | |||
7 | default: | ||
8 | @echo "Run \"make install-i686\" to install 32-bit" | ||
9 | @echo "Run \"make install-x86_64\" to install 64-bit" | ||
10 | @echo "Run \"make install-all\" to install both" | ||
11 | @echo "Add DESTDIR=/custom/path to change the destination folder" | ||
12 | |||
13 | install: | ||
14 | @if test -d $(ARCH) && test -d $(DESTDIR); then \ | ||
15 | (cd $(ARCH) && cp -rv bin include lib share $(DESTDIR)/); \ | ||
16 | else \ | ||
17 | echo "*** ERROR: $(ARCH) or $(DESTDIR) does not exist!"; \ | ||
18 | exit 1; \ | ||
19 | fi | ||
20 | |||
21 | install-i686: | ||
22 | $(MAKE) install ARCH=i686-w64-mingw32 | ||
23 | |||
24 | install-x86_64: | ||
25 | $(MAKE) install ARCH=x86_64-w64-mingw32 | ||
26 | |||
27 | install-all: | ||
28 | @if test -d $(DESTDIR); then \ | ||
29 | mkdir -p $(DESTDIR)/cmake; \ | ||
30 | cp -rv cmake/* $(DESTDIR)/cmake; \ | ||
31 | for arch in $(ARCHITECTURES); do \ | ||
32 | $(MAKE) install ARCH=$$arch DESTDIR=$(DESTDIR)/$$arch; \ | ||
33 | done \ | ||
34 | else \ | ||
35 | echo "*** ERROR: $(DESTDIR) does not exist!"; \ | ||
36 | exit 1; \ | ||
37 | fi | ||
38 | |||
39 | .PHONY: default install install-i686 install-x86_64 install-all | ||