Skip to content

Commit

Permalink
makefile: additional instructions to use FLIPS instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoomTen committed Feb 27, 2023
1 parent e74c14f commit 5e609bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ RGBLINK ?= $(RGBDS)rgblink
PYTHON ?= python3

IPSPATCH ?= tools/ipspatch
IPSPATCH_COMMAND ?= create

# to specify FLIPS should be used, set IPSPATCH="flips" and IPSPATCH_COMMAND="--create"

### Build targets

Expand Down Expand Up @@ -99,10 +101,10 @@ endif

patch: pokeoctober-v.$(GIT_VERSION).ips

pokeoctober-v.$(GIT_VERSION).ips: pokeoctober.gbc baserom.gbc $(IPSPATCH)
pokeoctober-v.$(GIT_VERSION).ips: pokeoctober.gbc baserom.gbc
# check if baserom == crystal 1.1
[ $(shell sha1sum -b baserom.gbc | cut -c 1-40) = f2f52230b536214ef7c9924f483392993e226cfb ]
$(IPSPATCH) create baserom.gbc pokeoctober.gbc $@
$(IPSPATCH) $(IPSPATCH_COMMAND) baserom.gbc pokeoctober.gbc $@

poke%.gbc: $$(%_obj) pokeoctober.link
$(RGBLINK) -n poke$*.sym -m poke$*.map -l pokeoctober.link -o $@ $(filter %.o,$^)
Expand Down

0 comments on commit 5e609bc

Please sign in to comment.