mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-05-03 03:19:38 +02:00
Add support for the OpenDingux platform
This commit is contained in:
17
Makefile
17
Makefile
@@ -55,7 +55,21 @@ asm_cdpico = 0
|
||||
asm_cdmemory = 0
|
||||
endif
|
||||
|
||||
# frontend
|
||||
ifeq "$(PLATFORM)" "opendingux"
|
||||
opk: $(TARGET).opk
|
||||
|
||||
$(TARGET).opk: $(TARGET)
|
||||
$(RM) -rf .opk_data
|
||||
cp -r platform/opendingux/data .opk_data
|
||||
cp $< .opk_data/PicoDrive
|
||||
$(STRIP) .opk_data/PicoDrive
|
||||
mksquashfs .opk_data $@ -all-root -noappend -no-exports -no-xattrs
|
||||
|
||||
OBJS += platform/opendingux/inputmap.o
|
||||
|
||||
# OpenDingux is a generic platform, really.
|
||||
PLATFORM := generic
|
||||
endif
|
||||
ifeq "$(PLATFORM)" "generic"
|
||||
OBJS += platform/linux/emu.o platform/linux/blit.o # FIXME
|
||||
OBJS += platform/common/plat_sdl.o
|
||||
@@ -156,6 +170,7 @@ target_: $(TARGET)
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET) $(OBJS)
|
||||
$(RM) -r .opk_data
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CC) -o $@ $(CFLAGS) $^ $(LDFLAGS) $(LDLIBS)
|
||||
|
||||
Reference in New Issue
Block a user