LIBNAME=	libident

srcdir = .



SHELL=		/bin/sh
CC=		gcc
COPTS=		-g -O2
CPPDEP=		gcc -MM
CPPFLAGS=	
DEFS=		-DHAVE_CONFIG_H
TOPDIR=		..
RANLIB=		ranlib
INSTALL=	/usr/bin/install -c
#
INCL=		-I$(srcdir)/$(TOPDIR)/include -I$(TOPDIR)/include -I$(TOPDIR)
CFLAGS=		$(COPTS) $(CPPFLAGS) $(DEFS) $(INCL) 
#
OBJS=	identuser.o

SOURCE=	identuser.c

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

.c.o:
	$(CC) $(CFLAGS) -c $<

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

lintlib:	llib-l$(LIBNAME).ln

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

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

clean mostlyclean:
	-rm -f $(TOPDIR)/libs/$(LIBNAME).a make.log
	-rm -f *.o *.out *.ln *~

distclean: clean
	-rm -f Makefile

depend:
	CPPDEP="${CPPDEP}" CPPOPT="$(CFLAGS)" $(TOPDIR)/bin/mkdep -s $(srcdir) $(SOURCE)

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

identuser.c: identuser.h

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
