#CFLAGS = -I. -Wall -Wstrict-prototypes -fomit-frame-pointer
#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 

CC = gcc
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

install: all
	install -o root -g root -m 444 libhesiod.a /usr/lib
	install -o root -g root -m 555 hesinfo /usr/athena/bin

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