diff --git a/sgdk/Makefile b/sgdk/Makefile index eabe7aa..e3ea221 100644 --- a/sgdk/Makefile +++ b/sgdk/Makefile @@ -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 $@