head	1.10;
access;
symbols;
locks; strict;
comment	@# @;


1.10
date	96.11.10.19.50.59;	author morgan;	state Exp;
branches;
next	1.9;

1.9
date	96.05.26.03.47.59;	author morgan;	state Exp;
branches;
next	1.8;

1.8
date	96.05.02.04.42.46;	author morgan;	state Exp;
branches;
next	1.7;

1.7
date	96.04.14.18.18.18;	author morgan;	state Exp;
branches;
next	1.6;

1.6
date	96.04.14.18.15.50;	author morgan;	state Exp;
branches;
next	1.5;

1.5
date	96.04.07.05.37.36;	author morgan;	state Exp;
branches;
next	1.4;

1.4
date	96.03.10.19.22.21;	author morgan;	state Exp;
branches;
next	1.3;

1.3
date	96.03.10.02.34.07;	author morgan;	state Exp;
branches;
next	1.2;

1.2
date	96.03.09.20.26.01;	author morgan;	state Exp;
branches;
next	1.1;

1.1
date	96.03.09.08.55.28;	author morgan;	state Exp;
branches;
next	;


desc
@Make file for all the example programs (currently only one)
@


1.10
log
@added rules for check_user
@
text
@#
# $Id: Makefile,v 1.9 1996/05/26 03:47:59 morgan Exp morgan $
#

dummy:

	@@echo	"*** This is not a top level Makefile!"

PROGS = blank xsh check_user
SRCS = blank.c xsh.c check_user.c

# have removed the following pair since they no longer conform to
# any recognized conventions: vpass test
# ditto: vpass.c test.c

PROGSUID =

all: $(PROGS)

check_user: check_user.o
	$(CC) $(CFLAGS) -o $@@ $< $(LOADLIBES)

blank: blank.o
	$(CC) $(CFLAGS) -o $@@ $< $(LOADLIBES)

xsh: xsh.o
	$(CC) $(CFLAGS) -o $@@ $< $(LOADLIBES)

install: all
	if [ -n "$(PROGS)" ]; then cp $(PROGS) ../bin ; fi
	if [ -n "$(PROGSUID)" ]; then \
		$(INSTALL) -m 4555 -o root -g bin $(PROGSUID) ../bin ; fi

clean:
	rm -f *.a *.so *.o *~ $(PROGS) $(PROGSUID)

remove:
	cd ../bin ; rm -f $(PROGS) $(PROGSUID)

extraclean: clean
	rm -f *.a *.out *.o *.so
	for x in $(PROGS) $(PROGSUID) ; do rm -f ../bin/$$x ; done
@


1.9
log
@made LOADLIBES an env variable from above
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.8 1996/05/02 04:42:46 morgan Exp morgan $
d9 2
a10 2
PROGS = blank xsh 
SRCS = blank.c xsh.c
d20 3
d32 1
a32 1
		install -m 4555 -o root -g bin $(PROGSUID) ../bin ; fi
@


1.8
log
@removed vpass from make, since it doesn't really work and is unlikely
to be used again.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.7 1996/04/14 18:18:18 morgan Exp morgan $
a8 2
LOADLIBES = $(PAMLIB) -L../libmisc -lmisc -ldl

d18 7
a24 6
all: $(SRCS)
	for i in $(PROGS) $(PROGSUID); do \
		if [ ! -x "$$i" ] || [ "$$i".c -nt "$$i" ]; then \
			$(CC) $(CFLAGS) -o $$i $$i.c $(LOADLIBES) ; \
		fi ; \
	done
d37 1
a37 2
extraclean:
	@@make clean
@


1.7
log
@clean up the PROGSUID programs too!
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.6 1996/04/14 18:15:50 morgan Exp morgan $
d9 1
a9 1
LOADLIBES = $(PAMLIB) -ldl
d11 8
a18 3
PROGS = vpass blank xsh
SRCS = vpass.c blank.c xsh.c su.c
PROGSUID = su
d28 3
a30 2
	cp $(PROGS) ../bin
	install -m 4555 -o root -g bin $(PROGSUID) ../bin
d34 3
@


1.6
log
@added the 'su' application and broke the "PROGS" into normal and
"PROGSUID" ones..
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.5 1996/04/07 05:37:36 morgan Exp morgan $
d27 1
a27 1
	rm -f *.a *.so *.o *~ $(PROGS)
d32 1
a32 1
	for x in $(PROGS); do rm -f ../bin/$$x ; done
@


1.5
log
@added xsh which is the same as blank but invokes /bin/sh after you
enter the password.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.4 1996/03/10 19:22:21 morgan Exp morgan $
d12 2
a13 1
SRCS = vpass.c blank.c xsh.c
d16 1
a16 1
	for i in $(PROGS) ; do \
d24 1
@


1.4
log
@now extraclean'ing up binaries in ../bin from here
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1996/03/10 02:34:07 morgan Exp morgan $
d11 2
a12 2
PROGS = vpass blank
SRCS = vpass.c blank.c
@


1.3
log
@added blank application
@
text
@d2 1
a2 1
# $Id$
d30 1
a30 1

@


1.2
log
@use PAMLIB variable to compile with shared library
@
text
@d1 3
a3 1
# $Header: /home/morgan/pam/Linux-PAM-0.21/examples/RCS/Makefile,v 1.1 1996/03/09 08:55:28 morgan Exp morgan $
d11 2
a12 2
PROGS = vpass
SRCS = vpass.c
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Header$
a6 1
PAMLIB = ../libpam/libpam.a
d10 1
d12 6
a17 1
all: $(PROGS)
@
