#
# Imakefile for cli sample program
#

#include "../Imakefile.def"

ALL = clitestc comtestc clitest alitest simpletest testline comtest comtst \
txtrd

INCLUDES = -I../include

#ifdef CliUseReadline
LIB_READLINE = /adsoft/readline/5.0/$(EXT)/libreadline.a -ltermcap
#endif

LIB = ../com/libCOM.a ../cli/libCLI.a $(LIB_READLINE)

AllTarget($(ALL))

clitestc: clitestc.o
	$(CC) -o $@ clitestc.o $(LIB) $(LIBSYS) -lm

comtestc: comtestc.o
	$(CC) -o $@ comtestc.o $(LIB) $(LIBSYS) -lm

clitest: clitest.o
	$(FC) -o $@ clitest.o $(LIB)

alitest: alitest.o
	$(FC) -o $@ alitest.o $(LIB)

simpletest: simpletest.o
	$(FC) -o $@ clitest.o $(LIB)

testline: testline.o
	$(FC) -o $@ testline.o $(LIB)

comtest: comtest.o
	$(FC) -o $@ comtest.o $(LIB)

comtst: comtst.o
	$(FC) -o $@ comtst.o $(LIB)

txtrd: txtrd.o
	$(CC) -o $@ txtrd.o $(LIB) $(LIBSYS) -lm

clean::
	-$(RM) $(ALL) *.o
