Including devkitPPC base rules in makefiles.

This commit is contained in:
Crayon2000 2015-11-01 22:16:58 -05:00
parent 61e13d09e9
commit b1d7638f54
6 changed files with 8 additions and 33 deletions

View file

@ -10,13 +10,11 @@ ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
endif
include $(DEVKITPPC)/base_rules
NULLSTR :=
PWD := $(subst $(NULLSTR) ,\ ,$(shell pwd))
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
@ -42,6 +40,3 @@ install :
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
cp -f $(INL) $(LIBOGC_INC)/grrlib
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -9,10 +9,11 @@
# indicate that you have read the license and understand and accept it
# fully.
# devkitPPC base rules
include $(DEVKITPPC)/base_rules
# Compiler command line name
#
CC := $(DEVKITPPC)/bin/powerpc-eabi-gcc
COMPILER_SEP := $(SEP)
@ -72,7 +73,6 @@ ANSIFLAGS :=
# Library linking
#
CLEAN_LIBRARY ?= $(DELETE) $(subst /,$(SEP),$(PROJECT_LIBRARY))
AR := $(DEVKITPPC)/bin/powerpc-eabi-ar
LINK_LIBRARY = $(AR) -r $@ $(subst /,$(COMPILER_SEP),$(OBJECTS_LIST))

View file

@ -10,9 +10,7 @@ ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
endif
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
include $(DEVKITPPC)/base_rules
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
@ -37,6 +35,3 @@ install :
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -10,9 +10,7 @@ ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
endif
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
include $(DEVKITPPC)/base_rules
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
@ -37,6 +35,3 @@ install :
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -10,9 +10,7 @@ ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
endif
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
include $(DEVKITPPC)/base_rules
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
@ -37,6 +35,3 @@ install :
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -10,9 +10,7 @@ ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitPro)
endif
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
include $(DEVKITPPC)/base_rules
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
@ -37,6 +35,3 @@ install :
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@