MODULE := backends/platform/ds ARM7_MODULE_OBJS := \ arm7/source/main.o \ arm7/source/libcartreset/cartreset.o \ PORT_OBJS := \ arm9/source/blitters_arm.o \ arm9/source/cdaudio.o \ arm9/source/dsmain.o \ ../../fs/ds/ds-fs.o \ arm9/source/gbampsave.o \ arm9/source/scummhelp.o \ arm9/source/osystem_ds.o \ arm9/source/ramsave.o \ arm9/source/touchkeyboard.o \ arm9/source/zipreader.o \ arm9/source/dsoptions.o \ arm9/source/keys.o \ arm9/source/wordcompletion.o \ arm9/source/interrupt.o DATA_OBJS := \ arm9/data/icons.o \ arm9/data/keyboard.o \ arm9/data/keyboard_pal.o \ arm9/data/default_font.o \ arm9/data/8x8font_tga.o COMPRESSOR_OBJS := #arm9/source/compressor/lz.o FAT_OBJS := arm9/source/fat/disc_io.o arm9/source/fat/gba_nds_fat.o\ arm9/source/fat/io_fcsr.o \ arm9/source/fat/io_m3cf.o \ arm9/source/fat/io_mpcf.o \ arm9/source/fat/io_sccf.o \ arm9/source/fat/io_m3sd.o \ arm9/source/fat/io_nmmc.o \ arm9/source/fat/io_scsd.o \ arm9/source/fat/io_scsd_asm.o \ arm9/source/fat/io_njsd.o \ arm9/source/fat/io_mmcf.o \ arm9/source/fat/io_sd_common.o \ arm9/source/fat/io_m3_common.o \ arm9/source/fat/io_dldi.o \ arm9/source/fat/m3sd.o # arm9/source/fat/io_cf_common.o arm9/source/fat/io_m3_common.o\ # arm9/source/fat/io_sd_common.o arm9/source/fat/io_scsd_s.o \ # arm9/source/fat/io_sc_common.o arm9/source/fat/io_sd_common.o LIBCARTRESET_OBJS := \ # arm9/source/libcartreset/cartreset.o #MODULE_OBJS := $(PORT_OBJS) $(DATA_OBJS) $(FAT_OBJS) MODULE_OBJS := $(DATA_OBJS) $(LIBCARTRESET_OBJS) $(PORT_OBJS) $(COMPRESSOR_OBJS) $(FAT_OBJS) #--------------------------------------------------------------------------------- # canned command sequence for binary data #--------------------------------------------------------------------------------- define bin2o $(MKDIR) $(*D) bin2s $< | $(AS) -mthumb -mthumb-interwork -o $(@) endef define bin2h $(MKDIR) $(*D) echo "extern const u8" `(echo $( $@ echo "extern const u8" `(echo $(> $@ echo "extern const u32" `(echo $(> $@ endef vpath %.raw $(srcdir) vpath %.pal $(srcdir) vpath %.bin $(srcdir) %.o: %.raw $(bin2o) %_raw.h: %.raw $(bin2h) %.o: %.pal $(bin2o) %_raw.h: %.pal $(bin2h) %.o: %.bin $(bin2o) %_raw.h: %.bin $(bin2h) # Mark files which require the *_raw.h files manually (for now, at least) $(MODULE)/arm9/source/dsmain.o: \ $(MODULE)/arm9/data/icons_raw.h \ $(MODULE)/arm9/data/keyboard_raw.h \ $(MODULE)/arm9/data/keyboard_pal_raw.h $(MODULE)/arm9/source/touchkeyboard.o: \ $(MODULE)/arm9/data/keyboard_raw.h \ $(MODULE)/arm9/data/keyboard_pal_raw.h \ $(MODULE)/arm9/data/8x8font_tga_raw.h MODULE_DIRS += \ backends/platform/ds/ \ backends/platform/ds/arm7/source/ \ backends/platform/ds/arm7/source/libcartreset/ \ backends/platform/ds/arm9/source/ \ backends/platform/ds/arm9/source/fat/ \ backends/platform/ds/arm9/source/libcartreset/ # We don't use the rules.mk here on purpose OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS)) $(OBJS)