view Renderer/Engine/Makefile.macosx @ 591:65e52fd2c2e2 draft

send linda not work...
author kazz@kazzone.st.ie.u-ryukyu.ac.jp
date Sun, 01 Nov 2009 06:14:52 +0900
parents 1a31b8820a4d
children 242a9db53612
line wrap: on
line source

include ./Makefile.def

SRCS_TMP = $(wildcard *.cc) $(wildcard Application/*.cc)
SRCS_EXCLUDE =  # ½ü³°
SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
OBJS = $(SRCS:.cc=.o)

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

LIBS += -lFifoManager

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

.SUFFIXES: .cc .o

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

all: $(TARGET)

$(TARGET) : $(OBJS) $(TASK_OBJS)
	$(AR) crus $@ $(OBJS) $(TASK_OBJS) 

# SGList.o: create_sg_list
# 	$(CC) $(CFLAGS) $(INCLUDE) -c SGList.cc -o $@

create_sg_list:
	@if [ ! -f SGList.h ]; then \
		cd tools/;\
		./create_sglist.pl ../xml_file/*.xml;\
	fi


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)
	rm -f *~ \#*
	rm -f SGList.h SGList.cc

-include depend.inc