LIBNAME=	libauth

SHELL=		/bin/sh
CC=		gcc #-traditional
COPTS=		-g -O
CPPDEP= gcc -MM
DEFS=	-DSTDC_HEADERS -DHAVE_STRING_H -DHAVE_ALLOCA_H #-DXMEM -DMALLOC_TRACE
RANLIB=		ranlib # : ar does the work of ranlib under System V
#
# /usr/5include is so we get the right declaration for malloc in <stdlib.h>
INCL=		-I../include
CFLAGS=		$(COPTS) $(DEFS) $(INCL)
#
OBJS=	authuser.o

SOURCE=	authuser.c

$(LIBNAME).a: ../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 ../libs/$(LIBNAME).a make.log Makefile.bak
	-rm -f *.o *.out *.ln *~

depend:
	CPPDEP="${CPPDEP}" ../bin/mklibdep $(CFLAGS) $(SOURCE)

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

authuser.c: authuser.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
