forked from lgblgblgb/xemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
92 lines (73 loc) · 3.41 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
## Collection of *simple* emulators of some 8 bits machines using SDL2 library,
## including the MEGA65, Commodore LCD and Commodore 65.
##
## Copyright (C)2016-2022 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 ep128 mega65 primo tvc
ARCHS = native win32 win64
ARCH = native
all:
for t in $(TARGETS) ; do $(MAKE) -C targets/$$t RELEASE=$(RELEASE) || exit 1 ; done
install:
$(MAKE) all
for t in $(TARGETS) ; do $(MAKE) -C targets/$$t RELEASE=$(RELEASE) install || exit 1 ; done
all-arch:
for t in $(TARGETS) ; do for a in $(ARCHS) ; do $(MAKE) -C targets/$$t ARCH=$$a RELEASE=$(RELEASE) || 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 RELEASE=$(RELEASE) ; done
clean:
rm -f build/configure/config-$(ARCH).h build/configure/config-$(ARCH).make
for t in $(TARGETS) ; do $(MAKE) -C targets/$$t ARCH=$(ARCH) clean || exit 1 ; done
rm -f build/configure/config-$(ARCH).h build/configure/config-$(ARCH).make
strip:
for t in $(TARGETS) ; do $(MAKE) -C targets/$$t ARCH=$(ARCH) strip || 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 build/bin clean
distclean:
$(MAKE) all-clean
$(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
deb:
$(MAKE) all
build/deb-build-simple.sh
nsi:
rm -f build/bin/*.[dD][lL][lL] build/bin/*.[eE][xX][eE]
for t in $(TARGETS) ; do for a in win32 win64 ; do $(MAKE) -C targets/$$t ARCH=$$a RELEASE=$(RELEASE) || exit 1 ; done ; done
build/nsi-build-native.sh win32
build/nsi-build-native.sh win64
publish:
@echo "*** You should not use this target, this is only for distributing binaries on the site of the author!"
$(MAKE)
$(MAKE) deb
$(MAKE) nsi
$(MAKE) -C build/bin dist
build/objs/xemu-48x48.png: build/xemu-48x48.xpm Makefile
convert $< $@
build/objs/Doxyfile.tmp: build/Doxyfile Makefile
sed "s/%PROJECT_NUMBER%/`git rev-parse --abbrev-ref HEAD` `git rev-parse HEAD` @ `date`/g" < $< > $@
doxygen: build/objs/xemu-48x48.png build/objs/Doxyfile.tmp Makefile
doxygen build/objs/Doxyfile.tmp
doxypublish:
@echo "*** You should not use this target, this is only for distributing binaries on the site of the author!"
test -f build/doc/doxygen/html/index.html || $(MAKE) doxygen
rsync -av --delete build/doc/doxygen/html/ lgb:www/doxygen-projects/xemu/
config:
ARCH=$(ARCH) $(MAKE) -C build/configure
.PHONY: all all-arch clean all-clean distclean dep all-dep deb nsi publish doxygen doxypublish config install