head	1.2;
access;
symbols
	RELENG_4_11_0_RELEASE:1.1.1.1.6.2
	RELENG_4_11:1.1.1.1.6.2.0.16
	RELENG_4_11_BP:1.1.1.1.6.2
	RELENG_4_10_0_RELEASE:1.1.1.1.6.2
	RELENG_4_10:1.1.1.1.6.2.0.14
	RELENG_4_10_BP:1.1.1.1.6.2
	RELENG_4_9_0_RELEASE:1.1.1.1.6.2
	RELENG_4_9:1.1.1.1.6.2.0.12
	RELENG_4_9_BP:1.1.1.1.6.2
	RELENG_4_8_0_RELEASE:1.1.1.1.6.2
	RELENG_4_8:1.1.1.1.6.2.0.10
	RELENG_4_8_BP:1.1.1.1.6.2
	RELENG_4_7_0_RELEASE:1.1.1.1.6.2
	RELENG_4_7:1.1.1.1.6.2.0.8
	RELENG_4_7_BP:1.1.1.1.6.2
	RELENG_4_6_2_RELEASE:1.1.1.1.6.2
	RELENG_4_6_1_RELEASE:1.1.1.1.6.2
	RELENG_4_6_0_RELEASE:1.1.1.1.6.2
	RELENG_4_6:1.1.1.1.6.2.0.6
	RELENG_4_6_BP:1.1.1.1.6.2
	RELENG_4_5_0_RELEASE:1.1.1.1.6.2
	RELENG_4_5:1.1.1.1.6.2.0.4
	RELENG_4_5_BP:1.1.1.1.6.2
	RELENG_4_4_0_RELEASE:1.1.1.1.6.2
	RELENG_4_4:1.1.1.1.6.2.0.2
	RELENG_4_4_BP:1.1.1.1.6.2
	morgan_0_75:1.1.1.2
	RELENG_4_3_0_RELEASE:1.1.1.1
	RELENG_4_3:1.1.1.1.0.8
	RELENG_4_3_BP:1.1.1.1
	RELENG_4_2_0_RELEASE:1.1.1.1
	RELENG_4_1_1_RELEASE:1.1.1.1
	PRE_SMPNG:1.1.1.1
	RELENG_4_1_0_RELEASE:1.1.1.1
	RELENG_3_5_0_RELEASE:1.1.1.1
	RELENG_4_0_0_RELEASE:1.1.1.1
	RELENG_4:1.1.1.1.0.6
	RELENG_4_BP:1.1.1.1
	RELENG_3_4_0_RELEASE:1.1.1.1
	RELENG_3_3_0_RELEASE:1.1.1.1
	RELENG_3_2_PAO:1.1.1.1.0.4
	RELENG_3_2_PAO_BP:1.1.1.1
	RELENG_3_2_0_RELEASE:1.1.1.1
	RELENG_3_1_0_RELEASE:1.1.1.1
	RELENG_3:1.1.1.1.0.2
	RELENG_3_BP:1.1.1.1
	pam_unpruned:1.1.1.1
	morgan_0_65:1.1.1.1
	MORGAN:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2002.03.08.13.03.39;	author des;	state dead;
branches;
next	1.1;

1.1
date	98.11.18.01.16.19;	author jdp;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.11.18.01.16.19;	author jdp;	state Exp;
branches
	1.1.1.1.6.1;
next	1.1.1.2;

1.1.1.2
date	2001.05.03.09.36.02;	author markm;	state Exp;
branches;
next	;

1.1.1.1.6.1
date	2001.06.07.09.07.28;	author markm;	state Exp;
branches;
next	1.1.1.1.6.2;

1.1.1.1.6.2
date	2001.06.11.15.28.09;	author markm;	state Exp;
branches;
next	1.1.1.1.6.3;

1.1.1.1.6.3
date	2012.11.17.07.22.19;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Say good-bye, Linux-PAM.
@
text
@##
## $Id: Makefile,v 1.31 1997/04/05 07:04:25 morgan Exp morgan $
##
## $Log: Makefile,v $
##
##

# major and minor numbers of this release
MAJOR_REL=0
MINOR_REL=65
DEBUG_REL=no
#DEBUG_REL=yes

