view TaskManager/Test/test_render/Makefile.macosx @ 141:56db76a03294 draft

TileList を作ろうとしたがに動かない。 今はTileList 無しver
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Sat, 29 Nov 2008 01:18:32 +0900
parents 62d76597d6a2
children 0b0e0f323742
line wrap: on
line source

include ./Makefile.def

SRCS_TMP = $(wildcard *.cpp)
SRCS_EXCLUDE =  # 
SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
OBJS = $(SRCS:.cpp=.o)

TASK_DIR  = task
TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cpp)
TASK_SRCS_EXCLUDE = span_pack_draw.cpp
TASK_SRCS = $(filter-out $(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
TASK_OBJS = $(TASK_SRCS:.cpp=.o)

LIBS += -lFifoManager


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

.SUFFIXES: .cpp .o

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

all: $(TARGET)

$(TARGET): $(OBJS) $(TASK_OBJS)
	$(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)

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

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

clean:
	rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
	rm -f *~ \#*