mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 06:52:20 +00:00
[CHG] Makefiles are using same var name as in devkitPro to make them easier to modify
This commit is contained in:
parent
16c95a073b
commit
2dc838cb2b
6 changed files with 79 additions and 76 deletions
|
@ -11,34 +11,34 @@ endif
|
|||
NULLSTR :=
|
||||
PWD := $(subst $(NULLSTR) ,\ ,$(shell pwd))
|
||||
|
||||
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
|
||||
CC := $(PREFIX)gcc
|
||||
AR := $(PREFIX)ar
|
||||
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))
|
||||
ARC := lib$(LIB).a
|
||||
HDR := $(LIB).h
|
||||
INL := $(wildcard $(LIB)/*.h)
|
||||
LIB := grrlib
|
||||
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 $@
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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)/
|
|
@ -8,32 +8,32 @@ ifeq ($(strip $(DEVKITPRO)),)
|
|||
$(error "Use export DEVKITPRO=<path to>devkitPRO and try again")
|
||||
endif
|
||||
|
||||
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
|
||||
CC := $(PREFIX)gcc
|
||||
AR := $(PREFIX)ar
|
||||
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))
|
||||
ARC := lib$(LIB).a
|
||||
HDR := jpeglib.h jconfig.h jmorecfg.h
|
||||
LIB := jpeg
|
||||
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 $@
|
||||
|
|
|
@ -8,32 +8,32 @@ ifeq ($(strip $(DEVKITPRO)),)
|
|||
$(error "Use export DEVKITPRO=<path to>devkitPRO and try again")
|
||||
endif
|
||||
|
||||
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
|
||||
CC := $(PREFIX)gcc
|
||||
AR := $(PREFIX)ar
|
||||
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))
|
||||
ARC := lib$(LIB).a
|
||||
HDR := $(LIB).h $(LIB)conf.h
|
||||
LIB := png
|
||||
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 $@
|
||||
|
|
|
@ -8,32 +8,32 @@ ifeq ($(strip $(DEVKITPRO)),)
|
|||
$(error "Use export DEVKITPRO=<path to>devkitPRO and try again")
|
||||
endif
|
||||
|
||||
PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
|
||||
CC := $(PREFIX)gcc
|
||||
AR := $(PREFIX)ar
|
||||
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))
|
||||
ARC := lib$(LIB).a
|
||||
HDR := $(LIB).h
|
||||
LIB := pngu
|
||||
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 $@
|
||||
|
|
Loading…
Reference in a new issue