# this should be the name of this directory
RELNAME = Linux-PAM-$(MAJOR_REL).$(MINOR_REL)

# this is the name of the archive file
DISTFILE = $(RELNAME).tar.gz

# define this to indicate to subdirectories that they are part of the 
# full source tree.
FULL_LINUX_PAM_SOURCE_TREE=yes
export FULL_LINUX_PAM_SOURCE_TREE

DYNLOAD="dl"
DYNTYPE="so"

# Comment out either line to disable that type of linking for *modules only*
# Both at once is a legal configuration!
DYNAMIC=-DPAM_DYNAMIC
#STATIC=-DPAM_STATIC

# Comment out these lines to disable building dynamic/static libpam.*
DYNAMIC_LIBPAM=yes
#STATIC_LIBPAM=yes

# All combinations of the above four variable definitions are legal,
# however, not defining either dynamic or static modules and yet
# creating a some flavor of LIBPAM will make an authentication library
# that always fails!

# Here we indicate which libraries are present on the local system
# they control the building of some modules in this distribution
# Note, these definitions are all "export"ed below...

HAVE_PWDBLIB=no
HAVE_CRACKLIB=no
HAVE_AFSLIBS=no
HAVE_KRBLIBS=no

# NB. The following is the generic defines for compilation.
# They can be overridden in the default.defs file below
#
WARNINGS = -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \
        -Wpointer-arith -Wcast-qual -Wcast-align \
        -Wtraditional -Wstrict-prototypes -Wmissing-prototypes \
        -Wnested-externs -Winline -Wshadow -pedantic
PIC=-fPIC

# Mode to install shared libraries with
SHLIBMODE=644

#
# Conditional defines..
#

ifdef DYNAMIC
# need the dynamic library functions
LIBDL=-l$(DYNLOAD)
ifdef STATIC_LIBPAM
# needed because pam_xxx() fn's are now in statically linked library
RDYNAMIC = -rdynamic
endif
endif

# Here we include the defines for the preferred operating system
# these include things like CC, CFLAGS and destination directories 
# etc.. By default, this is a symbolic link to one of the .defs files
# the .../defs/ directory. Please take a moment to check that you are
# using the correct one.

include default.defs

# to turn on the fprintf(stderr, ..) debugging lines throughout the
# distribution uncomment this line
#EXTRAS += -DDEBUG

# For serious memory allocation tracing uncomment the following
#MEMORY_DEBUG=-DMEMORY_DEBUG

#######################################################################
# The pam_unix module in this file will not work on NIS based systems.#
#######################################################################

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

# the sub-directories to make things in

DIRS = modules libpam conf libpam_misc examples

#
# basic defines
#

INCLUDEDIR=-I$(shell pwd)/include
PAMLIB=-L$(shell pwd)/libpam
PAMMISCLIB=-L$(shell pwd)/libpam_misc
ifeq ($(DEBUG_REL),yes)
 PAMLIB += -lpamd
 PAMMISCLIB += -lpamd_misc
else
 PAMLIB += -lpam
 PAMMISCLIB += -lpam_misc
endif


# This is Linux-PAM and not a version from Sun etc..
# [Note, this does not describe the operating system you are using
# only that you are compiling the "Linux" (read FREE) implementation
# of Pluggable Authentication Modules.
EXTRAS += -DLINUX_PAM

#
# build composite defines
#

LOADLIBES = $(PAMLIB) $(RDYNAMIC) $(PAMMISCLIB) $(LIBDL) $(ULIBS)

CFLAGS += $(EXTRAS) $(MEMORY_DEBUG) $(WARNINGS) $(INCLUDEDIR) $(PIC)
ifneq ($(strip $(OS)),)
CFLAGS += -D$(OS)
endif
ifneq ($(strip $(ARCH)),)
CFLAGS += -D$(ARCH)
endif

#
# export the libraries-available info; the modules should know how
# to deal with this...
#
export HAVE_PWDBLIB		
export HAVE_CRACKLIB
export HAVE_AFSLIBS
export HAVE_KRBLIBS

