view Renderer/Test/Makefile.macosx @ 562:a5fda4e51498

name search
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 22 Oct 2009 22:22:31 +0900
parents 71b3363c16bf
children b21a013051a2
line wrap: on
line source

include ./Makefile.def

LIBS += -lFifoManager -lCerium

CFLAGS += `sdl-config --cflags` `xml2-config --cflags`
LIBS   += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL

.SUFFIXES: .cc .o  .xml .xml.h .xml.cc

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

all: ball_bound boss1_action direction gaplant


BALL_BOUND_OBJ = ball_bound.o
ball_bound : $(BALL_BOUND_OBJ) 
	$(CC) -o $@ $?   $(LIBS)

BOSS_OBJ = boss1_action.o
boss1_action : $(BOSS_OBJ) 
	$(CC) -o $@ $?   $(LIBS)

DIRECTION_OBJ = direction.o
direction : $(DIRECTION_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

GAPLAN_OBJ = gaplant.o gaplant_action.o back_action.o ball_action.o
gaplant : $(GAPLAN_OBJ) 
	$(CC) -o $@ $?    $(LIBS)


run: $(TARGET)
	sudo ./$(TARGET) -width 576 -height 384 -bpp 32

debug: $(TARGET)
	sudo ppu-gdb ./$(TARGET) 

depend:
	$(RM) depend.inc
	$(CC) -MM -MG $(INCLUDE) $(CFLAGS) $(SRCS) $(TASK_SRCS) > depend.inc

clean:
	rm -f $(TARGET) $(OBJS) $(TASK_OBJS) *.o
	rm -f *~ \#*
	rm -f $(BALL_BOUND_XML).cc $(BALL_BOUND_XML).h $(BALL_BOUND_OBJ)

-include depend.inc