# # $Id: Makefile,v 1.4 1997/02/24 06:00:46 morgan Exp $ # dummy: @echo "*** This is not a top level Makefile!" PROGS = checkpam PROGSUID = SRCS = checkpam.c checkpam_conv.c ISRCS=setcred.-c make_env.-c wait4shell.-c ESRCS=$(addprefix ../inc/,$(ISRCS)) all: $(PROGS) checkpam: $(SRCS) $(ESRCS) $(CC) $(CFLAGS) -o checkpam checkpam.c checkpam_conv.c $(LOADLIBES) install: all if [ -n "$(PROGS)" ]; then \ strip $(PROGS) ; \ cp $(PROGS) ../../bin ; \ fi if [ -n "$(PROGSUID)" ]; then \ strip $(PROGSUID) ; \ install -m 4555 -o root -g bin $(PROGSUID) ../../bin ; \ fi remove: cd ../../bin ; rm -f $(PROGS) $(PROGSUID) lclean: rm -f *.a *.so *.o *~ $(PROGS) $(PROGSUID) clean: lclean extraclean: lclean rm -f *.a *.out *.o *.so for x in $(PROGS) $(PROGSUID) ; do rm -f ../../bin/$$x ; done