#
# generic exports
#
export MAJOR_REL                # the major release of this distribution
export MINOR_REL		# the minor release of this distribution
export DEBUG_REL		# for installing a debugging version of PAM
export OS			# operating system
export ARCH			# architecture
export CC			# the C compiler
export INSTALL			# to do instalations with
export MKDIR			# to ensure directories exist
export CFLAGS			# CC flags used to compile everything
export LD_D			# build a shared object file (module)
export LD_L			# build a shared library (e.g. libpam)
export USESONAME		# does shlib link command require soname option
export SOSWITCH			# shlib lib soname switch name
export NEEDSONAME		# does shared library link need versioned lib
export LD			# build a generic library
export LDCONFIG			# rebuild the shared libraries
export AR			# build a static library
export RANLIB			# reorder a static library
export LOADLIBES		# libraries needed for application linking
export PAMLIB			# where to find the local libpam.xx file
export DYNTYPE			# which suffix is used for libraries
export SHLIBMODE		# file mode for shared objects
#
# where to install things
#
export FAKEROOT			# for package maintainers
#
export PREFIX			# basic prefix for all other directories
export SUPLEMENTED		# where to store module helper binaries
export LIBDIR			# where libpam and libpam_misc go
export SECUREDIR		# where the modules will be placed
export INCLUDED			# where to store pam---.h files
export CONFIGED			# where pam.conf and pam.d/ go
export SCONFIGED		# where modules' config files go

#
# Conditional exporting ( ... these go on for a while... )
#
ifdef DYNAMIC 
export DYNAMIC
endif
ifdef STATIC
export STATIC
endif
ifdef DYNAMIC_LIBPAM
export DYNAMIC_LIBPAM
endif
ifdef STATIC_LIBPAM
export STATIC_LIBPAM
endif
ifdef MEMORY_DEBUG
export MEMORY_DEBUG
endif

##
## the rules
##

all: .freezemake
	@@for i in $(DIRS) ; do \
		$(MAKE) -C $$i all ; \
		if [ $$? -ne 0 ]; then break ; fi ; \
	done

.freezemake:
# Do nothing

.old_freezemake: Makefile
	@@touch .freezemake
	@@echo "*WARNING*: If you are running a system that is dependent"
	@@echo "  on PAM to work. DO NOT make sterile NOR make remove."
	@@echo "  These options will delete the PAM files on your system"
	@@echo "  and make it unusable!"
	@@echo ""
	@@echo "If you are in any doubt, just do 'make all' (or just"
	@@echo "'make'). It is likely that this is the SAFEST thing to do...."
	@@exit 1

