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


1.19
date	97.01.04.20.21.32;	author morgan;	state Exp;
branches;
next	1.18;

1.18
date	96.12.01.03.34.40;	author morgan;	state Exp;
branches;
next	1.17;

1.17
date	96.11.10.20.20.15;	author morgan;	state Exp;
branches;
next	1.16;

1.16
date	96.09.05.06.20.45;	author morgan;	state Exp;
branches;
next	1.15;

1.15
date	96.08.09.05.38.28;	author morgan;	state Exp;
branches;
next	1.14;

1.14
date	96.07.08.00.00.33;	author morgan;	state Exp;
branches;
next	1.13;

1.13
date	96.06.24.05.46.41;	author morgan;	state Exp;
branches;
next	1.12;

1.12
date	96.06.02.08.04.56;	author morgan;	state Exp;
branches;
next	1.11;

1.11
date	96.05.26.04.48.08;	author morgan;	state Exp;
branches;
next	1.10;

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

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

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

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

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

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

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

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

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

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


desc
@makefile for modules contained in this package
@


1.19
log
@moved responsibility of conditional compilation to modules (more flexible)
@
text
@# $Id: Makefile,v 1.18 1996/12/01 03:34:40 morgan Exp morgan $
#
# Makefile
#
# This makefile controls the build process of shared and static PAM modules.
#
# $Log: Makefile,v $
# Revision 1.18  1996/12/01 03:34:40  morgan
# update for .54
#
# Revision 1.17  1996/11/10 20:20:15  morgan
# cross platform support and new modules
#
# Revision 1.16  1996/09/05 06:20:45  morgan
# added two modules: listfile and shells
#
# Revision 1.15  1996/08/09 05:38:28  morgan
# added new/proposed modules.
# fixed makefile installation dependencies
#
# Revision 1.14  1996/07/08 00:00:33  morgan
# added wheel and group modules
#

MODDIRS=\
	pam_afs \
	pam_afstok \
	pam_cracklib \
	pam_deny \
	pam_desgold \
	pam_filter \
	pam_ftp \
	pam_group \
	pam_kerberos \
	pam_krb4 \
	pam_lastlog \
	pam_listfile \
	pam_limits \
	pam_mail \
	pam_nologin \
	pam_opie \
	pam_passwd+ \
	pam_permit \
	pam_pwdb \
	pam_radius \
	pam_rhosts \
	pam_rootok \
	pam_securetty \
	pam_shells \
	pam_sid \
	pam_skey \
	pam_skey2 \
	pam_stress \
	pam_time \
	pam_unix \
	pam_warn \
	pam_wheel


# ////////////////////////////////////////////////////
# // You should not modify anything below this line //
# ////////////////////////////////////////////////////

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

# -----------------------------------------------------------

all:	
	@@echo modules for $(OS) are:
	@@ls -d $(MODDIRS) 2>/dev/null ; echo :--------
	@@echo
ifdef STATIC
	rm -f ./_static_module_*
endif
	@@for i in $(MODDIRS) ; do \
		if [ -d $$i ]; then { \
		   $(MAKE) -C $$i all ; \
		   if [ $$? -ne 0 ]; then exit 1 ; fi ; \
		} elif [ -f ./.$$i ]; then { \
		   cat ./.$$i ; \
		} fi \
	done

install:
	for i in $(MODDIRS) ; do \
		if [ -d $$i ]; then { \
		$(MAKE) -C $$i install ; \
		if [ $$? -ne 0 ]; then exit 1 ; fi ; \
		} fi ; \
	done

remove:
	for i in $(MODDIRS) ; do \
		if [ -d $$i ]; then { \
			$(MAKE) -C $$i remove ; \
		} fi \
	done

lclean:
	rm -f _static_module_*

clean: lclean
	for i in $(MODDIRS) ; do \
		if [ -d $$i ]; then { \
			$(MAKE) -C $$i clean ; \
		} fi \
	done 

extraclean: lclean
	for i in $(MODDIRS) ; do \
		if [ -d $$i ]; then \
			$(MAKE) -C $$i extraclean ; \
		fi ; \
	done

@


1.18
log
@update for .54
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.17 1996/11/10 20:20:15 morgan Exp morgan $
d8 3
a24 1

