#
# This is set up for OpenWindows installed in the standard locations.
# Note that it must be compiled under ANSI C
#

CC=cc
QLIB=../qlib

CFLAGS  = -I$(QLIB) -g
CDIR	= ../comserv/comserv
CINC	= ../comserv/include
PJLIB	= ../pjlib

DOBJS	= $(CDIR)/cfgutil.o $(CDIR)/mmutil.o $(CDIR)/seedutil.o $(CDIR)/service.o $(CDIR)/stuff.o $(CDIR)/timeutil.o syserr.o

DLIBS	= -lnsl -lsocket -lposix4

datasock: datasock.o ${DOBJS}
	${CC} ${CFLAGS} ${DOBJS} -I${CINC} datasock.o -o datasock $(DLIBS)

datasock.o:
	${CC} ${CFLAGS} ${DOBJS} -I${CINC} -c datasock.c 

syserr.o:${PJLIB}/syserr.c
	${CC} -c ${PJLIB}/syserr.c

