LIBNAME=	libta
#
# ZMailer routines destined for the system C library
#
SHELL=		/bin/sh
CC=		gcc #-traditional
COPTS=		-g -O
DEFS=	-DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_ALLOCA_H #-DXMEM -DMALLOC_TRACE
RANLIB=		ranlib # : ar does the work of ranlib under System V
#
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 # 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 # 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
