ROMs/Makefile
This commit is contained in:
parent
f7ad233cb2
commit
54cbbf4df1
2 changed files with 30 additions and 22 deletions
25
Makefile
25
Makefile
|
@ -2,7 +2,7 @@ CC = gcc
|
||||||
LIBS = $(shell pkg-config --libs sdl2 SDL2_ttf)
|
LIBS = $(shell pkg-config --libs sdl2 SDL2_ttf)
|
||||||
CFLAGS = -Wall -Werror -O3 -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=missing-braces -Wno-error=incompatible-pointer-types
|
CFLAGS = -Wall -Werror -O3 -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=missing-braces -Wno-error=incompatible-pointer-types
|
||||||
|
|
||||||
.PHONY: all clean clean-all pretty-code install mrproper
|
.PHONY: all clean clean-all pretty-code install mrproper get-roms
|
||||||
|
|
||||||
all: dist/hpemu
|
all: dist/hpemu
|
||||||
|
|
||||||
|
@ -26,28 +26,9 @@ dist/hpemu: src/bus.o \
|
||||||
$(CC) $(CFLAGS) $(LIBS) -o $@ $+
|
$(CC) $(CFLAGS) $(LIBS) -o $@ $+
|
||||||
|
|
||||||
# Installing
|
# Installing
|
||||||
ROMs/sxrom-a:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-a.zip" --output - | funzip > "ROMs/sxrom-a"
|
|
||||||
ROMs/sxrom-b:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-b.zip" --output - | funzip > "ROMs/sxrom-b"
|
|
||||||
ROMs/sxrom-c:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-c.zip" --output - | funzip > "ROMs/sxrom-c"
|
|
||||||
ROMs/sxrom-d:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-d.zip" --output - | funzip > "ROMs/sxrom-d"
|
|
||||||
ROMs/sxrom-e:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-e.zip" --output - | funzip > "ROMs/sxrom-e"
|
|
||||||
ROMs/sxrom-j:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-j.zip" --output - | funzip > "ROMs/sxrom-j"
|
|
||||||
ROMs/gxrom-l:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/gxrom-l.zip" --output - | funzip > "ROMs/gxrom-l"
|
|
||||||
ROMs/gxrom-m:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/gxrom-m.zip" --output - | funzip > "ROMs/gxrom-m"
|
|
||||||
ROMs/gxrom-p:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/gxrom-p.zip" --output - | funzip > "ROMs/gxrom-p"
|
|
||||||
ROMs/gxrom-r:
|
|
||||||
curl "https://www.hpcalc.org/hp48/pc/emulators/gxrom-r.zip" --output - | funzip > "ROMs/gxrom-r"
|
|
||||||
|
|
||||||
get-roms: ROMs/sxrom-a ROMs/sxrom-b ROMs/sxrom-c ROMs/sxrom-d ROMs/sxrom-e ROMs/sxrom-j ROMs/gxrom-l ROMs/gxrom-m ROMs/gxrom-p ROMs/gxrom-r
|
get-roms:
|
||||||
|
make -C ROMs get-roms
|
||||||
|
|
||||||
# Cleaning
|
# Cleaning
|
||||||
clean:
|
clean:
|
||||||
|
|
27
ROMs/Makefile
Normal file
27
ROMs/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
.PHONY: get-roms mrproper
|
||||||
|
|
||||||
|
get-roms: sxrom-a sxrom-b sxrom-c sxrom-d sxrom-e sxrom-j gxrom-l gxrom-m gxrom-p gxrom-r
|
||||||
|
|
||||||
|
mrproper:
|
||||||
|
-rm sxrom-a sxrom-b sxrom-c sxrom-d sxrom-e sxrom-j gxrom-l gxrom-m gxrom-p gxrom-r
|
||||||
|
|
||||||
|
sxrom-a:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-a.zip" --output - | funzip > "sxrom-a"
|
||||||
|
sxrom-b:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-b.zip" --output - | funzip > "sxrom-b"
|
||||||
|
sxrom-c:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-c.zip" --output - | funzip > "sxrom-c"
|
||||||
|
sxrom-d:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-d.zip" --output - | funzip > "sxrom-d"
|
||||||
|
sxrom-e:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-e.zip" --output - | funzip > "sxrom-e"
|
||||||
|
sxrom-j:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/sxrom-j.zip" --output - | funzip > "sxrom-j"
|
||||||
|
gxrom-l:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/gxrom-l.zip" --output - | funzip > "gxrom-l"
|
||||||
|
gxrom-m:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/gxrom-m.zip" --output - | funzip > "gxrom-m"
|
||||||
|
gxrom-p:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/gxrom-p.zip" --output - | funzip > "gxrom-p"
|
||||||
|
gxrom-r:
|
||||||
|
curl "https://www.hpcalc.org/hp48/pc/emulators/gxrom-r.zip" --output - | funzip > "gxrom-r"
|
Loading…
Reference in a new issue