From dab0c363166f4596a8e3c0a90c1a741cb2d960a7 Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 16 May 2024 20:32:55 +0000 Subject: [PATCH] build, change executable name to lowercase --- Makefile | 18 +++++++++--------- platform/gp2x/Makefile | 2 +- platform/pandora/Makefile | 7 ++++++- platform/ps2/Makefile | 2 +- 4 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 7b87043ee..2566e740b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ $(LD) ?= $(CC) -TARGET ?= PicoDrive +TARGET ?= picodrive ASAN ?= 0 DEBUG ?= 0 CFLAGS += -I$(PWD) @@ -111,7 +111,7 @@ endif # TODO this should somehow go to the platform directory? ifeq "$(PLATFORM)" "generic" -$(TARGET).zip: $(TARGET) +PicoDrive.zip: $(TARGET) $(RM) -rf .od_data mkdir .od_data cp -r platform/linux/skin .od_data @@ -119,7 +119,7 @@ $(TARGET).zip: $(TARGET) cp $< .od_data/PicoDrive $(STRIP) .od_data/PicoDrive cd .od_data && zip -9 -r ../$@ * -all: $(TARGET).zip +all: PicoDrive.zip endif ifeq "$(PLATFORM)" "opendingux" @@ -134,22 +134,22 @@ ifeq "$(PLATFORM)" "opendingux" ifneq (,$(filter %__DINGUX__, $(CFLAGS))) # "legacy" dingux without opk support -$(TARGET)-dge.zip: .od_data +PicoDrive-dge.zip: .od_data rm -f .od_data/default.*.desktop cd .od_data && zip -9 -r ../$@ * -all: $(TARGET)-dge.zip +all: PicoDrive-dge.zip CFLAGS += -DSDL_SURFACE_SW # some legacy dinguces had bugs in HWSURFACE else ifneq (,$(filter %__MIYOO__, $(CFLAGS))) -$(TARGET)-miyoo.zip: .od_data +PicoDrive-miyoo.zip: .od_data rm -f .od_data/default.*.desktop .od_data/PicoDrive.dge cd .od_data && zip -9 -r ../$@ * -all: $(TARGET)-miyoo.zip +all: PicoDrive-miyoo.zip else -$(TARGET).opk: .od_data +PicoDrive.opk: .od_data rm -f .od_data/PicoDrive.dge mksquashfs .od_data $@ -all-root -noappend -no-exports -no-xattrs -all: $(TARGET).opk +all: PicoDrive.opk endif endif diff --git a/platform/gp2x/Makefile b/platform/gp2x/Makefile index 083ce14fc..7756689e3 100644 --- a/platform/gp2x/Makefile +++ b/platform/gp2x/Makefile @@ -20,7 +20,7 @@ readme.txt: ../../tools/textfilter ../base_readme.txt ../../ChangeLog CODE940 = code940/pico940_v3.bin -PicoDrive: ../../PicoDrive +PicoDrive: ../../picodrive $(STRIP) $^ -o $@ rel: PicoDrive PicoDrive.gpe $(CODE940) readme.txt ../game_def.cfg \ diff --git a/platform/pandora/Makefile b/platform/pandora/Makefile index fd362696e..0eb65193f 100644 --- a/platform/pandora/Makefile +++ b/platform/pandora/Makefile @@ -8,6 +8,8 @@ ifneq "$(BUILD)" "" VER := $(VER)_$(BUILD) endif +include ../../config.mak + PND_MAKE ?= pnd_make all: rel @@ -21,7 +23,10 @@ all: rel /tmp/PicoDrive.pxml: PicoDrive.pxml.template FORCE ./make_pxml.sh $< $@ -rel: ../../PicoDrive PicoDrive.sh picorestore \ +PicoDrive: ../../picodrive + $(STRIP) $^ -o $@ + +rel: PicoDrive PicoDrive.sh picorestore \ PicoDrive.png PicoDrive_p.png \ ../../pico/carthw.cfg skin \ ../../README.md /tmp/PicoDrive.pxml diff --git a/platform/ps2/Makefile b/platform/ps2/Makefile index a0e20095c..50672385f 100644 --- a/platform/ps2/Makefile +++ b/platform/ps2/Makefile @@ -14,7 +14,7 @@ include ../../config.mak readme.txt: ../../tools/textfilter ../base_readme.txt ../../ChangeLog ../../tools/textfilter ../base_readme.txt $@ PS2 -PicoDrive: ../../PicoDrive +PicoDrive: ../../picodrive $(STRIP) $^ -o $@ PicoDrive.elf: PicoDrive