mirror of
https://github.com/Maschell/saviine.git
synced 2024-11-22 14:39:15 +01:00
30 lines
740 B
Makefile
30 lines
740 B
Makefile
CC=powerpc-eabi-gcc
|
|
CFLAGS=-std=gnu99 -nostdinc -fno-builtin -c
|
|
LD=powerpc-eabi-ld
|
|
LDFLAGS=-Ttext 1800000 --oformat binary
|
|
project := .
|
|
root:=$(CURDIR)
|
|
build := $(root)/bin
|
|
libs := $(root)/../../libwiiu/bin
|
|
www :=$(root)/../../www
|
|
framework:=$(root)/../../framework
|
|
|
|
all: clean setup client main532
|
|
|
|
setup:
|
|
mkdir -p $(root)/bin/
|
|
|
|
client:
|
|
cd ../client/ && make
|
|
|
|
main532:
|
|
$(CC) $(CFLAGS) -DVER=532 $(project)/saviine.c
|
|
#-Wa,-a,-ad
|
|
cp -r $(root)/*.o $(build)
|
|
rm $(root)/*.o
|
|
#$(LD) $(LDFLAGS) -o $(build)/code532.bin $(build)/saviine.o $(libs)/532/*.o `find $(build) -name "*.o" ! -name "saviine.o"`
|
|
$(LD) $(LDFLAGS) -o $(build)/code532.bin $(build)/saviine.o `find $(build) -name "*.o" ! -name "saviine.o"`
|
|
|
|
clean:
|
|
rm -rf $(build)/*
|