install:
	@@for i in $(DIRS) ; do \
		$(MAKE) -C $$i install ; \
		if [ $$? -ne 0 ]; then break ; fi ; \
	done
	install ./doc/man/*.3 $(PREFIX)/man/man3/
	install ./doc/man/*.8 $(PREFIX)/man/man8/

sterile: .freezemake
	@@$(MAKE) remove
	@@$(MAKE) extraclean

remove: .freezemake
	@@for i in $(DIRS) ; do \
		$(MAKE) -C $$i remove ; \
	done

clean:
	@@rm -f *~ core
	@@for i in $(DIRS) ; do \
		$(MAKE) -C $$i clean ; \
	done

extraclean:
	@@for i in $(DIRS) doc; do \
		$(MAKE) -C $$i extraclean ; \
	done

check:
	@@$(MAKE) -C conf check

RCScheck:
	@@$(MAKE) -C conf RCScheck

# this can be used to see what hasn't been check'd into RCS

open:
	@@find . \( -type f -a -perm 644 \) -print

release:
	@@egrep '^DEBUG\_REL\=yes' Makefile|grep -v grep > /dev/null ;\
		if [ $$? -eq 0 ]; then \
		echo "You should first set DEBUG_REL to no" ; exit 1 ; fi
	$(MAKE) extraclean
	rm -f .freezemake
	touch .filelist .RCSlist
	chmod 600 .filelist .RCSlist
	cd .. ; find $(RELNAME) \! -type d -print | fgrep -v RCS | fgrep -v 'conf/.md5sum' > $(RELNAME)/.filelist
	cd .. ; find $(RELNAME) -type f -print | fgrep RCS | fgrep -v 'conf/.RCSsum' > $(RELNAME)/.RCSlist
	chmod 400 .filelist .RCSlist
	$(MAKE) check
	$(MAKE) RCScheck
	(cat .filelist ; echo $(RELNAME)/conf/.md5sum) | (cd .. ; tar -cz -f$(DISTFILE) -T-)
	(cat .RCSlist ; echo $(RELNAME)/conf/.RCSsum) | (cd .. ; tar -cz -fRCS+$(DISTFILE) -T-)
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Initial import of virgin Linux-PAM 0.65, slightly stripped down.
@
text
@@


1.1.1.1.6.1
log
@MFC: Latest vendor PAM code + local fixes.
@
text
@d2 1
a2 1
## $Id: Makefile,v 1.5 2001/01/20 22:29:47 agmorgan Exp $
d4 71
d76 41
a116 6
## Note, ideally I would prefer it if this top level makefile did
## not get created by autoconf. As I find typing 'make' and relying
## on it to take care of all dependencies much more friendly than
## the multi-stage autoconf+make and also worry about updates to
## configure.in not getting propagated down the tree. (AGM) [I realise
## that this may not prove possible, but at least I tried.. Sigh.]
a117 1
DISTNAME=Linux-PAM
d119 18
a136 2
ifeq ($(shell test \! -f Make.Rules || echo yes),yes)
    include Make.Rules
d139 65
a203 1
THINGSTOMAKE = modules libpam libpamc libpam_misc doc examples
d205 3
a207 1
all: $(THINGSTOMAKE)
d209 36
a244 3
prep:
	rm -f security
	ln -sf . security
d247 15
a261 27
	if [ ! -f Make.Rules ]; then touch Make.Rules ; fi
	for i in $(THINGSTOMAKE) ; do $(MAKE) -C $$i clean ; done
	rm -f security *~ *.orig *.rej Make.Rules #*#

distclean: clean
	rm -f Make.Rules _pam_aconf.h
	rm -f config.status config.cache config.log core

maintainer-clean: distclean
	@@echo files should be ok for packaging now.

# NB _pam_aconf.h.in changes will remake this too
Make.Rules: configure Make.Rules.in _pam_aconf.h.in
	@@echo XXX - not sure how to preserve past configure options..
	@@echo XXX - so not attempting to. Feel free to run ./configure
	@@echo XXX - by hand, with the options you want.
	./configure

_pam_aconf.h: Make.Rules

configure: configure.in
	@@echo
	@@echo You do not appear to have an up-to-date ./configure file.
	@@echo Please run autoconf, and then ./configure [..options..]
	@@echo
	@@rm -f configure
	@@exit 1
d263 1
a263 2
$(THINGSTOMAKE): _pam_aconf.h prep
	$(MAKE) -C $@@ all
d265 2
a266 8
install: _pam_aconf.h prep
	$(MKDIR) $(FAKEROOT)$(INCLUDED)
	$(INSTALL) -m 444 security/_pam_aconf.h $(FAKEROOT)$(INCLUDED)
	for x in $(THINGSTOMAKE) ; do make -C $$x install ; done

remove:
	rm -f $(FAKEROOT)$(INCLUDED)/_pam_aconf.h
	for x in $(THINGSTOMAKE) ; do make -C $$x remove ; done
d269 14
a282 11
	@@if [ ! -f Make.Rules ]; then echo make Make.Rules first ; exit 1; fi
	@@if [ ! -L ../$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL) ]; then \
	   echo generating ../$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL) link ; \
	   ln -sf $(DISTNAME) ../$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL) ; \
	   echo to ../$(DISTNAME) . ; fi
	@@diff ../$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL)/Make.Rules Make.Rules
	make distclean
	cd .. ; tar zvfc $(DISTNAME)-$(MAJOR_REL).$(MINOR_REL).tar.gz \
		--exclude CVS --exclude .cvsignore --exclude '.#*' \
		$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL)/*

@


1.1.1.1.6.2
log
@Back out the extremely unwise PAM MFC that I did about 4 days ago.

My apologies to all. Please pass the pointy hat.
@
text
@d2 1
a2 2
## $Id: Makefile,v 1.31 1997/04/05 07:04:25 morgan Exp morgan $
## $FreeBSD$
a3 71
## $Log: Makefile,v $
##
##

# major and minor numbers of this release
MAJOR_REL=0
MINOR_REL=65
DEBUG_REL=no
#DEBUG_REL=yes

# this should be the name of this directory
RELNAME = Linux-PAM-$(MAJOR_REL).$(MINOR_REL)

# this is the name of the archive file
DISTFILE = $(RELNAME).tar.gz

# define this to indicate to subdirectories that they are part of the 
# full source tree.
FULL_LINUX_PAM_SOURCE_TREE=yes
export FULL_LINUX_PAM_SOURCE_TREE

DYNLOAD="dl"
DYNTYPE="so"

# Comment out either line to disable that type of linking for *modules only*
# Both at once is a legal configuration!
DYNAMIC=-DPAM_DYNAMIC
#STATIC=-DPAM_STATIC

# Comment out these lines to disable building dynamic/static libpam.*
DYNAMIC_LIBPAM=yes
#STATIC_LIBPAM=yes

# All combinations of the above four variable definitions are legal,
# however, not defining either dynamic or static modules and yet
# creating a some flavor of LIBPAM will make an authentication library
# that always fails!

# Here we indicate which libraries are present on the local system
# they control the building of some modules in this distribution
# Note, these definitions are all "export"ed below...

HAVE_PWDBLIB=no
HAVE_CRACKLIB=no
HAVE_AFSLIBS=no
HAVE_KRBLIBS=no

# NB. The following is the generic defines for compilation.
# They can be overridden in the default.defs file below
#
WARNINGS = -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \
        -Wpointer-arith -Wcast-qual -Wcast-align \
        -Wtraditional -Wstrict-prototypes -Wmissing-prototypes \
        -Wnested-externs -Winline -Wshadow -pedantic
PIC=-fPIC

# Mode to install shared libraries with
SHLIBMODE=644

#
# Conditional defines..
#

ifdef DYNAMIC
# need the dynamic library functions
LIBDL=-l$(DYNLOAD)
ifdef STATIC_LIBPAM
# needed because pam_xxx() fn's are now in statically linked library
RDYNAMIC = -rdynamic
endif
endif
d5 6
a10 41
# Here we include the defines for the preferred operating system
# these include things like CC, CFLAGS and destination directories 
# etc.. By default, this is a symbolic link to one of the .defs files
# the .../defs/ directory. Please take a moment to check that you are
# using the correct one.

include default.defs

# to turn on the fprintf(stderr, ..) debugging lines throughout the
# distribution uncomment this line
#EXTRAS += -DDEBUG

# For serious memory allocation tracing uncomment the following
#MEMORY_DEBUG=-DMEMORY_DEBUG

#######################################################################
# The pam_unix module in this file will not work on NIS based systems.#
#######################################################################

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

# the sub-directories to make things in

DIRS = modules libpam conf libpam_misc examples

#
# basic defines
#

INCLUDEDIR=-I$(shell pwd)/include
PAMLIB=-L$(shell pwd)/libpam
PAMMISCLIB=-L$(shell pwd)/libpam_misc
ifeq ($(DEBUG_REL),yes)
 PAMLIB += -lpamd
 PAMMISCLIB += -lpamd_misc
else
 PAMLIB += -lpam
 PAMMISCLIB += -lpam_misc
endif
d12 1
d14 2
a15 18
# This is Linux-PAM and not a version from Sun etc..
# [Note, this does not describe the operating system you are using
# only that you are compiling the "Linux" (read FREE) implementation
# of Pluggable Authentication Modules.
EXTRAS += -DLINUX_PAM

#
# build composite defines
#

LOADLIBES = $(PAMLIB) $(RDYNAMIC) $(PAMMISCLIB) $(LIBDL) $(ULIBS)

CFLAGS += $(EXTRAS) $(MEMORY_DEBUG) $(WARNINGS) $(INCLUDEDIR) $(PIC)
ifneq ($(strip $(OS)),)
CFLAGS += -D$(OS)
endif
ifneq ($(strip $(ARCH)),)
CFLAGS += -D$(ARCH)
d18 1
a18 65
#
# export the libraries-available info; the modules should know how
# to deal with this...
#
export HAVE_PWDBLIB		
export HAVE_CRACKLIB
export HAVE_AFSLIBS
export HAVE_KRBLIBS

#
# generic exports
#
export MAJOR_REL                # the major release of this distribution
export MINOR_REL		# the minor release of this distribution
export DEBUG_REL		# for installing a debugging version of PAM
export OS			# operating system
export ARCH			# architecture
export CC			# the C compiler
export INSTALL			# to do instalations with
export MKDIR			# to ensure directories exist
export CFLAGS			# CC flags used to compile everything
export LD_D			# build a shared object file (module)
export LD_L			# build a shared library (e.g. libpam)
export USESONAME		# does shlib link command require soname option
export SOSWITCH			# shlib lib soname switch name
export NEEDSONAME		# does shared library link need versioned lib
export LD			# build a generic library
export LDCONFIG			# rebuild the shared libraries
export AR			# build a static library
export RANLIB			# reorder a static library
export LOADLIBES		# libraries needed for application linking
export PAMLIB			# where to find the local libpam.xx file
export DYNTYPE			# which suffix is used for libraries
export SHLIBMODE		# file mode for shared objects
#
# where to install things
#
export FAKEROOT			# for package maintainers
#
export PREFIX			# basic prefix for all other directories
export SUPLEMENTED		# where to store module helper binaries
export LIBDIR			# where libpam and libpam_misc go
export SECUREDIR		# where the modules will be placed
export INCLUDED			# where to store pam---.h files
export CONFIGED			# where pam.conf and pam.d/ go
export SCONFIGED		# where modules' config files go

#
# Conditional exporting ( ... these go on for a while... )
#
ifdef DYNAMIC 
export DYNAMIC
endif
ifdef STATIC
export STATIC
endif
ifdef DYNAMIC_LIBPAM
export DYNAMIC_LIBPAM
endif
ifdef STATIC_LIBPAM
export STATIC_LIBPAM
endif
ifdef MEMORY_DEBUG
export MEMORY_DEBUG
endif
d20 1
a20 3
##
## the rules
##
d22 3
a24 36
all: .freezemake
	@@for i in $(DIRS) ; do \
		$(MAKE) -C $$i all ; \
		if [ $$? -ne 0 ]; then break ; fi ; \
	done

.freezemake:
# Do nothing

.old_freezemake: Makefile
	@@touch .freezemake
	@@echo "*WARNING*: If you are running a system that is dependent"
	@@echo "  on PAM to work. DO NOT make sterile NOR make remove."
	@@echo "  These options will delete the PAM files on your system"
	@@echo "  and make it unusable!"
	@@echo ""
	@@echo "If you are in any doubt, just do 'make all' (or just"
	@@echo "'make'). It is likely that this is the SAFEST thing to do...."
	@@exit 1

install:
	@@for i in $(DIRS) ; do \
		$(MAKE) -C $$i install ; \
		if [ $$? -ne 0 ]; then break ; fi ; \
	done
	install ./doc/man/*.3 $(PREFIX)/man/man3/
	install ./doc/man/*.8 $(PREFIX)/man/man8/

sterile: .freezemake
	@@$(MAKE) remove
	@@$(MAKE) extraclean

remove: .freezemake
	@@for i in $(DIRS) ; do \
		$(MAKE) -C $$i remove ; \
	done
d27 27
a53 12
	@@rm -f *~ core
	@@for i in $(DIRS) ; do \
		$(MAKE) -C $$i clean ; \
	done

extraclean:
	@@for i in $(DIRS) doc; do \
		$(MAKE) -C $$i extraclean ; \
	done

check:
	@@$(MAKE) -C conf check
d55 2
a56 2
RCScheck:
	@@$(MAKE) -C conf RCScheck
d58 8
a65 1
# this can be used to see what hasn't been check'd into RCS
d67 11
a77 2
open:
	@@find . \( -type f -a -perm 644 \) -print
a78 15
release:
	@@egrep '^DEBUG\_REL\=yes' Makefile|grep -v grep > /dev/null ;\
		if [ $$? -eq 0 ]; then \
		echo "You should first set DEBUG_REL to no" ; exit 1 ; fi
	$(MAKE) extraclean
	rm -f .freezemake
	touch .filelist .RCSlist
	chmod 600 .filelist .RCSlist
	cd .. ; find $(RELNAME) \! -type d -print | fgrep -v RCS | fgrep -v 'conf/.md5sum' > $(RELNAME)/.filelist
	cd .. ; find $(RELNAME) -type f -print | fgrep RCS | fgrep -v 'conf/.RCSsum' > $(RELNAME)/.RCSlist
	chmod 400 .filelist .RCSlist
	$(MAKE) check
	$(MAKE) RCScheck
	(cat .filelist ; echo $(RELNAME)/conf/.md5sum) | (cd .. ; tar -cz -f$(DISTFILE) -T-)
	(cat .RCSlist ; echo $(RELNAME)/conf/.RCSsum) | (cd .. ; tar -cz -fRCS+$(DISTFILE) -T-)
@


1.1.1.1.6.3
log
@Switch importer
@
text
@d3 1
a3 1
## $FreeBSD: stable/4/contrib/libpam/Makefile 78074 2001-06-11 15:28:52Z markm $
@


1.1.1.2
log
@Vendor import Linux PAM 0.75
@
text
@d2 1
a2 1
## $Id: Makefile,v 1.5 2001/01/20 22:29:47 agmorgan Exp $
d4 71
d76 41
a116 6
## Note, ideally I would prefer it if this top level makefile did
## not get created by autoconf. As I find typing 'make' and relying
## on it to take care of all dependencies much more friendly than
## the multi-stage autoconf+make and also worry about updates to
## configure.in not getting propagated down the tree. (AGM) [I realise
## that this may not prove possible, but at least I tried.. Sigh.]
a117 1
DISTNAME=Linux-PAM
d119 18
a136 2
ifeq ($(shell test \! -f Make.Rules || echo yes),yes)
    include Make.Rules
d139 65
a203 1
THINGSTOMAKE = modules libpam libpamc libpam_misc doc examples
d205 3
a207 1
all: $(THINGSTOMAKE)
d209 36
a244 3
prep:
	rm -f security
	ln -sf . security
d247 15
a261 27
	if [ ! -f Make.Rules ]; then touch Make.Rules ; fi
	for i in $(THINGSTOMAKE) ; do $(MAKE) -C $$i clean ; done
	rm -f security *~ *.orig *.rej Make.Rules #*#

distclean: clean
	rm -f Make.Rules _pam_aconf.h
	rm -f config.status config.cache config.log core

maintainer-clean: distclean
	@@echo files should be ok for packaging now.

# NB _pam_aconf.h.in changes will remake this too
Make.Rules: configure Make.Rules.in _pam_aconf.h.in
	@@echo XXX - not sure how to preserve past configure options..
	@@echo XXX - so not attempting to. Feel free to run ./configure
	@@echo XXX - by hand, with the options you want.
	./configure

_pam_aconf.h: Make.Rules

configure: configure.in
	@@echo
	@@echo You do not appear to have an up-to-date ./configure file.
	@@echo Please run autoconf, and then ./configure [..options..]
	@@echo
	@@rm -f configure
	@@exit 1
d263 1
a263 2
$(THINGSTOMAKE): _pam_aconf.h prep
	$(MAKE) -C $@@ all
d265 2
a266 8
install: _pam_aconf.h prep
	$(MKDIR) $(FAKEROOT)$(INCLUDED)
	$(INSTALL) -m 444 security/_pam_aconf.h $(FAKEROOT)$(INCLUDED)
	for x in $(THINGSTOMAKE) ; do make -C $$x install ; done

remove:
	rm -f $(FAKEROOT)$(INCLUDED)/_pam_aconf.h
	for x in $(THINGSTOMAKE) ; do make -C $$x remove ; done
d269 14
a282 11
	@@if [ ! -f Make.Rules ]; then echo make Make.Rules first ; exit 1; fi
	@@if [ ! -L ../$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL) ]; then \
	   echo generating ../$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL) link ; \
	   ln -sf $(DISTNAME) ../$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL) ; \
	   echo to ../$(DISTNAME) . ; fi
	@@diff ../$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL)/Make.Rules Make.Rules
	make distclean
	cd .. ; tar zvfc $(DISTNAME)-$(MAJOR_REL).$(MINOR_REL).tar.gz \
		--exclude CVS --exclude .cvsignore --exclude '.#*' \
		$(DISTNAME)-$(MAJOR_REL).$(MINOR_REL)/*

@

