
CFLAGS = -c ${OPTIMIZEFLAG} ${C_OPT} -D${MACH_OS} \
        -I./ -I../../include -I${IRIS_ROOT}/include

CXXFLAGS= -c ${OPTIMIZEFLAG} ${CC_OPT} -D${MACH_OS} \
        -I./ -I../../include -I${IRIS_ROOT}/include
CCFLAGS = ${CXXFLAGS}

LDFLAGS =	-L../../libs/lib -L${IRIS_ROOT}/libs/lib \
		-L../../rda/lib  -L${IRIS_ROOT}/rda/lib 

EXES = tsexport tsimport

all:	${EXES} 

MKDEPEND_CSRCS = tsexport.C tsimport.C
depend:; ${MKDEPEND} ;

tsexport :	tsexport.o
		${CXX} ${LD_OPT} tsexport.o ${LDFLAGS} -lrdasubs -lconfig -luser -lm -o tsexport
		rootchown root tsexport ; rootchmod 6775 tsexport

tsimport :	tsimport.o
		${CXX} ${LD_OPT} tsimport.o ${LDFLAGS} -lrdasubs -lconfig -luser -lm -o tsimport
		rootchown root tsimport ; rootchmod 6775 tsimport

install: all
		rootcp -p ${EXES} ${IRIS_BIN}rda
		( cd ${IRIS_BIN}rda ; \
		  strip ${EXES} ; \
		  rootchown root ${EXES} ; \
		  rootchmod 6775 ${EXES} ; \
		)

cleanexe:;	rm -f ${EXES} core
clean:		cleanexe
		rm -f *.o *.usg *.cat*
# DO NOT DELETE

tsexport.o: ../../include/sigtypes.h ../../include/signoarch.h
tsexport.o: ../../include/dsp.h ../../include/rvp8.h ../../include/user_lib.h
tsexport.o: ../../include/rdasubs_lib.h ../../include/signetwork.h
tsimport.o: ../../include/sigtypes.h ../../include/signoarch.h
tsimport.o: ../../include/dsp.h ../../include/rvp8.h ../../include/user_lib.h
tsimport.o: ../../include/rdasubs_lib.h ../../include/signetwork.h
