view TaskManager/test/GpuRunTest/Makefile @ 1460:d79256b51d7f draft

debug GpuRunTest.
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 12 Jun 2012 13:18:03 +0900
parents d62b5d9faba0
children bde20cca45ae
line wrap: on
line source

include ./Makefile.def

SRCS_TMP = $(wildcard *.cc)
SRCS_EXCLUDE = GpuTaskManagerImpl.cc  # 除外するファイルを書く
SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
OBJS = $(SRCS:.cc=.o)

LIBS += ../../libGpuManager.a `sdl-config --cflags` -framework opencl 

.SUFFIXES: .cc .o

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

all: $(TARGET)

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

link:
	$(CC) -o $(TARGET) $(OBJS) $(LIBS)

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

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