mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-15 16:05:10 +01:00
29 lines
554 B
Makefile
29 lines
554 B
Makefile
|
.SUFFIXES:
|
||
|
|
||
|
ifeq ($(strip $(DEVKITPPC)),)
|
||
|
$(error "Please set DEVKITPPC in your environment. export DEVKITPPC=<path to>devkitPPC")
|
||
|
endif
|
||
|
|
||
|
include $(DEVKITPPC)/wii_rules
|
||
|
|
||
|
|
||
|
TARGET := libsicksaxis.a
|
||
|
CFLAGS = -g -O2 -Wall $(MACHDEP) -I$(LIBOGC_INC)
|
||
|
|
||
|
|
||
|
all: sicksaxis.o
|
||
|
powerpc-eabi-ar rcs $(TARGET) -c sicksaxis.o
|
||
|
@echo "Type 'make install' to install"
|
||
|
|
||
|
sicksaxis.o:
|
||
|
powerpc-eabi-gcc $(CFLAGS) -c sicksaxis.c
|
||
|
|
||
|
install: all
|
||
|
@echo install ...
|
||
|
cp $(TARGET) $(LIBOGC_LIB)
|
||
|
cp sicksaxis.h $(LIBOGC_INC)
|
||
|
|
||
|
clean:
|
||
|
@echo clean ...
|
||
|
@rm -fr sicksaxis.o $(TARGET)
|