
#define BASEDIR ../..
#include "../../include/cake/SEP.clop.defs"
#include <SEP.defs>

/*#define LIB ../../lib/MTYPE/libCube.a*/
#define LIB ./MTYPE/libCube.a

/*#define INCLUDEDIR BASEDIR/include/Cube*/
#define INCLUDEDIR ./MTYPE

#define INCLUDES  '-I'INCLUDEDIR -I/usr/local/include

#define OBJS [[sub -v# #.cc OBJDIR/#.o [[ echo *.cc ]] ]]

default&: includes LIB 

very-clean&: clean
	-RM_CMD  LIB

clean&:
	-RM_CMD -f OBJS a.out core *..c
	-rmdir OBJDIR

LIB :  OBJS     if not exist LIB
	ar rcv LIB  OBJS
	ranlib LIB


LIB :  OBJS     if exist LIB
	ar rcv LIB [[ later LIB OBJS ]]
	ranlib LIB

includes &: INCLUDEDIR [[ sub X.h INCLUDEDIR/X.h [[  echo *.h ]] ]]

INCLUDEDIR :  if not exist INCLUDEDIR
        mkdir INCLUDEDIR

INCLUDEDIR/%.h: %.h
        cp %.h INCLUDEDIR/%.h

man&: 
	cp man/\*.l BASEDIR/man/manl


%.include: %.c 
        /lib/cpp INCLUDES %.c > log
	ccincl INCLUDES %.c

#include <SEP.obj.rules>
#include "../../include/cake/SEP.clop.rules"

