mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02:20 +00:00
Makefiles were changed to allow compilation on GameCube and Wii.
To compile on GameCube use this: make PLATFORM=cube clean all install If PLATFORM is not specified or set to anything else it will compile for Wii.
This commit is contained in:
parent
5b61d78f59
commit
ee94dd4dac
9 changed files with 34 additions and 35 deletions
|
@ -17,3 +17,4 @@ install:
|
|||
script:
|
||||
- cd GRRLIB && sudo -E make clean all install && cd ..
|
||||
- cd examples && make && cd ..
|
||||
- cd GRRLIB && sudo -E make PLATFORM=cube clean all && cd ..
|
||||
|
|
|
@ -10,16 +10,16 @@ ifeq ($(strip $(DEVKITPRO)),)
|
|||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
|
||||
endif
|
||||
|
||||
include $(DEVKITPPC)/base_rules
|
||||
ifeq ($(PLATFORM),cube)
|
||||
include $(DEVKITPPC)/gamecube_rules
|
||||
else
|
||||
include $(DEVKITPPC)/wii_rules
|
||||
endif
|
||||
|
||||
NULLSTR :=
|
||||
PWD := $(subst $(NULLSTR) ,\ ,$(shell pwd))
|
||||
|
||||
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||
|
||||
INCLUDE := -I../lib/jpeg -I../lib/pngu -I../lib/freetype/include -I$(PWD) -I$(LIBOGC_INC)
|
||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||
CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE)
|
||||
|
||||
LIB := grrlib
|
||||
|
|
|
@ -10,6 +10,12 @@ 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
|
||||
|
||||
# FreeType Makefile
|
||||
PROJECT := freetype
|
||||
PROJECT_TITLE := FreeType
|
||||
|
@ -17,10 +23,6 @@ TOP_DIR ?= .
|
|||
OBJ_DIR ?= $(TOP_DIR)
|
||||
include $(TOP_DIR)/builds/toplevel.mk
|
||||
|
||||
|
||||
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||
|
||||
clean :
|
||||
rm -f lib$(PROJECT).a ftmodule.h
|
||||
|
||||
|
|
|
@ -9,9 +9,6 @@
|
|||
# indicate that you have read the license and understand and accept it
|
||||
# fully.
|
||||
|
||||
# devkitPPC base rules
|
||||
include $(DEVKITPPC)/base_rules
|
||||
|
||||
# Compiler command line name
|
||||
#
|
||||
COMPILER_SEP := $(SEP)
|
||||
|
@ -60,7 +57,6 @@ T := -o$(space)
|
|||
# Use the ANSIFLAGS variable to define the compiler flags used to enfore
|
||||
# ANSI compliance.
|
||||
#
|
||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||
CFLAGS ?= -c -O2 -Wall $(MACHDEP) -I$(TOP_DIR)/include
|
||||
|
||||
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
|
||||
|
|
|
@ -10,13 +10,13 @@ ifeq ($(strip $(DEVKITPRO)),)
|
|||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
|
||||
endif
|
||||
|
||||
include $(DEVKITPPC)/base_rules
|
||||
|
||||
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||
ifeq ($(PLATFORM),cube)
|
||||
include $(DEVKITPPC)/gamecube_rules
|
||||
else
|
||||
include $(DEVKITPPC)/wii_rules
|
||||
endif
|
||||
|
||||
INCLUDE :=
|
||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||
CFLAGS := -O2 $(MACHDEP) $(INCLUDE)
|
||||
|
||||
LIB := jpeg
|
||||
|
|
|
@ -10,13 +10,13 @@ ifeq ($(strip $(DEVKITPRO)),)
|
|||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
|
||||
endif
|
||||
|
||||
include $(DEVKITPPC)/base_rules
|
||||
|
||||
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||
ifeq ($(PLATFORM),cube)
|
||||
include $(DEVKITPPC)/gamecube_rules
|
||||
else
|
||||
include $(DEVKITPPC)/wii_rules
|
||||
endif
|
||||
|
||||
INCLUDE := -I../zlib -I$(LIBOGC_INC)
|
||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||
CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE)
|
||||
|
||||
LIB := png
|
||||
|
|
|
@ -10,13 +10,13 @@ ifeq ($(strip $(DEVKITPRO)),)
|
|||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
|
||||
endif
|
||||
|
||||
include $(DEVKITPPC)/base_rules
|
||||
|
||||
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||
ifeq ($(PLATFORM),cube)
|
||||
include $(DEVKITPPC)/gamecube_rules
|
||||
else
|
||||
include $(DEVKITPPC)/wii_rules
|
||||
endif
|
||||
|
||||
INCLUDE := -I../zlib -I../png -I$(LIBOGC_INC)
|
||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||
CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE)
|
||||
|
||||
LIB := pngu
|
||||
|
|
|
@ -10,13 +10,13 @@ ifeq ($(strip $(DEVKITPRO)),)
|
|||
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
|
||||
endif
|
||||
|
||||
include $(DEVKITPPC)/base_rules
|
||||
|
||||
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||
ifeq ($(PLATFORM),cube)
|
||||
include $(DEVKITPPC)/gamecube_rules
|
||||
else
|
||||
include $(DEVKITPPC)/wii_rules
|
||||
endif
|
||||
|
||||
INCLUDE :=
|
||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||
CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE)
|
||||
|
||||
LIB := zlib
|
||||
|
|
|
@ -90,7 +90,7 @@ 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 (i.e. preinstalled)
|
||||
libfat is supplied with devkitPro (i.e. preinstalled)
|
||||
```
|
||||
|
||||
The easy way is to install GRRLIB and all the required libraries in a single
|
||||
|
|
Loading…
Reference in a new issue