LIBNAME=	libauth

SHELL=		/bin/sh
CC= cc -migrate  # OSF/1 better compiler..
COPTS= -O4 -inline size -std1 -DSTDC_HEADERS  # OSF/1 cc -migrate
CPPDEP=cc -M
DEFS= #-migrate #-D_BSD
TOPDIR=..
RANLIB=		ranlib
#
# /usr/5include is so we get the right declaration for malloc in <stdlib.h>
INCL=		-I$(TOPDIR)/include
CFLAGS=		$(COPTS) $(DEFS) $(INCL)
#
OBJS=	authuser.o

SOURCE=	authuser.c

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

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

depend:
	CPPDEP="${CPPDEP}" $(TOPDIR)/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
