view examples/treedependtask/Makefile @ 8:07fab8c367b2

made src directory and move all source files into it. support autocont and automake tools.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 08 Jan 2010 14:40:49 +0900
parents
children f06fb0370caf
line wrap: on
line source

#CC = gcc
CbCC = ~/WorkSpace/Mercurial/build_cbc44/INSTALL_DIR/bin/gcc 
CC = $(CbCC)

TaskManagerDir = ../../CbCTaskManager

LDFLAGS = -L$(TaskManagerDir)
LIBS = -lFifoManager

ENVIRONMENT=Fifo
#ENVIRONMENT=Cell

INCLUDE = -I$(TaskManagerDir) -I$(TaskManagerDir)/user -I. -I$(TaskManagerDir)/$(ENVIRONMENT)
CFLAGS = -Wall -g -O0 $(INCLUDE) -DDEBUG

.SUFFIXES: .cbc .c .o

all: testmanager

.c.o:
	$(CC) -c $(CFLAGS) -o $@ $^
.cbc.o:
	$(CbCC) -c $(CFLAGS) -o $@ $^

testmanager: testmanager.o taskinit.o
	$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

clean:
	rm -f *.o testmanager