Makefile.targets (946B)
1 2# Platform specific flags for compiling (only populate if they're both present) 3ifneq ($(strip $(PORT)),) 4ifneq ($(strip $(PLAT)),) 5CFLAGS += -m$(PORT):$(PLAT) 6endif 7endif 8 9# Called by the individual targets below to build a ROM 10build-target: $(BINS) 11 12clean-target: 13 rm -rf $(OBJDIR) 14 rm -rf $(BINDIR) 15 16gb-clean: 17 ${MAKE} clean-target EXT=gb 18gb: 19 ${MAKE} build-target PORT=sm83 PLAT=gb EXT=gb TYP=DMG 20 21 22gbc-clean: 23 ${MAKE} clean-target EXT=gbc 24gbc: 25 ${MAKE} build-target PORT=sm83 PLAT=gb EXT=gbc TYP=CGB 26 27 28pocket-clean: 29 ${MAKE} clean-target EXT=pocket 30pocket: 31 ${MAKE} build-target PORT=sm83 PLAT=ap EXT=pocket TYP=DMG 32 33 34megaduck-clean: 35 ${MAKE} clean-target EXT=duck 36megaduck: 37 ${MAKE} build-target PORT=sm83 PLAT=duck EXT=duck TYP=DMG 38 39 40sms-clean: 41 ${MAKE} clean-target EXT=sms 42sms: 43 ${MAKE} build-target PORT=z80 PLAT=sms EXT=sms TYP=SEGA 44 45 46gg-clean: 47 ${MAKE} clean-target EXT=gg 48gg: 49 ${MAKE} build-target PORT=z80 PLAT=gg EXT=gg TYP=SEGA 50