view Renderer/Test/Makefile.macosx @ 563:b21a013051a2

all exmple on Mac OS X
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 22 Oct 2009 23:05:16 +0900
parents a5fda4e51498
children 2e1b6c5e4f8f
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 ieshoot node panel universe untitled vacuum


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)

IESHOOT_OBJ = ieshoot.o
ieshoot : $(IESHOOT_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

NODE_OBJ = node.o
node : $(NODE_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

PANEL_OBJ = panel.o
panel : $(PANEL_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

UNIV_OBJ = universe.o
universe : $(UNIV_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

UNTITLED_OBJ = untitled.o
untitled : $(UNTITLED_OBJ) 
	$(CC) -o $@ $?    $(LIBS)

VACUUM_OBJ = vacuum.o cube.o game_over.o title.o
vacuum : $(VACUUM_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