mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 15:02: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
|
@ -15,30 +15,30 @@ PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
|
||||||
CC := $(PREFIX)gcc
|
CC := $(PREFIX)gcc
|
||||||
AR := $(PREFIX)ar
|
AR := $(PREFIX)ar
|
||||||
|
|
||||||
INCD := $(DEVKITPRO)/libogc/include
|
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||||
LIBD := $(DEVKITPRO)/libogc/lib/wii
|
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||||
|
|
||||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
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
|
LIB := grrlib
|
||||||
SRC := $(wildcard *.c)
|
CFILES := $(wildcard *.c)
|
||||||
OBJ := $(patsubst %.c,%.o,$(SRC))
|
OFILES := $(CFILES:.c=.o)
|
||||||
ARC := lib$(LIB).a
|
ARC := lib$(LIB).a
|
||||||
HDR := $(LIB).h
|
HDR := $(LIB).h
|
||||||
INL := $(wildcard $(LIB)/*.h)
|
INL := $(wildcard $(LIB)/*.h)
|
||||||
|
|
||||||
all : $(OBJ)
|
all : $(OFILES)
|
||||||
$(AR) -r $(ARC) $(OBJ)
|
$(AR) -r $(ARC) $(OFILES)
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f $(OBJ) $(ARC)
|
rm -f $(OFILES) $(ARC)
|
||||||
|
|
||||||
install :
|
install :
|
||||||
mkdir -p $(LIBD) $(INCD) $(INCD)/grrlib
|
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC) $(LIBOGC_INC)/grrlib
|
||||||
cp -f $(ARC) $(LIBD)/
|
cp -f $(ARC) $(LIBOGC_LIB)/
|
||||||
cp -f $(HDR) $(INCD)/
|
cp -f $(HDR) $(LIBOGC_INC)/
|
||||||
cp -f $(INL) $(INCD)/grrlib
|
cp -f $(INL) $(LIBOGC_INC)/grrlib
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
|
@ -23,6 +23,9 @@ all :
|
||||||
@echo " http://svnbook.red-bean.com/en/1.1/ch07s05.html"
|
@echo " http://svnbook.red-bean.com/en/1.1/ch07s05.html"
|
||||||
@echo "...For now, all you get is precompiled libraries"
|
@echo "...For now, all you get is precompiled libraries"
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@echo -e "Nothing to clean"
|
||||||
|
|
||||||
install :
|
install :
|
||||||
mkdir -p $(OGC)/lib/wii/ $(OGC)/include/freetype/config/
|
mkdir -p $(OGC)/lib/wii/ $(OGC)/include/freetype/config/
|
||||||
cp -rf $(HDR) $(OGC)/include/
|
cp -rf $(HDR) $(OGC)/include/
|
||||||
|
|
|
@ -16,15 +16,15 @@ OBJ_DIR ?= $(TOP_DIR)
|
||||||
include $(TOP_DIR)/builds/toplevel.mk
|
include $(TOP_DIR)/builds/toplevel.mk
|
||||||
|
|
||||||
|
|
||||||
INCD := $(DEVKITPRO)/libogc/include
|
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||||
LIBD := $(DEVKITPRO)/libogc/lib/wii
|
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f lib$(PROJECT).a ftmodule.h
|
rm -f lib$(PROJECT).a ftmodule.h
|
||||||
|
|
||||||
install :
|
install :
|
||||||
mkdir -p $(LIBD) $(INCD)/freetype/config/
|
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)/freetype/config/
|
||||||
cp -rf $(shell ls include/*.h) $(INCD)/
|
cp -rf $(shell ls include/*.h) $(LIBOGC_INC)/
|
||||||
cp -rf $(shell ls include/freetype/*.h) $(INCD)/freetype/
|
cp -rf $(shell ls include/freetype/*.h) $(LIBOGC_INC)/freetype/
|
||||||
cp -rf $(shell ls include/freetype/config/*.h) $(INCD)/freetype/config/
|
cp -rf $(shell ls include/freetype/config/*.h) $(LIBOGC_INC)/freetype/config/
|
||||||
cp -rf lib$(PROJECT).a $(LIBD)/
|
cp -rf lib$(PROJECT).a $(LIBOGC_LIB)/
|
|
@ -12,28 +12,28 @@ PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
|
||||||
CC := $(PREFIX)gcc
|
CC := $(PREFIX)gcc
|
||||||
AR := $(PREFIX)ar
|
AR := $(PREFIX)ar
|
||||||
|
|
||||||
INCD := $(DEVKITPRO)/libogc/include
|
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||||
LIBD := $(DEVKITPRO)/libogc/lib/wii
|
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||||
|
|
||||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||||
CFLAGS := -O2 $(MACHDEP)
|
CFLAGS := -O2 $(MACHDEP)
|
||||||
|
|
||||||
LIB := jpeg
|
LIB := jpeg
|
||||||
SRC := $(shell ls *.c)
|
CFILES := $(wildcard *.c)
|
||||||
OBJ := $(patsubst %.c,%.o,$(SRC))
|
OFILES := $(CFILES:.c=.o)
|
||||||
ARC := lib$(LIB).a
|
ARC := lib$(LIB).a
|
||||||
HDR := jpeglib.h jconfig.h jmorecfg.h
|
HDR := jpeglib.h jconfig.h jmorecfg.h
|
||||||
|
|
||||||
all : $(OBJ)
|
all : $(OFILES)
|
||||||
$(AR) -r $(ARC) $(OBJ)
|
$(AR) -r $(ARC) $(OFILES)
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f $(OBJ) $(ARC)
|
rm -f $(OFILES) $(ARC)
|
||||||
|
|
||||||
install :
|
install :
|
||||||
mkdir -p $(LIBD) $(INCD)
|
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
|
||||||
cp -f $(ARC) $(LIBD)/
|
cp -f $(ARC) $(LIBOGC_LIB)/
|
||||||
cp -f $(HDR) $(INCD)/
|
cp -f $(HDR) $(LIBOGC_INC)/
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
|
@ -12,28 +12,28 @@ PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
|
||||||
CC := $(PREFIX)gcc
|
CC := $(PREFIX)gcc
|
||||||
AR := $(PREFIX)ar
|
AR := $(PREFIX)ar
|
||||||
|
|
||||||
INCD := $(DEVKITPRO)/libogc/include
|
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||||
LIBD := $(DEVKITPRO)/libogc/lib/wii
|
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||||
|
|
||||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||||
CFLAGS := -O2 -Wall $(MACHDEP) -I $(INCD)
|
CFLAGS := -O2 -Wall $(MACHDEP) -I $(LIBOGC_INC)
|
||||||
|
|
||||||
LIB := png
|
LIB := png
|
||||||
SRC := $(shell ls *.c)
|
CFILES := $(wildcard *.c)
|
||||||
OBJ := $(patsubst %.c,%.o,$(SRC))
|
OFILES := $(CFILES:.c=.o)
|
||||||
ARC := lib$(LIB).a
|
ARC := lib$(LIB).a
|
||||||
HDR := $(LIB).h $(LIB)conf.h
|
HDR := $(LIB).h $(LIB)conf.h
|
||||||
|
|
||||||
all : $(OBJ)
|
all : $(OFILES)
|
||||||
$(AR) -r $(ARC) $(OBJ)
|
$(AR) -r $(ARC) $(OFILES)
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f $(OBJ) $(ARC)
|
rm -f $(OFILES) $(ARC)
|
||||||
|
|
||||||
install :
|
install :
|
||||||
mkdir -p $(LIBD) $(INCD)
|
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
|
||||||
cp -f $(ARC) $(LIBD)/
|
cp -f $(ARC) $(LIBOGC_LIB)/
|
||||||
cp -f $(HDR) $(INCD)/
|
cp -f $(HDR) $(LIBOGC_INC)/
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
|
@ -12,28 +12,28 @@ PREFIX := $(DEVKITPPC)/bin/powerpc-eabi-
|
||||||
CC := $(PREFIX)gcc
|
CC := $(PREFIX)gcc
|
||||||
AR := $(PREFIX)ar
|
AR := $(PREFIX)ar
|
||||||
|
|
||||||
INCD := $(DEVKITPRO)/libogc/include
|
LIBOGC_INC := $(DEVKITPRO)/libogc/include
|
||||||
LIBD := $(DEVKITPRO)/libogc/lib/wii
|
LIBOGC_LIB := $(DEVKITPRO)/libogc/lib/wii
|
||||||
|
|
||||||
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
MACHDEP := -DGEKKO -mrvl -mcpu=750 -meabi -mhard-float
|
||||||
CFLAGS := -O2 -Wall $(MACHDEP) -I $(INCD)
|
CFLAGS := -O2 -Wall $(MACHDEP) -I $(LIBOGC_INC)
|
||||||
|
|
||||||
LIB := pngu
|
LIB := pngu
|
||||||
SRC := $(shell ls *.c)
|
CFILES := $(wildcard *.c)
|
||||||
OBJ := $(patsubst %.c,%.o,$(SRC))
|
OFILES := $(CFILES:.c=.o)
|
||||||
ARC := lib$(LIB).a
|
ARC := lib$(LIB).a
|
||||||
HDR := $(LIB).h
|
HDR := $(LIB).h
|
||||||
|
|
||||||
all : $(OBJ)
|
all : $(OFILES)
|
||||||
$(AR) -r $(ARC) $(OBJ)
|
$(AR) -r $(ARC) $(OFILES)
|
||||||
|
|
||||||
clean :
|
clean :
|
||||||
rm -f $(OBJ) $(ARC)
|
rm -f $(OFILES) $(ARC)
|
||||||
|
|
||||||
install :
|
install :
|
||||||
mkdir -p $(LIBD) $(INCD)
|
mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC)
|
||||||
cp -f $(ARC) $(LIBD)/
|
cp -f $(ARC) $(LIBOGC_LIB)/
|
||||||
cp -f $(HDR) $(INCD)/
|
cp -f $(HDR) $(LIBOGC_INC)/
|
||||||
|
|
||||||
%.o : %.c
|
%.o : %.c
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
Loading…
Reference in a new issue