SUFFIXES=. .b .a .o .c .h
CFLAGS= -g -c -y -G -Aa -z -D __HPUX_D__ -D _HPUX_SOURCE +DA1.0
LINK=cc $< $@ -o $<

OBJS= message.o libro.o socket.o support.o
OBJSCLIENT=client.o $(OBJS)
OBJSSERVER=server.o main.o hstdio.o $(OBJS)

all: client server

libro.o              : libro.c       libro.h
hstdio.o : hstdio.c      hstdio.h
main.o          : main.c 
message.o      : message.c     message.h
server.o       : server.c      server.h         system.h
socket.o       : socket.c      socket.h
support.o       : support.c     support.h
client.o       : client.c 
client               : $(OBJSCLIENT)
	cc $(OBJSCLIENT) -o client 
server           : $(OBJSSERVER)
	cc $(OBJSSERVER) -o server