ps2rom/Makefile

28 lines
717 B
Makefile

.PHONY: all copy clean bear
TOP=$(shell pwd)
# Set a default configuration.
ifeq ($(CONFIG),)
CONFIG=release
endif
all:
make -C rom/ee TOP=$(TOP) CONFIG=$(CONFIG)
make -C rom/iop TOP=$(TOP) CONFIG=$(CONFIG)
make -C rom TOP=$(TOP) CONFIG=$(CONFIG)
clean:
make -C rom/ee TOP=$(TOP) CONFIG=$(CONFIG) clean
make -C rom/iop TOP=$(TOP) CONFIG=$(CONFIG) clean
make -C rom TOP=$(TOP) CONFIG=$(CONFIG) clean
# copy to PCSX2 BIOS root
# NOTE: You will have to manually edit the PCSX2 ini file,
# since our ROM file does not have anything resembling a
# ROMDIR (and the BIOS selection menu only shows ROMs with a ROMDIR)
copy:
cp bin/ps2rom_$(CONFIG).rom ~/.config/PCSX2/bios
bear:
bear -- $(MAKE) CONFIG=$(CONFIG)