# 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../../libs/lib -L${IRIS_ROOT}/libs/lib ${LPATH_X11}

EXES = nexrad_example
INSTALLS = 

all : ${EXES}

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

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

MKDEPEND_CSRCS = nexrad_example.C

depend: makefile.d

makefile.d:
	touch makefile.d
	makedepend -fmakefile.d -- ${CFLAGS} -- ${MKDEPEND_CSRCS}

cleanexe:;	rm -f ${EXES} core
clean:		cleanexe
		rm -f *.o *.usg *.cat* *.d *.d.bak

-include makefile.d
