$(LD) ?= $(CC)
-TARGET ?= PicoDrive
+TARGET ?= picodrive
ASAN ?= 0
DEBUG ?= 0
CFLAGS += -I$(PWD)
# 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
cp $< .od_data/PicoDrive
$(STRIP) .od_data/PicoDrive
cd .od_data && zip -9 -r ../$@ *
-all: $(TARGET).zip
+all: PicoDrive.zip
endif
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
VER := $(VER)_$(BUILD)
endif
+include ../../config.mak
+
PND_MAKE ?= pnd_make
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
readme.txt: ../../tools/textfilter ../base_readme.txt ../../ChangeLog\r
../../tools/textfilter ../base_readme.txt $@ PS2\r
\r
-PicoDrive: ../../PicoDrive\r
+PicoDrive: ../../picodrive\r
$(STRIP) $^ -o $@\r
\r
PicoDrive.elf: PicoDrive\r