# $Id: Makefile,v 1.1.1.1 1995/05/11 19:48:06 vetter Exp $

include ./Project.mak
DEFS	= $(ARCH)
INCS	= -I../pbio
LIBS	= ../pbio/libIO.a
RANLIB	= ranlib
SRCS=\
	hubcli.c \
	hubserv.c \
	server.c \
	dll.c \
	hash.c \
	common.c \
	client.c

all:	 hubserver hubclient

clean::
	rm -f hub.a hubserver hubclient

hub.a: $(OBJS)
	$(RM) $@
	ar clqv $@ $(OBJS)
	$(RANLIB) $@

COMMONOBJS=dll.o common.o hash.o

SEROBJS=server.o hubserv.o $(COMMONOBJS)
hubserver:$(SEROBJS)
	$(CC) $(INCS) $(DEFS) -o $@ $(SEROBJS) $(LIBS)

CLIOBJS=client.o hubcli.o $(COMMONOBJS)
hubclient:$(CLIOBJS)
	$(CC) $(INCS) $(DEFS) -o $@ $(CLIOBJS) $(LIBS)

dlltest: dlltest.o dll.o common.o
	$(CC) -o $@  dlltest.o dll.o common.o


freshen:
	 gindent *.[ch]

########### EOF
# DO NOT DELETE THIS LINE -- make depend depends on it.

hubcli.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
hubcli.o: /usr/include/sys/sysmacros.h /usr/include/sys/socket.h
hubcli.o: /usr/include/netinet/in.h /usr/include/netdb.h /usr/include/stdio.h
hubcli.o: /usr/include/fcntl.h /usr/include/sys/fcntlcom.h
hubcli.o: /usr/include/sys/stat.h /usr/include/errno.h
hubcli.o: /usr/include/sys/errno.h useful.h datahub.h /usr/include/sys/time.h
hubcli.o: /usr/include/sys/time.h dll.h hash.h ../pbio/io.h ioformats.h
hubserv.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
hubserv.o: /usr/include/sys/sysmacros.h /usr/include/sys/time.h
hubserv.o: /usr/include/sys/time.h /usr/include/sys/socket.h
hubserv.o: /usr/include/netinet/in.h /usr/include/netdb.h
hubserv.o: /usr/include/stdio.h /usr/include/fcntl.h
hubserv.o: /usr/include/sys/fcntlcom.h /usr/include/sys/stat.h
hubserv.o: /usr/include/errno.h /usr/include/sys/errno.h /usr/include/poll.h
hubserv.o: useful.h datahub.h dll.h hash.h ../pbio/io.h ioformats.h
server.o: datahub.h /usr/include/sys/time.h /usr/include/sys/time.h
server.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
server.o: /usr/include/sys/sysmacros.h /usr/include/sys/socket.h
server.o: /usr/include/netinet/in.h dll.h hash.h ../pbio/io.h useful.h
dll.o: dll.h useful.h
hash.o: dll.h hash.h useful.h
common.o: /usr/include/malloc.h
client.o: datahub.h /usr/include/sys/time.h /usr/include/sys/time.h
client.o: /usr/include/sys/types.h /usr/include/sys/stdtypes.h
client.o: /usr/include/sys/sysmacros.h /usr/include/sys/socket.h
client.o: /usr/include/netinet/in.h dll.h hash.h ../pbio/io.h useful.h
