# Makefile for src/utils/examples directory
#
CFLAGS_ALL	= -D${MACH_OS} -DMOTIF -DSYSV -DXT_CODE -DXOPEN_CATALOG \
                  -I./  -I../../include -I${IRIS_ROOT}/include

CFLAGS		= -c ${DEBUGFLAG} ${C_OPT}  ${CFLAGS_ALL}
CXXFLAGS        = -c ${DEBUGFLAG} ${CC_OPT} ${CFLAGS_ALL}
CCFLAGS = ${CXXFLAGS}

CFLAGS_RELAXED	= -c ${DEBUGFLAG} ${C_OPT_RELAXED}  ${CFLAGS_ALL}
CCFLAGS_RELAXED = -c ${DEBUGFLAG} ${CC_OPT_RELAXED} ${CFLAGS_ALL}

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

EXES = ant_example beam_blockage change_product change_raw crab interference \
	llwas_sim mode_change orda_example PomHeader728 sector ss_test TapeInv723 \
	tdwr_sim track_sim upi_rcv upi_xmt version vcor_on  
INSTALLS = beam_blockage change_raw crab llwas_sim mode_change PomHeader728 \
	TapeInv723 tdwr_sim upi_rcv upi_xmt

all : ${EXES}

install : all
	rootcp -p ${INSTALLS} ${IRIS_BIN}
	( cd ${IRIS_BIN} ; \
	  strip              ${INSTALLS} ; \
	  rootchmod 775      ${INSTALLS} ; \
	  rootchown operator ${INSTALLS} ; \
	)

ant_example:	ant_example.o
		${CXX} ${LD_OPT} ant_example.o ${LDFLAGS} \
		-lantenna -lconfig -luser -lm ${LSEARCH_BSD} -o ant_example

iristap:	iristap.o
		${CXX} ${LD_OPT} iristap.o ${LDFLAGS} \
		-lXm -lXt -lX11 ${LSEARCH_BSD} -o iristap

beam_blockage:	beam_blockage.o
		${CXX} ${LD_OPT} beam_blockage.o ${LDFLAGS}  \
		-luser -lm ${LSEARCH_BSD} -o beam_blockage

change_product:	change_product.o
		${CXX} ${LD_OPT} change_product.o ${LDFLAGS}  \
		-luser ${LSEARCH_BSD} -o change_product

change_raw:	change_raw.o
		${CXX} ${LD_OPT} change_raw.o ${LDFLAGS}  \
		-lmisc -ldspi -luser -lm ${LSEARCH_BSD} -o change_raw

crab: 		crab.o
		${CXX} ${LD_OPT} crab.o ${LDFLAGS}  \
		-lm ${LSEARCH_BSD} -o crab

interference:	interference.o
		${CXX} ${LD_OPT} interference.o ${LDFLAGS}  \
		-lhimath -luser -lm ${LSEARCH_BSD} -o interference

llwas_sim:	llwas_sim.o
		${CXX} ${LD_OPT} llwas_sim.o ${LDFLAGS}  \
		-lmisc -lconfig -luser -lm ${LSEARCH_BSD} -o llwas_sim

mode_change:	mode_change.o
		${CXX} ${LD_OPT} mode_change.o ${LDFLAGS}  \
		-luser ${LSEARCH_BSD} -o mode_change

orda_example:	orda_example.o
		${CXX} ${LD_OPT} orda_example.o ${LDFLAGS} \
		-lantenna -lconfig -luser -lm ${LSEARCH_BSD} -o orda_example

PomHeader728:	PomHeader728.o
		${CXX} ${LD_OPT} PomHeader728.o ${LDFLAGS}  \
		${LSEARCH_BSD} -o PomHeader728

sector:		sector.o
		${CXX} ${LD_OPT} sector.o ${LDFLAGS}  \
		-lantenna -lconfig -luser -lm -o sector

ss_test:	ss_test.o
		${CXX} ${LD_OPT} ss_test.o ${LDFLAGS}  \
		-lmisc -lconfig -luser -lm ${LSEARCH_BSD} -o ss_test

TapeInv723:	TapeInv723.o
		${CXX} ${LD_OPT} TapeInv723.o ${LDFLAGS}  \
		${LSEARCH_BSD} -o TapeInv723

tdwr_sim:	tdwr_sim.o
		${CXX} ${LD_OPT} tdwr_sim.o ${LDFLAGS}  \
		-lmisc -lconfig -luser -lm ${LSEARCH_BSD} -o tdwr_sim

