forked from lgblgblgb/xemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (57 loc) · 2.47 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
## Collection of *simple* emulators of some 8 bits machines using SDL2 library,
## including the Commodore LCD and Commodore 65 too.
##
## Copyright (C)2016 LGB (Gábor Lénárt) <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
TARGETS = c65 cvic20 clcd cgeos ep128 mega65 primo tvc
ARCHS = native win32 win64 osx
all:
for t in $(TARGETS) ; do $(MAKE) -C targets/$$t || exit 1 ; done
all-arch:
for t in $(TARGETS) ; do for a in $(ARCHS) ; do $(MAKE) -C targets/$$t ARCH=$$a || exit 1 ; done ; done
all-html:
for t in $(TARGETS) ; do egrep -q '^#\s*define\s+CONFIG_EMSCRIPTEN_OK\s*$$' targets/$$t/xemu-target.h && make -C targets/$$t ARCH=html ; done
clean:
for t in $(TARGETS) ; do $(MAKE) -C targets/$$t clean || exit 1 ; done
all-clean:
for t in $(TARGETS) ; do for a in $(ARCHS) ; do $(MAKE) -C targets/$$t ARCH=$$a clean || exit 1 ; done ; done
$(MAKE) -C rom clean
$(MAKE) -C build/bin clean
distclean:
$(MAKE) all-clean
$(MAKE) -C rom distclean
$(MAKE) -C build/bin/clean
dep:
for t in $(TARGETS) ; do $(MAKE) -C targets/$$t dep || exit 1 ; done
all-dep:
for t in $(TARGETS) ; do for a in $(ARCHS) ; do $(MAKE) -C targets/$$t ARCH=$$a dep || exit 1 ; done ; done
roms:
$(MAKE) -C rom
deb:
$(MAKE) all
build/deb-build-simple
nsi:
rm -f build/bin/*.dll build/bin/*.DLL build/bin/*.exe build/bin/*.EXE
for t in $(TARGETS) ; do for a in win32 win64 ; do $(MAKE) -C targets/$$t ARCH=$$a || exit 1 ; done ; done
build/nsi-build win32 /usr/local/cross-tools/i686-w64-mingw32/bin/SDL2.dll
build/nsi-build win64 /usr/local/cross-tools/x86_64-w64-mingw32/bin/SDL2.dll
publish:
$(MAKE)
$(MAKE) deb
$(MAKE) nsi
@echo "*** You should not use this target, this is only for distributing binaries on the site of the author!"
build/publish
.PHONY: all all-arch clean all-clean roms distclean dep all-dep deb nsi publish