# $Header$
#
# This Makefile controls a build process of pam_test module for
# Linux-PAM. You should not modify this Makefile.
#
# $Log$
#
# Modified by Andrew Morgan <morgan@physics.ucla.edu> 1996/3/6
#

LIBTESTSH = pam_test.so
LIBSTATIC = libpam_test.a

LIBTESTOBJ = pam_test.o
LIBTESTSRC = pam_test.c

LIBOBJ = $(LIBTESTOBJ)
LIBSRC = $(LIBTESTSRC)

LIBSHARED = $(LIBTESTSH)

####################### don't edit below #######################

dummy:

	@echo "**** This is not a top-level Makefile "
	exit

all: $(LIBSHARED) $(LIBSTATIC)

$(LIBTESTSH):	$(LIBTESTOBJ)
		$(LD) -x --shared -o $@ $(LIBTESTOBJ)

$(LIBSTATIC): $(LIBOBJ)
	$(AR) $@ $(LIBOBJ)
	$(RANLIB) $@

install: all
	mkdir -p $(SECUREDIR)
	install -m644 $(LIBSHARED) $(SECUREDIR)

clean:
	rm -f $(LIBSHARED) $(LIBSTATIC) $(LIBOBJ) a.out core *~

extraclean:

	@make clean
	rm -f *.a *.out *.o *.so *.bak

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