d26 3
d31 1
d35 2
d38 2
d42 1
a58 19
#
# if you have libcrack installed you can add the following:
MODDIRS += \
	pam_cracklib
#

#
# some OS's don't like certain modules...
#
EXTRAMODS=\
	pam_filter \
	pam_limits \
	pam_limit \
	pam_passwd+

ifeq ($(OS),solaris)
else
	MODDIRS += $(EXTRAMODS)
endif
d65 1
a65 1
	@@echo	"*** This is not a top-level Makefile!"
d78 1
a78 1
		   make -C $$i all ; \
d88 1
a88 1
		make -C $$i install ; \
d96 1
a96 1
			make -C $$i remove ; \
d106 1
a106 1
			make -C $$i clean ; \
d113 1
a113 1
			make -C $$i extraclean ; \
@


1.17
log
@cross platform support and new modules
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.16 1996/09/05 06:20:45 morgan Exp morgan $
d8 3
d26 1
d34 1
d45 1
d79 1
a79 1
	@@echo $(MODDIRS)
d84 1
a84 1
	for i in $(MODDIRS) ; do \
@


1.16
log
@added two modules: listfile and shells
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.15 1996/08/09 05:38:28 morgan Exp morgan $
d8 3
d19 2
a20 1
MODDIRS = \
a22 1
	pam_filter \
d26 2
a27 1
	pam_passwd+ \
d29 1
d36 1
d42 20
d72 3
@


1.15
log
@added new/proposed modules.
fixed makefile installation dependencies
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.14 1996/07/08 00:00:33 morgan Exp morgan $
d8 4
d22 1
d28 1
@


1.14
log
@added wheel and group modules
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.13 1996/06/24 05:46:41 morgan Exp morgan $
d8 2
a9 8
# Revision 1.13  1996/06/24 05:46:41  morgan
# added pam_terminal and pam_time to the list of known modules
#
# Revision 1.12  1996/06/02 08:04:56  morgan
# changes to install and remove -- pass the includedir
#
# Revision 1.11  1996/05/26 04:48:08  morgan
# static and dynamic are env variables
a12 1
	pam_terminal \
d14 1
d22 2
a34 1

d45 1
a45 2
		   make -C $$i all "CC=$(CC)" "CFLAGS=$(CFLAGS)" "AR=$(AR)" \
		   "LD=ld" "RANLIB=$(RANLIB)"; \
d55 1
a55 3
		make -C $$i install "CC=$(CC)" "CFLAGS=$(CFLAGS)" "AR=$(AR)" \
		"LD=ld" "RANLIB=$(RANLIB)" "SECUREDIR=$(SECUREDIR)" \
		"INCLUDEDIR=$(INCLUDEDIR)" ; \
d63 1
a63 2
			make -C $$i remove \
			"INCLUDEDIR=$(INCLUDEDIR)" "SECUREDIR=$(SECUREDIR)"; \
@


1.13
log
@added pam_terminal and pam_time to the list of known modules
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.12 1996/06/02 08:04:56 morgan Exp morgan $
d8 3
d22 1
d32 1
@


1.12
log
@changes to install and remove -- pass the includedir
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.11 1996/05/26 04:48:08 morgan Exp morgan $
d8 3
d16 1
d26 1
@


1.11
log
@static and dynamic are env variables
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.10 1996/05/26 04:39:11 morgan Exp morgan $
d8 2
a9 10
# Revision 1.10  1996/05/26 04:39:11  morgan
# clean up _static_... on extraclean sweep
#
# Revision 1.9  1996/05/26 03:59:28  morgan
# made static and dynamic env variables inherited from parent makefile
#
# Revision 1.8  1996/05/21 04:53:37  morgan
# reformatted MODDIRS list to be easier to read
#
#
d52 2
a53 1
		"LD=ld" "RANLIB=$(RANLIB)"; \
d61 2
a62 1
			make -C $$i remove "SECUREDIR=$(SECUREDIR)"; \
d68 1
a68 1
	
@


1.10
log
@clean up _static_... on extraclean sweep
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.9 1996/05/26 03:59:28 morgan Exp morgan $
d8 3
a48 1
		   "DYNAMIC=$(DYNAMIC)" "STATIC=$(STATIC)" \
a59 1
		"DYNAMIC=$(DYNAMIC)" "STATIC=$(STATIC)" \
