Mercurial > hg > Game > Cerium
view example/Bulk/Makefile.gpu @ 2000:ac16a57f5dd7 draft
fix get_nextTaskArea
author | kkb |
---|---|
date | Fri, 02 May 2014 19:30:48 +0900 |
parents | |
children |
line wrap: on
line source
include ./Makefile.def SRCS_TMP = $(wildcard *.cc) SRCS_EXCLUDE = # 除外するファイルを書く SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) OBJS = $(SRCS:.cc=.o) TASK_DIR = ppe TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) TASK_SRCS_EXCLUDE = TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) TASK_OBJS = $(TASK_SRCS:.cc=.o) #LIBS += -lFifoManager `sdl-config --libs` CFLAGS += `sdl-config --cflags` `xml2-config --cflags` LIBS += -lGpuManager LIBS += `sdl-config --libs` `xml2-config --libs` -lSDL_image -Wl,-framework,OpenGL -framework opencl CC += -m$(ABIBIT) .SUFFIXES: .cc .o .cc.o: $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ all: $(TARGET) $(TARGET): $(OBJS) $(TASK_OBJS) $(CC) $(OPT) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) link: $(CC) $(OPT) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) debug: $(TARGET) sudo gdb ./$(TARGET) clean: rm -f $(TARGET) $(OBJS) $(TASK_OBJS) rm -f *~ \#* rm -f ppe/*~ ppe/\#* rm -f spe/*~ spe/\#*