
CC_LINK = /iwarp/bin2.8/iwcc
CC_INIT = /iwarp/bin2.8/iwcc

LIBS += -L/iwarp/lib2.8 -lpcs1
LIBS += -L/iwarp/lib2.8 -linit-rts1
LIBS += -lpl
LIBS += -lrts
#LIBS += -lcfg

CFLAGS = -DIWARP -DIWARP_CELL -DIWARP_HW -I/iwarp/include2.8

LINKFLAGS += program.o
LINKFLAGS += -L/afs/cs/project/iwarp/member/stichnot/fx/lib/
LINKFLAGS += -lfx
LINKFLAGS += -lm


task_module_1.0.0:	task_module-init.o task_module-map.o empty.o 
	@$(CC_LINK) -o task_module_1.0.0 task_module-init.o task_module-map.o empty.o $(LINKFLAGS) $(LIBS)


all:	task_module_1.0.0 

task_module-init.o:	task_module-init.c
	@$(CC_INIT) $(INITFLAGS) $(CFLAGS) -c task_module-init.c

task_module-map.o:	task_module-map.c
	@$(CC_INIT) $(INITFLAGS) $(CFLAGS) -c task_module-map.c

.c.o:
	@if [ -f $@ ] ; then \
		touch $@; echo "Warning: $@ is older than $<."; \
	else \
		echo "Error: $@ does not exist"; exit 1;\
	fi

.s.o:
	@if [ -f $@ ] ; then \
		touch $@; echo "Warning: $@ is older than $<."; \
	else \
		echo "Error: $@ does not exist"; exit 1;\
	fi