@


1.9
log
@made static and dynamic env variables inherited from parent makefile
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.8 1996/05/21 04:53:37 morgan Exp morgan $
d8 3
d71 1
a71 1
clean:	
d73 2
d81 1
a81 1
extraclean:
@


1.8
log
@reformatted MODDIRS list to be easier to read
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.7 1996/05/11 08:07:08 morgan Exp morgan $
d8 3
a13 8
dummy:

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

# ////////////////////////////////////////////////////
# // You should not modify anything below this line //
# ////////////////////////////////////////////////////

d20 1
a21 1
	pam_rhosts \
d26 9
d37 3
d43 1
d51 1
a51 1
install: all
d55 1
d69 1
@


1.7
log
@added hooks for three new modules
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.6 1996/05/02 06:08:00 morgan Exp morgan $
a7 11
# Revision 1.6  1996/05/02 06:08:00  morgan
# fixed minor install bug
#
# Revision 1.5  1996/05/02 05:40:29  morgan
# added some .XXX files to give info about who is working on modules
# that have been registered, but are not included in this release
#
# Revision 1.4  1996/05/02 04:49:34  morgan
# made module compilation conditional on the existence of the module
# directory. This should make it easier to insert experimental modules
# in the privacy of your own home...
d19 12
a30 2
MODDIRS = pam_test pam_unix pam_permit pam_deny pam_stress pam_filter \
	pam_skey pam_kerberos pam_rootok pam_rhosts pam_passwd+
@


1.6
log
@fixed minor install bug
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.5 1996/05/02 05:40:29 morgan Exp morgan $
d8 3
d31 1
a31 1
	pam_skey pam_kerberos
@


1.5
log
@added some .XXX files to give info about who is working on modules
that have been registered, but are not included in this release
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.4 1996/05/02 04:49:34 morgan Exp morgan $
d8 4
d46 2
a47 2
		if [ $$? -ne 0 ]; then exit 1 ; fi \
		fi \
@


1.4
log
@made module compilation conditional on the existence of the module
directory. This should make it easier to insert experimental modules
in the privacy of your own home...
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.3 1996/04/07 05:39:59 morgan Exp morgan $
d8 4
a11 2
# Revision 1.3  1996/04/07 05:39:59  morgan
# added pam_filter
a12 10
# Revision 1.2  1996/03/16 22:27:12  morgan
# added 'make remove' option
# added new modules: pam_permit pam_deny pam_stress
# added failure detection for 'make (all|install)'
#
# Revision 1.1  1996/03/09 09:08:04  morgan
# Initial revision
#
# Revision 1.1  1996/02/06 22:45:25  alex
# Initial revision
d32 2
d43 1
a43 1
		} fi \
@


1.3
log
@added pam_filter
@
text
@d1 1
a1 1
# $Id: Makefile,v 1.2 1996/03/16 22:27:12 morgan Exp morgan $
d8 3
d31 2
a32 1
MODDIRS = pam_test pam_unix pam_permit pam_deny pam_stress pam_filter
d36 5
a40 3
		make -C $$i all "CC=$(CC)" "CFLAGS=$(CFLAGS)" "AR=$(AR)" \
		"LD=ld" "RANLIB=$(RANLIB)"; \
		if [ $$? -ne 0 ]; then exit 1 ; fi \
d45 1
d49 1
d54 3
a56 1
		make -C $$i remove "SECUREDIR=$(SECUREDIR)"; \
a59 1

d61 3
a63 1
		make -C $$i clean ; \
a65 1

a66 1

d68 3
a70 1
		make -C $$i extraclean	; \
@


1.2
log
@added 'make remove' option
added new modules: pam_permit pam_deny pam_stress
added failure detection for 'make (all|install)'
@
text
@d1 1
a1 1
# $Id$
d8 5
d28 1
a28 1
MODDIRS = pam_test pam_unix pam_permit pam_deny pam_stress
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Header: /home/alex/PAM/pam-0.1/modules/RCS/Makefile,v 1.1 1996/02/06 22:45:25 alex Exp alex $
d8 3
d23 1
a23 1
MODDIRS = pam_test pam_unix
d29 1
d35 7
a41 1
		"LD=ld" "RANLIB=$(RANLIB)" "SECUREDIR=$(SECUREDIR)"; \
@
