Skip to content

Commit

Permalink
Well this is fun
Browse files Browse the repository at this point in the history
  • Loading branch information
andwn committed Jan 4, 2018
1 parent 26cf0f6 commit c5892b5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sgdk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,15 @@ all: SGDK tools $(LIBMD)

tools: $(BINTOS) $(RESCOMP) $(XGMTOOL) $(WAVTORAW) $(PCMTORAW) $(SIZEBND) $(LZ4W)

# OSX sed fails without the '', and GNU fails with, cool beans
SED_FIX=
ifeq ($(shell uname -s),Darwin)
SED_FIX=''
endif

$(LIBMD):
# Compress resources with lz4w instead of aplib
sed -i '' 's/-1/2/g' SGDK/res/libres.res
sed -i $(SED_FIX) 's/-1/2/g' SGDK/res/libres.res
cp -f Makefile.libmd SGDK/Makefile
make -C SGDK
cp -f SGDK/libmd.a $@
Expand Down

0 comments on commit c5892b5

Please sign in to comment.