[CHG] Makefiles are using same var name as in devkitPro to make them easier to modify

This commit is contained in:
Crayon2000 2010-03-03 23:30:49 +00:00
parent 16c95a073b
commit 2dc838cb2b
6 changed files with 79 additions and 76 deletions

View file

@ -15,30 +15,30 @@ PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
INCD := $(DEVKITPRO)/libogc/include
LIBD := $(DEVKITPRO)/libogc/lib/wii
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
CFLAGS := -O2 -Wall $(MACHDEP) -I$(PWD) -I$(INCD)
CFLAGS := -O2 -Wall $(MACHDEP) -I$(PWD) -I$(LIBOGC_INC)
LIB := grrlib
SRC := $(wildcard *.c)
OBJ := $(patsubst %.c,%.o,$(SRC))
CFILES := $(wildcard *.c)
OFILES := $(CFILES:.c=.o)
ARC := lib$(LIB).a
HDR := $(LIB).h
INL := $(wildcard $(LIB)/*.h)
all : $(OBJ)
$(AR) -r $(ARC) $(OBJ)
all : $(OFILES)
$(AR) -r $(ARC) $(OFILES)
clean :
rm -f $(OBJ) $(ARC)
rm -f $(OFILES) $(ARC)
install :
mkdir -p $(LIBD) $(INCD) $(INCD)/grrlib
cp -f $(ARC) $(LIBD)/
cp -f $(HDR) $(INCD)/
cp -f $(INL) $(INCD)/grrlib
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC) $(LIBOGC_INC)/grrlib
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
cp -f $(INL) $(LIBOGC_INC)/grrlib
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -23,6 +23,9 @@ all :
@echo " http://svnbook.red-bean.com/en/1.1/ch07s05.html"
@echo "...For now, all you get is precompiled libraries"
clean:
@echo -e "Nothing to clean"
install :
mkdir -p $(OGC)/lib/wii/ $(OGC)/include/freetype/config/
cp -rf $(HDR) $(OGC)/include/

View file

@ -16,15 +16,15 @@ OBJ_DIR ?= $(TOP_DIR)
include $(TOP_DIR)/builds/toplevel.mk
INCD := $(DEVKITPRO)/libogc/include
LIBD := $(DEVKITPRO)/libogc/lib/wii
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
clean :
rm -f lib$(PROJECT).a ftmodule.h
install :
mkdir -p $(LIBD) $(INCD)/freetype/config/
cp -rf $(shell ls include/*.h) $(INCD)/
cp -rf $(shell ls include/freetype/*.h) $(INCD)/freetype/
cp -rf $(shell ls include/freetype/config/*.h) $(INCD)/freetype/config/
cp -rf lib$(PROJECT).a $(LIBD)/
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)/freetype/config/
cp -rf $(shell ls include/*.h) $(LIBOGC_INC)/
cp -rf $(shell ls include/freetype/*.h) $(LIBOGC_INC)/freetype/
cp -rf $(shell ls include/freetype/config/*.h) $(LIBOGC_INC)/freetype/config/
cp -rf lib$(PROJECT).a $(LIBOGC_LIB)/

View file

@ -12,28 +12,28 @@ PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
INCD := $(DEVKITPRO)/libogc/include
LIBD := $(DEVKITPRO)/libogc/lib/wii
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
CFLAGS := -O2 $(MACHDEP)
LIB := jpeg
SRC := $(shell ls *.c)
OBJ := $(patsubst %.c,%.o,$(SRC))
CFILES := $(wildcard *.c)
OFILES := $(CFILES:.c=.o)
ARC := lib$(LIB).a
HDR := jpeglib.h jconfig.h jmorecfg.h
all : $(OBJ)
$(AR) -r $(ARC) $(OBJ)
all : $(OFILES)
$(AR) -r $(ARC) $(OFILES)
clean :
rm -f $(OBJ) $(ARC)
rm -f $(OFILES) $(ARC)
install :
mkdir -p $(LIBD) $(INCD)
cp -f $(ARC) $(LIBD)/
cp -f $(HDR) $(INCD)/
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -12,28 +12,28 @@ PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
INCD := $(DEVKITPRO)/libogc/include
LIBD := $(DEVKITPRO)/libogc/lib/wii
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
CFLAGS := -O2 -Wall $(MACHDEP) -I $(INCD)
CFLAGS := -O2 -Wall $(MACHDEP) -I $(LIBOGC_INC)
LIB := png
SRC := $(shell ls *.c)
OBJ := $(patsubst %.c,%.o,$(SRC))
CFILES := $(wildcard *.c)
OFILES := $(CFILES:.c=.o)
ARC := lib$(LIB).a
HDR := $(LIB).h $(LIB)conf.h
all : $(OBJ)
$(AR) -r $(ARC) $(OBJ)
all : $(OFILES)
$(AR) -r $(ARC) $(OFILES)
clean :
rm -f $(OBJ) $(ARC)
rm -f $(OFILES) $(ARC)
install :
mkdir -p $(LIBD) $(INCD)
cp -f $(ARC) $(LIBD)/
cp -f $(HDR) $(INCD)/
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@

View file

@ -12,28 +12,28 @@ PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
CC := $(PREFIX)gcc
AR := $(PREFIX)ar
INCD := $(DEVKITPRO)/libogc/include
LIBD := $(DEVKITPRO)/libogc/lib/wii
LIBOGC_INC := $(DEVKITPRO)/libogc/include
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
CFLAGS := -O2 -Wall $(MACHDEP) -I $(INCD)
CFLAGS := -O2 -Wall $(MACHDEP) -I $(LIBOGC_INC)
LIB := pngu
SRC := $(shell ls *.c)
OBJ := $(patsubst %.c,%.o,$(SRC))
CFILES := $(wildcard *.c)
OFILES := $(CFILES:.c=.o)
ARC := lib$(LIB).a
HDR := $(LIB).h
all : $(OBJ)
$(AR) -r $(ARC) $(OBJ)
all : $(OFILES)
$(AR) -r $(ARC) $(OFILES)
clean :
rm -f $(OBJ) $(ARC)
rm -f $(OFILES) $(ARC)
install :
mkdir -p $(LIBD) $(INCD)
cp -f $(ARC) $(LIBD)/
cp -f $(HDR) $(INCD)/
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
cp -f $(ARC) $(LIBOGC_LIB)/
cp -f $(HDR) $(LIBOGC_INC)/
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@