track_sim:	track_sim.o
		${CXX} ${LD_OPT} track_sim.o ${LDFLAGS}  \
		-lmisc -luser -lm -o track_sim

upi_rcv:	upi_rcv.o
		${CXX} ${LD_OPT} upi_rcv.o ${LDFLAGS}  \
		 ${LSEARCH_BSD} -o upi_rcv

upi_xmt:	upi_xmt.o
		${CXX} ${LD_OPT} upi_xmt.o ${LDFLAGS}  \
		 ${LSEARCH_BSD} -luser -o upi_xmt

version:	version.o
		${CXX} ${LD_OPT} version.o ${LDFLAGS}  \
		 -lmisc -ldspi -luser -lm ${LSEARCH_BSD} -o version

vcor_on:	vcor_on.o
		${CXX} ${LD_OPT} vcor_on.o ${LDFLAGS}  \
		 ${LSEARCH_BSD} -o vcor_on

MKDEPEND_CSRCS = \
		ant_example.C beam_blockage.C change_product.C change_raw.C crab.C \
		interference.C llwas_sim.C mode_change.C orda_example.C PomHeader728.C \
		sector.C TapeInv723.C tdwr_sim.C upi_rcv.C upi_xmt.C version.C \
		vcor_on.C 
depend:; ${MKDEPEND}

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

ant_example.o: ../../include/sigtypes.h ../../include/signoarch.h
ant_example.o: ../../include/user_lib.h ../../include/antenna_lib.h
beam_blockage.o: ../../include/sigtypes.h ../../include/signoarch.h
beam_blockage.o: ../../include/user_lib.h
change_product.o: ../../include/sigtypes.h ../../include/signoarch.h
change_product.o: ../../include/headers.h ../../include/product.h
change_product.o: ../../include/user_lib.h ../../include/dsp_lib.h
change_raw.o: ../../include/sigtypes.h ../../include/signoarch.h
change_raw.o: ../../include/dsp.h ../../include/setup.h
change_raw.o: ../../include/headers.h ../../include/iris_task.h
change_raw.o: ../../include/ingest.h ../../include/product.h
change_raw.o: ../../include/user_lib.h ../../include/dsp_lib.h
change_raw.o: ../../include/misc_lib.h
crab.o: ../../include/sigtypes.h ../../include/signoarch.h
crab.o: ../../include/user_lib.h
interference.o: ../../include/sigtypes.h ../../include/signoarch.h
interference.o: ../../include/himath_lib.h ../../include/user_lib.h
llwas_sim.o: ../../include/sigtypes.h ../../include/signoarch.h
llwas_sim.o: ../../include/signetwork.h ../../include/headers.h
llwas_sim.o: ../../include/setup.h ../../include/product.h
llwas_sim.o: ../../include/user_lib.h ../../include/config_lib.h
llwas_sim.o: ../../include/misc_lib.h
mode_change.o: ../../include/sigtypes.h ../../include/signoarch.h
mode_change.o: ../../include/signetwork.h ../../include/user_lib.h
orda_example.o: ../../include/sigtypes.h ../../include/signoarch.h
orda_example.o: ../../include/user_lib.h ../../include/antenna_lib.h
PomHeader728.o: ../../include/sigtypes.h ../../include/signoarch.h
sector.o: ../../include/sigtypes.h ../../include/signoarch.h
sector.o: ../../include/user_lib.h ../../include/antenna_lib.h
tdwr_sim.o: ../../include/sigtypes.h ../../include/signoarch.h
tdwr_sim.o: ../../include/signetwork.h ../../include/projection.h
tdwr_sim.o: ../../include/headers.h ../../include/setup.h
tdwr_sim.o: ../../include/product.h ../../include/user_lib.h
tdwr_sim.o: ../../include/config_lib.h ../../include/misc_lib.h
upi_rcv.o: ../../include/sigtypes.h ../../include/signoarch.h
upi_rcv.o: ../../include/signetwork.h
upi_xmt.o: ../../include/sigtypes.h ../../include/signoarch.h
upi_xmt.o: ../../include/signetwork.h ../../include/user_lib.h
version.o: ../../include/sigtypes.h ../../include/signoarch.h
version.o: ../../include/dsp.h ../../include/setup.h ../../include/headers.h
version.o: ../../include/iris_task.h ../../include/ingest.h
version.o: ../../include/product.h ../../include/user_lib.h
version.o: ../../include/misc_lib.h
