view example/many_task/Makefile.macosx @ 1515:b3644b73d2cf draft

add flip flag test
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 23 Oct 2012 14:41:27 +0900
parents 18b63e697c61
children 9ccfdc408d51
line wrap: on
line source

include ./Makefile.def


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

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

CC      = g++
CC += $(ABI)
# CFLAGS  = -g -Wall# -O9 #-DDEBUG

INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
LIBS = -L${CERIUM}/TaskManager -lFifoManager `sdl-config --libs`

.SUFFIXES: .cc .o

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

all: $(TARGET)

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

link:
	$(CC) -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/\#*
	rm -f gpu/*~ gpu/\#*