#--------------------------------------------------------------------------------- .SUFFIXES: #--------------------------------------------------------------------------------- ifeq ($(strip $(DEVKITPPC)),) $(error "Please set DEVKITPPC in your environment. export DEVKITPPC=devkitPPC) endif ifeq ($(strip $(DEVKITPRO)),) $(error "Please set DEVKITPRO in your environment. export DEVKITPRO=devkitPro) endif ifeq ($(PLATFORM),cube) include $(DEVKITPPC)/gamecube_rules else include $(DEVKITPPC)/wii_rules endif INCLUDE := -I../zlib -I../png -I$(LIBOGC_INC) CFLAGS := -O2 -Wall $(MACHDEP) $(INCLUDE) LIB := pngu CFILES := $(wildcard *.c) OFILES := $(CFILES:.c=.o) ARC := lib$(LIB).a HDR := $(LIB).h all : $(OFILES) $(AR) -r $(ARC) $(OFILES) clean : rm -f $(OFILES) $(ARC) install : mkdir -p $(LIBOGC_LIB) $(LIBOGC_INC) cp -f $(ARC) $(LIBOGC_LIB)/ cp -f $(HDR) $(LIBOGC_INC)/