mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-19 00:11:55 +01:00
0cd2573062
Added used libraries to /branches/libs/ You need to "make" and "make install" both libsicksaxis and libupc to compile USBLoaderGX r1235+
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)
|