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: |
(cd GRRLIB && make clean all install)
(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
with:

View file

@ -10,16 +10,13 @@ ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
endif
ifeq ($(PLATFORM),cube)
include $(DEVKITPPC)/gamecube_rules
else
include $(DEVKITPPC)/wii_rules
endif
include $(DEVKITPPC)/base_rules
MACHDEP = -DGEKKO -mcpu=750 -meabi -mhard-float
INSTALL_INC := $(DEVKITPRO)/portlibs/ppc/include
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)
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:
To install libpngu
To install libpngu:
```bash
c:
cd \grr\GRRLIB\lib\pngu
make clean all install
```
To install libgrrlib:
To install libgrrlib for Wii:
```bash
c:
cd \grr\GRRLIB\GRRLIB
make clean all install
```
To install libgrrlib for GameCube:
```bash
c:
cd \grr\GRRLIB\GRRLIB
make PLATFORM=cube clean all install
```
## Using GRRLIB
After everything is installed, simply put