# This is the imake template file which is used by cds developers to do 
# development in their dev directories
#include "/mit/cdsdev/vaxbuild/Imake.cds"

MACHINE = vax
CDS_ROOT = /mit/cdsdev/beta
CDS_LIBDIR = /mit/cdsdev/$(MACHINE)lib
CDS_INCLUDE = /mit/cdsdev/include

LDOPTIONS = -L. -L$(CDS_LIBDIR) -L/mit/atdev/$(MACHINE)lib
MAIN = $(CDS_ROOT)/src/main.cc

LIBS = -lcds -ly -ll -lAt -lCm -lXm -lXt -lX11 -lm -lexpect -ltcl -lvprintf

INCLUDES = -I. -I$(CDS_INCLUDE)/cur \
-I$(CDS_ROOT)/src.lib -I$(CDS_ROOT)/src.lib/expect -I$(CDS_ROOT)/src.lib/Cm \
-I$(CDS_ROOT)/src.lib/tcl6.3

DEFINES = -DVER=\"development\" -DXTFUNCPROTO

PClassObjectRule()
NormalCPlusPlusObjectRule()

cds: $(OBJS)
	RemoveTargetProgram(/usr/tmp/$@)
	$(CXX) -o /usr/tmp/$@ $(MAIN) $(INCLUDES) $(OBJS) $(LDOPTIONS) $(LIBS) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
	@echo ""
	@echo "finished compiling /usr/tmp/cds"
	chmod 777 /usr/tmp/cds
clean::
	$(RM) /usr/tmp/cds

DependTarget()
