Installation folders for Wii and GameCube are different

This commit is contained in:
Crayon2000 2021-06-27 12:46:12 -04:00
parent 396276c465
commit fb568a0e29
2 changed files with 11 additions and 4 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)
(cd GRRLIB && make PLATFORM=cube clean all install)
- uses: actions/upload-artifact@master
with:

View file

@ -12,16 +12,23 @@ endif
ifeq ($(PLATFORM),cube)
include $(DEVKITPPC)/gamecube_rules
MACHDEP += -DHW_DOL
INSTALL_INC := $(DEVKITPRO)/portlibs/gamecube/include
INSTALL_LIB := $(DEVKITPRO)/portlibs/gamecube/lib
else
include $(DEVKITPPC)/wii_rules
MACHDEP += -DHW_RVL
INSTALL_INC := $(DEVKITPRO)/portlibs/wii/include
INSTALL_LIB := $(DEVKITPRO)/portlibs/wii/lib
endif
NULLSTR :=
PWD := $(subst $(NULLSTR) ,\ ,$(shell pwd))
INSTALL_INC := $(DEVKITPRO)/portlibs/ppc/include
INSTALL_LIB := $(DEVKITPRO)/portlibs/ppc/lib
INCLUDE := -I../lib/pngu -I$(PWD) -I$(LIBOGC_INC) -I$(DEVKITPRO)/portlibs/ppc/include -I$(DEVKITPRO)/portlibs/ppc/include/freetype2
CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE)