CFLAGS = -I. 
#CFLAGS = -DSOLARIS -I.
#use the prevoius line (instead of the one before it) if compiling under Solaris
#CFLAGS = -D_AIX -DAIXV=32 -I. 
# Use the previous line (instead of any of the lines before it) if compiling under
#	AIX 3.2

SRCS = hesiod.c hespwnam.c hesmailhost.c hesservbyname.c resolve.c cistrcmp.c 
OBJS = hesiod.o hespwnam.o hesmailhost.o hesservbyname.o resolve.o cistrcmp.o 

all: libhesiod.a hesinfo

libhesiod.a: $(OBJS)
	ar rc $@ ${OBJS}
	ar ts $@
# use the next line if the previous one fails.
#	ranlib $@

hesinfo: hesinfo.o
	${CC} -o hesinfo hesinfo.o libhesiod.a 
#	${CC} -o hesinfo hesinfo.o libhesiod.a -lresolv -lucb -lelf
#use the prevoius line (instead of the one before it) if compiling under Solaris

clean:
	rm -f *.o libhesiod.a hesinfo
