view example/Simple/spe/Makefile @ 636:d433fc37587d

Cell Simple Task compiled. but not worked.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 18 Nov 2009 19:09:40 +0900
parents 0558abba673c
children 0692b08f1cd6
line wrap: on
line source

include ../Makefile.def

TARGET = ../spe-main

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

CC      = spu-g++ -DABIBIT=$(ABIBIT) -DSIMPLE_TASK 
CFLAGS  = -g -Wall -fno-exceptions -fno-rtti #-DDEBUG
INCLUDE = -I../${CERIUM}/include/TaskManager -I. -I..
LIBS = -L../${CERIUM}/TaskManager -lspemanager

.SUFFIXES: .cc .o

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

all: $(TARGET)

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

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