diff --git a/GRRLIB/GRRLIB/Makefile b/GRRLIB/GRRLIB/Makefile index 8e619b9..fff8cdc 100644 --- a/GRRLIB/GRRLIB/Makefile +++ b/GRRLIB/GRRLIB/Makefile @@ -1,11 +1,13 @@ -# Quick'n'dirty makefile [BC] v2 +#--------------------------------------------------------------------------------- +.SUFFIXES: +#--------------------------------------------------------------------------------- ifeq ($(strip $(DEVKITPPC)),) - $(error "Use export DEVKITPPC=devkitPPC and try again") +$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) endif ifeq ($(strip $(DEVKITPRO)),) - $(error "Use export DEVKITPRO=devkitPRO and try again") +$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPro) endif NULLSTR := diff --git a/GRRLIB/lib/freetype/Makefile b/GRRLIB/lib/freetype/Makefile index 83c4d28..82bc5a5 100644 --- a/GRRLIB/lib/freetype/Makefile +++ b/GRRLIB/lib/freetype/Makefile @@ -1,11 +1,13 @@ -# Quick'n'dirty makefile [BC] +#--------------------------------------------------------------------------------- +.SUFFIXES: +#--------------------------------------------------------------------------------- ifeq ($(strip $(DEVKITPPC)),) - $(error "Use export DEVKITPPC=devkitPPC and try again") +$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) endif ifeq ($(strip $(DEVKITPRO)),) - $(error "Use export DEVKITPRO=devkitPRO and try again") +$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPro) endif # FreeType Makefile diff --git a/GRRLIB/lib/jpeg/Makefile b/GRRLIB/lib/jpeg/Makefile index 116076d..8dbe54d 100644 --- a/GRRLIB/lib/jpeg/Makefile +++ b/GRRLIB/lib/jpeg/Makefile @@ -1,11 +1,13 @@ -# Quick'n'dirty makefile [BC] v2 +#--------------------------------------------------------------------------------- +.SUFFIXES: +#--------------------------------------------------------------------------------- ifeq ($(strip $(DEVKITPPC)),) - $(error "Use export DEVKITPPC=devkitPPC and try again") +$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) endif ifeq ($(strip $(DEVKITPRO)),) - $(error "Use export DEVKITPRO=devkitPRO and try again") +$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPro) endif PREFIX := $(DEVKITPPC)/bin/powerpc-eabi- diff --git a/GRRLIB/lib/png/Makefile b/GRRLIB/lib/png/Makefile index 1d240ae..01dea1d 100644 --- a/GRRLIB/lib/png/Makefile +++ b/GRRLIB/lib/png/Makefile @@ -1,11 +1,13 @@ -# Quick'n'dirty makefile [BC] v2 +#--------------------------------------------------------------------------------- +.SUFFIXES: +#--------------------------------------------------------------------------------- ifeq ($(strip $(DEVKITPPC)),) - $(error "Use export DEVKITPPC=devkitPPC and try again") +$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) endif ifeq ($(strip $(DEVKITPRO)),) - $(error "Use export DEVKITPRO=devkitPRO and try again") +$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPro) endif PREFIX := $(DEVKITPPC)/bin/powerpc-eabi- diff --git a/GRRLIB/lib/pngu/Makefile b/GRRLIB/lib/pngu/Makefile index 5fb98c1..30a998b 100644 --- a/GRRLIB/lib/pngu/Makefile +++ b/GRRLIB/lib/pngu/Makefile @@ -1,11 +1,13 @@ -# Quick'n'dirty makefile [BC] v2 +#--------------------------------------------------------------------------------- +.SUFFIXES: +#--------------------------------------------------------------------------------- ifeq ($(strip $(DEVKITPPC)),) - $(error "Use export DEVKITPPC=devkitPPC and try again") +$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) endif ifeq ($(strip $(DEVKITPRO)),) - $(error "Use export DEVKITPRO=devkitPRO and try again") +$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPro) endif PREFIX := $(DEVKITPPC)/bin/powerpc-eabi- diff --git a/GRRLIB/lib/zlib/Makefile b/GRRLIB/lib/zlib/Makefile index b4411e1..6bb3e13 100644 --- a/GRRLIB/lib/zlib/Makefile +++ b/GRRLIB/lib/zlib/Makefile @@ -1,11 +1,13 @@ -# Quick'n'dirty makefile [BC] v2 +#--------------------------------------------------------------------------------- +.SUFFIXES: +#--------------------------------------------------------------------------------- ifeq ($(strip $(DEVKITPPC)),) - $(error "Use export DEVKITPPC=devkitPPC and try again") +$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) endif ifeq ($(strip $(DEVKITPRO)),) - $(error "Use export DEVKITPRO=devkitPRO and try again") +$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPro) endif PREFIX := $(DEVKITPPC)/bin/powerpc-eabi- diff --git a/README.md b/README.md index afd01ae..2a9f3e7 100644 --- a/README.md +++ b/README.md @@ -83,18 +83,19 @@ Installing GRRLIB This guide is for Windows. If you are using Linux, I am going to presume you are smart enough to convert these instructions. - +``` GRRLIB is supplied as source code libjpeg is supplied as source code libpngu is supplied as source code libpng is supplied as source code libz is supplied as source code libfreetype is supplied as source code -libfat is supplied with devkitpro (Ie. preinstalled) +libfat is supplied with devkitpro (i.e. preinstalled) +``` The easy way is to install GRRLIB and all the required libraries in a single command: -``` +```bash c: cd \grr\GRRLIB make clean all install @@ -107,7 +108,7 @@ installed and you are ready to start developing Wii homebrew games. If you want, you could install the libz, libpng, libpngu, libjpeg and libfreetype libraries in a single command: -``` +```bash c: cd \grr\GRRLIB\lib make clean all install @@ -116,42 +117,42 @@ libfreetype libraries in a single command: Each library could also be installed individually: To install libz -``` +```bash c: cd \grr\GRRLIB\lib\zlib make clean all install ``` To install libpng -``` +```bash c: cd \grr\GRRLIB\lib\png make clean all install ``` To install libpngu -``` +```bash c: cd \grr\GRRLIB\lib\pngu make clean all install ``` To install libjpeg -``` +```bash c: cd \grr\GRRLIB\lib\jpeg make clean all install ``` To install libfreetype -``` +```bash c: cd \grr\GRRLIB\lib\freetype make clean all install ``` To install libgrrlib: -``` +```bash c: cd \grr\GRRLIB\GRRLIB make clean all install