#

# Make sure that these correctly indicate where the server source and bin
# directories are:
SERVDIR = ../src
BINDIR = ../bin

# This can also be set to gcc
CC = gcc

# If you're on a SysV type system, put -DSYSV here:
#CFLAGS = -O -I${SERVDIR}
# Uncomment this line if youre on an HP/UX system:
#CFLAGS = -O -Aa -I${SERVDIR} -DSYSV -D_HPUX_SOURCE
#CFLAGS = -O -Aa -I${SERVDIR} -DSYSV -D_HPUX_SOURCE -DHAVE_RAND48
#
# Uncomment this line if you are on a SysV type system.
# -DRANKS2 is for the PIPPIN RANKS. -DCASSROYALTY is for the CASSIUS Royalty.
#
CFLAGS = -O -I${SERVDIR} -DSYSV -DHAVE_RAND48 -DRANKS2 -DCASSROYALTY
#
OBJS = data.o db.o file.o interface.o main.o


all: pped

pped: ${OBJS}
	${CC} ${CFLAGS} -o $@ ${OBJS} -lm -ltermcap

clean:
	rm -f *.o *.bak core pped

install: ${BINDIR}/pped

${BINDIR}/pped: pped
	-mv ${BINDIR}/pped ${BINDIR}/pped.old
	-rm -f ${BINDIR}/pped.old
	cp pped ${BINDIR}/pped
	-chmod 700 ${BINDIR}/pped

