view Makefile.ps3 @ 16:5e10d43156bd

Makefile fix.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Wed, 15 Dec 2010 19:06:42 +0900
parents 435ac1cdb64e
children 927401604461
line wrap: on
line source

# Makefile to build the SDL tests
include ./Makefile.def

srcdir  = .
ABI = -m32

CFLAGS  += -g $(ABI) -O2 -Wall `/usr/bin/sdl-config --cflags` `xml2-config --cflags` $(INCLUDE)
LIBS	+=  `/usr/bin/sdl-config --libs` -lGL -lGLU -lSDL_mixer -lSDL_image `xml2-config --libs`
LIBS +=  -lCerium -lCellManager  -lspe2 -lpthread


TARGET = dandy spe-main
OBJS    =  Character.o Bom.o tokuten.o collision.o count2.o Character_state.o schedule3.o tama2.o syokika.o Ss.o sound.o  profile.o debug.o trace.o LoadSprite.o xml.o b64_de.o tree_controll.o object.o sys.o 

all: $(TARGET)

speobject:
	cd spe; $(MAKE)

spe-main:
	ln -s $(CERIUM)/Renderer/Engine/spe-main .

run: $(TARGET)
	sudo ./$(TARGET) -width 576 -height 384 -bpp 32
run-hd: $(TARGET)
	sudo /usr/sbin/ps3-video-mode -v 133
	sudo ./$(TARGET) -video fb -width 1920 -height 1080 -bpp 32

test: $(TARGET)
	./demo  -test

demo: $(OBJS) sgoex.o main.o
	$(CC) $(ABI) -o $@ main.o sgoex.o $(OBJS) $(LIBS)

dandy: $(OBJS) Dandy.o
	$(CC) $(ABI) -o $@ $(OBJS) Dandy.o $(LIBS)

clean:
	rm -f $(TARGET) $(OBJS)

.c.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $<

.cc.o:
	$(CC) $(CFLAGS) $(INCLUDES) -c $<

debug.o:debug.h