From 54cbbf4df17b19635c895943028afeede1d53554 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 10 Apr 2024 17:31:49 +0200 Subject: [PATCH] ROMs/Makefile --- Makefile | 25 +++---------------------- ROMs/Makefile | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 22 deletions(-) create mode 100644 ROMs/Makefile diff --git a/Makefile b/Makefile index 6fc4593..aaf0364 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CC = gcc 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 -.PHONY: all clean clean-all pretty-code install mrproper +.PHONY: all clean clean-all pretty-code install mrproper get-roms all: dist/hpemu @@ -26,28 +26,9 @@ dist/hpemu: src/bus.o \ $(CC) $(CFLAGS) $(LIBS) -o $@ $+ # 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 clean: diff --git a/ROMs/Makefile b/ROMs/Makefile new file mode 100644 index 0000000..effc770 --- /dev/null +++ b/ROMs/Makefile @@ -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"