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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


desc
@The makefile for the Linux-PAM library: the interface between an
application and the modules that deal with its user authentication
@


1.17
log
@update for .55
@
text
@#
# $Id: Makefile,v 1.16 1996/12/01 03:14:13 morgan Exp morgan $
#
# $Log: Makefile,v $
# Revision 1.16  1996/12/01 03:14:13  morgan
# update for .54
#
# Revision 1.15  1996/11/10 20:07:51  morgan
# updated for .53
#
# Revision 1.14  1996/09/05 06:06:53  morgan
# added local flag for locking, slight reorganization too.
#

MOREFLAGS=

# you may uncomment the following to build libpam in modified ways

# lots of debugging information goes to /tmp/pam-debug.log
#MOREFLAGS += -D"DEBUG"

# pay attention to locked /etc/pam.conf file
#MOREFLAGS += -D"PAM_LOCKING"

LIBNAME=libpam
VERSION=.0
MODIFICATION=.55

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

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

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

CFLAGS += $(DYNAMIC) $(STATIC) $(MOREFLAGS)

# dynamic library names

LIBPAM = $(LIBNAME).so
LIBPAMNAME = $(LIBPAM)$(VERSION)
LIBPAMFULL = $(LIBPAMNAME)$(MODIFICATION)

# static library name

LIBPAMSTATIC = $(LIBNAME).a

ifdef STATIC
MODULES = $(shell cat ../modules/_static_module_objects)
STATICOBJ = pam_static.o
endif

EXTRAS = pam_delay.o
ifdef MEMORY_DEBUG
EXTRAS += pam_malloc.o
endif

LIBOBJECTS = pam_item.o pam_strerror.o pam_end.o pam_start.o pam_data.o \
		pam_dispatch.o pam_handlers.o pam_misc.o pam_account.o \
		pam_auth.o pam_session.o pam_password.o pam_env.o \
		$(EXTRAS)

# ---------------------------------------------
## rules

all: $(LIBPAM) $(LIBPAMSTATIC)

$(LIBPAM): $(LIBOBJECTS)  $(STATICOBJ)
ifdef DYNAMIC_LIBPAM
	$(LD) -soname $(LIBPAMNAME) -x -shared -o $@@ $(LIBOBJECTS)  \
                $(STATICOBJ) $(MODULES)
endif

$(LIBPAMSTATIC): $(LIBOBJECTS) $(STATICOBJ)
ifdef STATIC_LIBPAM
	$(AR) $@@ $(LIBOBJECTS) $(STATICOBJ) $(MODULES)
	$(RANLIB) $@@
endif

install: all
	$(MKDIR) $(INCLUDED)
	$(INSTALL) -m 644 include/security/pam_appl.h $(INCLUDED)
	$(INSTALL) -m 644 include/security/pam_modules.h $(INCLUDED)
	$(INSTALL) -m 644 include/security/_pam_macros.h $(INCLUDED)
	$(INSTALL) -m 644 include/security/_pam_types.h $(INCLUDED)
ifdef MEMORY_DEBUG
	$(INSTALL) -m 644 include/security/pam_malloc.h $(INCLUDED)
endif
ifdef DYNAMIC_LIBPAM
	$(INSTALL) -m 644 $(LIBPAM) $(LIBDIR)/$(LIBPAMFULL)
	$(LDCONFIG)
	( cd $(LIBDIR) ; ln -sf $(LIBPAMNAME) $(LIBPAM) )
endif
ifdef STATIC_LIBPAM
	$(INSTALL) -m644 $(LIBPAMSTATIC) $(LIBDIR)
endif

remove:
	rm -f $(INCLUDED)/_pam_types.h
	rm -f $(INCLUDED)/_pam_macros.h
	rm -f $(INCLUDED)/pam_appl.h
	rm -f $(INCLUDED)/pam_modules.h
	rm -f $(INCLUDED)/pam_malloc.h
	rm -f $(LIBDIR)/$(LIBPAM).*
	rm -f $(LIBDIR)/$(LIBPAM)
	$(LDCONFIG)
	rm -f $(LIBDIR)/$(LIBPAMSTATIC)

