mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
Use base_rules to build libpngu
This commit is contained in:
parent
fb568a0e29
commit
9ada5ddf1d
4 changed files with 81 additions and 77 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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:
|
||||||
|
|
|
@ -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
|
||||||
|
|
11
README.md
11
README.md
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue