# Makefile for oracle

# To make this program, first set TARGETDIR to something appropriate.
# You may want to change LIBDIR and CFLAGS as well.
# Then 'make all'.

TARGETDIR = /usr5/kinzler/fun/bin
LIBDIR = /usr5/kinzler/link/nfs
CFLAGS = -DORACLEDIR=\"${LIBDIR}\"
# -DDEBUG and -DLOG are optional.
# -DDEBUG causes extra diagnostics to be run, and
# -DLOG causes old files to be left around.

all: ${TARGETDIR}/oracle ${LIBDIR}

${TARGETDIR}/oracle : oracle.c
	cc -o ${TARGETDIR}/oracle ${CFLAGS} oracle.c
	chmod u+s ${TARGETDIR}/oracle

${LIBDIR} :
	mkdir ${LIBDIR}
