Use base_rules to build libpngu

This commit is contained in:
Crayon2000 2021-07-05 00:33:45 -04:00
parent fb568a0e29
commit 9ada5ddf1d
4 changed files with 81 additions and 77 deletions

View file

@ -19,7 +19,7 @@ jobs:
run: | run: |
(cd GRRLIB && make clean all install) (cd GRRLIB && make clean all install)
(cd examples && make) (cd examples && make)
(cd GRRLIB && make PLATFORM=cube clean all install) (cd GRRLIB/GRRLIB && make PLATFORM=cube clean all install)
- uses: actions/upload-artifact@master - uses: actions/upload-artifact@master
with: with:

View file

@ -10,16 +10,13 @@ ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro) $(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
endif endif
ifeq ($(PLATFORM),cube) include $(DEVKITPPC)/base_rules
include $(DEVKITPPC)/gamecube_rules MACHDEP = -DGEKKO -mcpu=750 -meabi -mhard-float
else
include $(DEVKITPPC)/wii_rules
endif
INSTALL_INC := $(DEVKITPRO)/portlibs/ppc/include INSTALL_INC := $(DEVKITPRO)/portlibs/ppc/include
INSTALL_LIB := $(DEVKITPRO)/portlibs/ppc/lib INSTALL_LIB := $(DEVKITPRO)/portlibs/ppc/lib
INCLUDE := -I$(LIBOGC_INC) -I$(DEVKITPRO)/portlibs/ppc/include INCLUDE := -I$(DEVKITPRO)/portlibs/ppc/include
CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE) CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE)
LIB := pngu LIB := pngu

View file

@ -102,20 +102,27 @@ libfreetype and libjpeg with there dependencies in a single command:
Each library could also be installed individually: Each library could also be installed individually:
To install libpngu To install libpngu:
```bash ```bash
c: c:
cd \grr\GRRLIB\lib\pngu cd \grr\GRRLIB\lib\pngu
make clean all install make clean all install
``` ```
To install libgrrlib: To install libgrrlib for Wii:
```bash ```bash
c: c:
cd \grr\GRRLIB\GRRLIB cd \grr\GRRLIB\GRRLIB
make clean all install make clean all install
``` ```
To install libgrrlib for GameCube:
```bash
c:
cd \grr\GRRLIB\GRRLIB
make PLATFORM=cube clean all install
```
## Using GRRLIB ## Using GRRLIB
After everything is installed, simply put After everything is installed, simply put