LIBNAME=	libta
#
# ZMailer routines destined for the system C library
#
SHELL=		/bin/sh
CC= cc -migrate  # OSF/1 better compiler..
COPTS= -O4 -inline size -std1 -DSTDC_HEADERS  # OSF/1 cc -migrate
DEFS= #-migrate #-D_BSD
TOPDIR=		../..
RANLIB=		ranlib
#
INCL=		-I../../include
CFLAGS=		$(COPTS) $(DEFS) $(INCL)
#
OBJS=	markoff.o warning.o lockaddr.o myuucpname.o wantout.o \
	stringlib.o prversion.o diagnostic.o emptyline.o \
	ctlopen.o routermxes.o writeheaders.o mimeheaders.o \
	buildbndry.o dnsgetrr.o mime2headers.o # esyslib.o
SOURCE=	markoff.c warning.c lockaddr.c myuucpname.c wantout.c \
	stringlib.c prversion.c diagnostic.c emptyline.c \
	ctlopen.c routermxes.c writeheaders.c mimeheaders.c \
	buildbndry.c dnsgetrr.c mime2headers.c # esyslib.c

$(LIBNAME).a: ../../libs/$(LIBNAME).a

.PRECIOUS: ../../libs/$(LIBNAME).a

../../libs/$(LIBNAME).a:  $(SOURCE)
	$(CC) $(CFLAGS) -c $?
	ar rv $@ *.o
	-rm -f *.o
	$(RANLIB) $@

lintlib:	llib-l$(LIBNAME).ln

llib-l$(LIBNAME).ln:	$(SOURCE)
	lint -o $(LIBNAME) $(INCL) *.c

lint:
	lint -u $(DEFS) $(INCL) $(SOURCE)

clean:
	-rm -f $(LIBNAME).a make.log Makefile.bak
	-rm -f *.o *.out *.ln

depend:
	../../bin/mklibdep $(CFLAGS) $(SOURCE)

# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