clean:
	rm -f $(LIBOBJECTS) pam_static.o a.out core *~

extraclean:	

	@@$(MAKE) clean
	rm -f *.a *.out *.o *.so ./include/security/*~

ifdef STATIC_LIBPAM
$(STATICOBJ): pam_static.c ../modules/_static_module_objects
	$(CC) $(CFLAGS) -c pam_static.c
endif
@


1.16
log
@update for .54
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.15 1996/11/10 20:07:51 morgan Exp morgan $
d5 3
d19 1
a19 1
# fprintf(stderr, ... )
d27 1
a27 1
MODIFICATION=.54
d114 1
a114 1
	@@make clean
@


1.15
log
@updated for .53
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.14 1996/09/05 06:06:53 morgan Exp morgan $
d5 3
d24 1
a24 1
MODIFICATION=.53
d57 1
a57 1
		pam_auth.o pam_session.o pam_password.o \
d81 1
d97 1
@


1.14
log
@added local flag for locking, slight reorganization too.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.13 1996/08/09 05:35:00 morgan Exp morgan $
d5 2
a6 13
# Revision 1.13  1996/08/09 05:35:00  morgan
# installation directories are dependent on the top level make file now
# updated for .51
#
# Revision 1.12  1996/07/07 23:54:28  morgan
# edited to allow the additional pam_delay functions
#
# Revision 1.11  1996/06/02 08:51:00  morgan
# clean up properly
#
# Revision 1.10  1996/05/26 03:48:51  morgan
# many changes for static libpam/module support
#
d21 1
a21 1
MODIFICATION=.52
d48 3
d64 1
a64 1
	$(LD) -soname $(LIBPAMNAME) -x --shared -o $@@ $(LIBOBJECTS)  \
d75 7
a81 4
	mkdir -p $(INCLUDED)
	install -m644 include/security/pam_appl.h $(INCLUDED)
	install -m644 include/security/pam_modules.h $(INCLUDED)
	install -m644 include/security/_pam_types.h $(INCLUDED)
d83 1
a83 1
	install -m644 $(LIBPAM) $(LIBDIR)/$(LIBPAMFULL)
d88 1
a88 1
	install -m644 $(LIBPAMSTATIC) $(LIBDIR)
d95 1
@


1.13
log
@installation directories are dependent on the top level make file now
updated for .51
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.12 1996/07/07 23:54:28 morgan Exp morgan $
d5 4
d20 10
a30 1
DEBUG = -DDEBUG
d32 1
a32 1
MODIFICATION=.51
d41 1
a41 1
CFLAGS += $(DYNAMIC) $(STATIC)
d73 1
a73 1
		$(STATICOBJ) $(MODULES)
@


1.12
log
@edited to allow the additional pam_delay functions
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.11 1996/06/02 08:51:00 morgan Exp morgan $
d5 3
a15 1

d19 1
a19 1
MODIFICATION=.50
a23 1

d30 2
a31 1
ifdef DYNAMIC_LIBPAM
d35 2
a36 1
endif
d53 1
d57 1
a58 1
$(LIBPAM): $(LIBOBJECTS)  $(STATICOBJ)
d70 4
a73 4
	mkdir -p $(INCLUDEDIR)
	install -m644 include/security/pam_appl.h $(INCLUDEDIR)
	install -m644 include/security/pam_modules.h $(INCLUDEDIR)
	install -m644 include/security/_pam_types.h $(INCLUDEDIR)
d84 3
a86 4
	rm -f $(INCLUDEDIR)/_pam_types.h
	rm -f $(INCLUDEDIR)/pam_appl.h
	rm -f $(INCLUDEDIR)/pam_modules.h
ifdef DYNAMIC_LIBPAM
d88 1
a89 1
endif
@


1.11
log
@clean up properly
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.10 1996/05/26 03:48:51 morgan Exp morgan $
d5 3
d17 1
a17 1
MODIFICATION=.42
d35 1
a35 1
LIBPAMSTATIC = libpam.a
d42 2
d46 2
a47 1
		pam_auth.o pam_session.o pam_password.o
@


1.10
log
@many changes for static libpam/module support
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.9 1996/05/21 04:41:04 morgan Exp morgan $
d5 3
d14 1
a14 1
MODIFICATION=.40
d78 1
a78 1
	rm -f $(LIBDIR)/$(LIBPAMNAME) $(LIBDIR)/$(LIBPAMFULL)
a79 1
	rm -f $(LIBDIR)/$(LIBPAM)
@


1.9
log
@really truely fixed the ldconfig stuff. Thanks Al!
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.8 1996/05/11 08:14:49 morgan Exp morgan $
a4 3
# Revision 1.8  1996/05/11 08:14:49  morgan
# fixed ldconfig problems
#
d7 3
a9 1
LIBPAM = libpam.so
d11 1
a11 1
MODIFICATION=.34
d19 6
a24 1
DEBUG = -DDEBUG
d27 2
d30 6
d40 2
d44 9
a52 5
$(LIBPAM): $(LIBOBJECTS)
	$(LD) -soname $(LIBPAMNAME) -x --shared -o $@@ $(LIBOBJECTS)

$(LIBPAMSTATIC): $(LIBOBJECTS)
	$(AR) $@@ $(LIBOBJECTS)
d54 1
d61 1
d65 4
d74 1
d77 3
d82 1
a82 1
	rm -f $(LIBOBJECTS) $(LIBPAMSTATIC) a.out core *~
d88 5
@


1.8
log
@fixed ldconfig problems
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.7 1996/05/02 04:48:23 morgan Exp morgan $
d5 2
a6 3
# Revision 1.7  1996/05/02 04:48:23  morgan
# added version number to libpam.so...
#
d12 1
a12 1
MODIFICATION=.33
d31 1
a31 1
	$(LD) -soname $(LIBPAMFULL) -x --shared -o $@@ $(LIBOBJECTS)
d44 1
a44 1
	( cd $(LIBDIR) ; ln -sf $(LIBPAMFULL) $(LIBPAMNAME) )
@


1.7
log
@added version number to libpam.so...
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.6 1996/03/16 20:53:03 morgan Exp morgan $
d5 3
d11 3
a13 1
VERSION=.0.32
d22 2
a23 1
LIBPAM = libpam.so$(VERSION)
d32 1
a32 1
	$(LD) -x --shared -o $@@ $(LIBOBJECTS)
d43 3
a45 1
	install -m644 $(LIBPAM) $(LIBDIR)
d51 2
a52 1
	rm -f $(LIBDIR)/$(LIBPAM)
d55 1
a55 1
	rm -f $(LIBPAM) $(LIBOBJECTS) $(LIBPAMSTATIC) a.out core *~
@


1.6
log
@added make remove option
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.5 1996/03/10 02:36:32 morgan Exp morgan $
a4 11
# Revision 1.5  1996/03/10 02:36:32  morgan
# oops! added pam_session.o and pam_password.o
#
# Revision 1.4  1996/03/09 20:23:46  morgan
# fixed conflict with LIBPAM variable
#
# Revision 1.3  1996/03/09 09:18:42  morgan
# *** empty log message ***
#
# Revision 1.2  1996/03/09 09:06:40  morgan
# added removal of emacs backup files from include/security
d7 4
d17 1
a17 1
LIBPAM = libpam.so
@


1.5
log
@oops! added pam_session.o and pam_password.o
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.4 1996/03/09 20:23:46 morgan Exp morgan $
d5 3
d45 6
@


1.4
log
@fixed conflict with LIBPAM variable
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.3 1996/03/09 09:18:42 morgan Exp morgan $
d5 3
d25 1
a25 1
		pam_auth.o
@


1.3
log
@*** empty log message ***
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.2 1996/03/09 09:06:40 morgan Exp morgan $
d5 3
d17 1
@


1.2
log
@added removal of emacs backup files from include/security
@
text
@d2 5
a6 1
# $Id$
a7 1
# $Log$
d26 1
a26 1
	echo $(AR) $@@ $(LIBOBJECTS)
@


1.1
log
@Initial revision
@
text
@d1 5
d23 1
a23 1
	$(AR) $@@ $(LIBOBJECTS)
d39 1
a39 1
	rm -f *.a *.out *.o *.so
@
