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.43;	author des;	state dead;
branches;
next	1.1;

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

1.1.1.1
date	98.11.18.01.16.20;	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.04;	author markm;	state Exp;
branches;
next	;

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

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

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


desc
@@


1.2
log
@Say good-bye, Linux-PAM.
@
text
@# $Header: /home/morgan/pam/Linux-PAM-0.57/libpam_misc/RCS/Makefile,v 1.10 1997/04/05 07:00:18 morgan Exp $
#
# $Log: Makefile,v $
# Revision 1.10  1997/04/05 07:00:18  morgan
# fakeroot
#
# Revision 1.9  1997/02/15 15:46:56  morgan
# inherit major and minor numbers from top level
#
# Revision 1.8  1997/01/04 20:20:11  morgan
# update for .55 and make -> $(MAKE)
#
# Revision 1.7  1996/12/01 03:28:11  morgan
# update for 0.54
#

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

# ///////////////////////////////////////////////////////////////////

# uncomment if you wnat libpam_misc to be made as a dynamic library
# AGM has had some segfaulting from libdl when I did this. I have not
# investigated the cause...

MAKE_DYNAMIC=yes

ifeq ($(DEBUG_REL),yes)
 LIBNAME=pamd_misc
else
 LIBNAME=pam_misc
endif
LIBMAJOR=$(MAJOR_REL)
LIBMINOR=$(MINOR_REL)

FILES=misc_conv help_env

#
# Probably no need to alter anything below here.
#

# build dynamic library names

LIBDYNAMIC=lib$(LIBNAME).$(DYNTYPE)
LIBDYNMAJ=$(LIBDYNAMIC).$(LIBMAJOR)
LIBDYNMIN=$(LIBDYNMAJ).$(LIBMINOR)

# static library name

LIBSTATIC = lib$(LIBNAME).a

# sources and object files

LIBSRC = $(addsuffix .c,$(FILES))
LIBOBJ = $(addsuffix .o,$(FILES))

# rules

all: $(LIBSTATIC) $(LIBDYNAMIC)

$(LIBDYNAMIC): $(LIBOBJ)
ifdef MAKE_DYNAMIC
    ifeq ($(USESONAME),yes)
	$(LD_L) $(SOSWITCH) $(LIBDYNMAJ) -o $@@ $(LIBOBJ)
    else
	$(LD_L) -o $@@ $(LIBOBJ)
    endif
    ifeq ($(NEEDSONAME),yes)
	rm -f $(LIBDYNMIN)
	ln -s $(LIBDYNAMIC) $(LIBDYNMAJ)
	rm -f $(LIBDYNMAJ)
	ln -s $(LIBDYNAMIC) $(LIBDYNMIN)
    endif
endif

$(LIBSTATIC): $(LIBOBJ)
	$(AR) $@@ $(LIBOBJ)
	$(RANLIB) $@@

install: all
	$(MKDIR) $(FAKEROOT)$(INCLUDED)
	$(INSTALL) -m 644 ./pam_misc.h $(FAKEROOT)$(INCLUDED)
ifdef MAKE_DYNAMIC
	$(INSTALL) -m $(SHLIBMODE) $(LIBDYNAMIC) $(FAKEROOT)$(LIBDIR)/$(LIBDYNMIN)
	$(LDCONFIG)
  ifneq ($(DYNTYPE),"sl")
	( cd $(FAKEROOT)$(LIBDIR) ; ln -sf $(LIBDYNMAJ) $(LIBDYNAMIC) )
  endif
endif
	$(INSTALL) -m 644 $(LIBSTATIC) $(FAKEROOT)$(LIBDIR)

clean:
	rm -f *.so *.a core a.out *~

remove:
	rm -f $(FAKEROOT)$(INCLUDED)/pam_misc.h
	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBDYNAMIC).*
	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBDYNAMIC)
	$(LDCONFIG)
	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBSTATIC)
	rm -f $(FAKEROOT)$(INCLUDED)/chk_malloc.h

.c.o:
	$(CC) -c $(DEFS) $(CFLAGS) $<

extraclean:
	@@$(MAKE) clean
	rm -f *.o *.bak

@


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
@d1 1
d3 12
a14 1
# $Id: Makefile,v 1.3 2001/02/10 07:17:53 agmorgan Exp $
d17 2
a18 2
# lots of debugging information goes to /tmp/pam-debug.log
#MOREFLAGS += -D"DEBUG"
d20 1
a20 1
include ../Make.Rules
d22 8
a29 2
ifeq ($(WITH_LIBDEBUG),yes)
 LIBNAME=libpam_miscd
d31 1
a31 1
 LIBNAME=libpam_misc
d33 4
a36 2
VERSION=.$(MAJOR_REL)
MODIFICATION=.$(MINOR_REL)
d38 3
a40 1
CFLAGS += $(MOREFLAGS) $(DYNAMIC) $(STATIC)
d42 1
a42 1
# dynamic library names
d44 3
a46 3
LIBNAMED = $(LIBNAME).$(DYNTYPE)
LIBNAMEDNAME = $(LIBNAMED)$(VERSION)
LIBNAMEDFULL = $(LIBNAMEDNAME)$(MODIFICATION)
d50 1
a50 3
LIBNAMEDSTATIC = $(LIBNAME).a

LIBOBJECTS = help_env.o misc_conv.o
d52 1
a52 3
ifeq ($(DYNAMIC_LIBPAM),yes)
DLIBOBJECTS = $(addprefix dynamic/,$(LIBOBJECTS))
endif
d54 2
a55 3
ifeq ($(STATIC_LIBPAM),yes)
SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS))
endif
d57 1
a57 2
# ---------------------------------------------
## rules
d59 1
a59 1
all: dirs $(LIBNAMED) $(LIBNAMEDSTATIC)
d61 2
a62 16
dirs:
ifeq ($(DYNAMIC_LIBPAM),yes)
	$(MKDIR) dynamic
endif
ifeq ($(STATIC_LIBPAM),yes)
	$(MKDIR) static
endif

dynamic/%.o : %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@@

static/%.o : %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@@

$(LIBNAMED): $(DLIBOBJECTS)
ifeq ($(DYNAMIC_LIBPAM),yes)
d64 1
a64 1
	$(LD_L) $(SOSWITCH) $(LIBNAMEDNAME) -o $@@ $(DLIBOBJECTS) $(MODULES) $(LINKLIBS)
d66 1
a66 1
	$(LD_L) -o $@@ $(DLIBOBJECTS) $(MODULES)
d69 4
a72 4
	rm -f $(LIBNAMEDFULL)
	ln -s $(LIBNAMED) $(LIBNAMEDFULL)
	rm -f $(LIBNAMEDNAME)
	ln -s $(LIBNAMED) $(LIBNAMEDNAME)
d76 2
a77 3
$(LIBNAMEDSTATIC): $(SLIBOBJECTS)
ifeq ($(STATIC_LIBPAM),yes)
	$(AR) rc $@@ $(SLIBOBJECTS) $(MODULES)
a78 1
endif
d82 3
a84 4
	$(INSTALL) -m 644 include/security/pam_misc.h $(FAKEROOT)$(INCLUDED)
ifeq ($(DYNAMIC_LIBPAM),yes)
	$(MKDIR) $(FAKEROOT)$(libdir)
	$(INSTALL) -m $(SHLIBMODE) $(LIBNAMED) $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
d87 1
a87 1
	( cd $(FAKEROOT)$(libdir) ; rm -f $(LIBNAMED) ; ln -s $(LIBNAMEDNAME) $(LIBNAMED) )
d90 4
a93 3
ifeq ($(STATIC_LIBPAM),yes)
	$(INSTALL) -m 644 $(LIBNAMEDSTATIC) $(FAKEROOT)$(libdir)
endif
d97 2
a98 2
	rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
	rm -f $(FAKEROOT)$(libdir)/$(LIBNAMED)
d100 9
a108 1
	rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDSTATIC)
a109 5
clean:
	rm -f a.out core *~ static/*.o dynamic/*.o
	rm -f *.a *.out *.o *.so ./include/security/*~
	if [ -d dynamic ]; then rmdir dynamic ; fi
	if [ -d static ]; then rmdir static ; fi
@


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
@a0 2
# $FreeBSD$
# $Header: /home/morgan/pam/Linux-PAM-0.57/libpam_misc/RCS/Makefile,v 1.10 1997/04/05 07:00:18 morgan Exp $
d2 1
a2 12
# $Log: Makefile,v $
# Revision 1.10  1997/04/05 07:00:18  morgan
# fakeroot
#
# Revision 1.9  1997/02/15 15:46:56  morgan
# inherit major and minor numbers from top level
#
# Revision 1.8  1997/01/04 20:20:11  morgan
# update for .55 and make -> $(MAKE)
#
# Revision 1.7  1996/12/01 03:28:11  morgan
# update for 0.54
d5 4
a8 2
dummy:
	@@echo "*** This is not a top-level Makefile!"
d10 7
a16 1
# ///////////////////////////////////////////////////////////////////
d18 1
a18 3
# uncomment if you wnat libpam_misc to be made as a dynamic library
# AGM has had some segfaulting from libdl when I did this. I have not
# investigated the cause...
d20 1
a20 1
MAKE_DYNAMIC=yes
d22 3
a24 7
ifeq ($(DEBUG_REL),yes)
 LIBNAME=pamd_misc
else
 LIBNAME=pam_misc
endif
LIBMAJOR=$(MAJOR_REL)
LIBMINOR=$(MINOR_REL)
d26 1
a26 1
FILES=misc_conv help_env
d28 1
a28 3
#
# Probably no need to alter anything below here.
#
d30 1
a30 1
# build dynamic library names
d32 3
a34 3
LIBDYNAMIC=lib$(LIBNAME).$(DYNTYPE)
LIBDYNMAJ=$(LIBDYNAMIC).$(LIBMAJOR)
LIBDYNMIN=$(LIBDYNMAJ).$(LIBMINOR)
d36 3
a38 1
# static library name
d40 2
a41 1
LIBSTATIC = lib$(LIBNAME).a
d43 1
a43 1
# sources and object files
d45 7
a51 2
LIBSRC = $(addsuffix .c,$(FILES))
LIBOBJ = $(addsuffix .o,$(FILES))
d53 2
a54 1
# rules
d56 2
a57 1
all: $(LIBSTATIC) $(LIBDYNAMIC)
d59 2
a60 2
$(LIBDYNAMIC): $(LIBOBJ)
ifdef MAKE_DYNAMIC
d62 1
a62 1
	$(LD_L) $(SOSWITCH) $(LIBDYNMAJ) -o $@@ $(LIBOBJ)
d64 1
a64 1
	$(LD_L) -o $@@ $(LIBOBJ)
d67 4
a70 4
	rm -f $(LIBDYNMIN)
	ln -s $(LIBDYNAMIC) $(LIBDYNMAJ)
	rm -f $(LIBDYNMAJ)
	ln -s $(LIBDYNAMIC) $(LIBDYNMIN)
d74 3
a76 2
$(LIBSTATIC): $(LIBOBJ)
	$(AR) $@@ $(LIBOBJ)
d78 1
d82 4
a85 3
	$(INSTALL) -m 644 ./pam_misc.h $(FAKEROOT)$(INCLUDED)
ifdef MAKE_DYNAMIC
	$(INSTALL) -m $(SHLIBMODE) $(LIBDYNAMIC) $(FAKEROOT)$(LIBDIR)/$(LIBDYNMIN)
d88 1
a88 1
	( cd $(FAKEROOT)$(LIBDIR) ; ln -sf $(LIBDYNMAJ) $(LIBDYNAMIC) )
d91 3
a93 4
	$(INSTALL) -m 644 $(LIBSTATIC) $(FAKEROOT)$(LIBDIR)

clean:
	rm -f *.so *.a core a.out *~
d97 2
a98 2
	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBDYNAMIC).*
	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBDYNAMIC)
d100 1
a100 9
	rm -f $(FAKEROOT)$(LIBDIR)/$(LIBSTATIC)
	rm -f $(FAKEROOT)$(INCLUDED)/chk_malloc.h

.c.o:
	$(CC) -c $(DEFS) $(CFLAGS) $<

extraclean:
	@@$(MAKE) clean
	rm -f *.o *.bak
d102 5
@


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


1.1.1.2
log
@Vendor import Linux PAM 0.75
@
text
@d1 1
d3 12
a14 1
# $Id: Makefile,v 1.3 2001/02/10 07:17:53 agmorgan Exp $
d17 2
a18 2
# lots of debugging information goes to /tmp/pam-debug.log
#MOREFLAGS += -D"DEBUG"
d20 1
a20 1
include ../Make.Rules
d22 8
a29 2
ifeq ($(WITH_LIBDEBUG),yes)
 LIBNAME=libpam_miscd
d31 1
a31 1
 LIBNAME=libpam_misc
d33 4
a36 2
VERSION=.$(MAJOR_REL)
MODIFICATION=.$(MINOR_REL)
d38 3
a40 1
CFLAGS += $(MOREFLAGS) $(DYNAMIC) $(STATIC)
d42 1
a42 1
# dynamic library names
d44 3
a46 3
LIBNAMED = $(LIBNAME).$(DYNTYPE)
LIBNAMEDNAME = $(LIBNAMED)$(VERSION)
LIBNAMEDFULL = $(LIBNAMEDNAME)$(MODIFICATION)
d50 1
a50 3
LIBNAMEDSTATIC = $(LIBNAME).a

LIBOBJECTS = help_env.o misc_conv.o
d52 1
a52 3
ifeq ($(DYNAMIC_LIBPAM),yes)
DLIBOBJECTS = $(addprefix dynamic/,$(LIBOBJECTS))
endif
d54 2
a55 3
ifeq ($(STATIC_LIBPAM),yes)
SLIBOBJECTS = $(addprefix static/,$(LIBOBJECTS))
endif
d57 1
a57 2
# ---------------------------------------------
## rules
d59 1
a59 1
all: dirs $(LIBNAMED) $(LIBNAMEDSTATIC)
d61 2
a62 16
dirs:
ifeq ($(DYNAMIC_LIBPAM),yes)
	$(MKDIR) dynamic
endif
ifeq ($(STATIC_LIBPAM),yes)
	$(MKDIR) static
endif

dynamic/%.o : %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@@

static/%.o : %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@@

$(LIBNAMED): $(DLIBOBJECTS)
ifeq ($(DYNAMIC_LIBPAM),yes)
d64 1
a64 1
	$(LD_L) $(SOSWITCH) $(LIBNAMEDNAME) -o $@@ $(DLIBOBJECTS) $(MODULES) $(LINKLIBS)
d66 1
a66 1
	$(LD_L) -o $@@ $(DLIBOBJECTS) $(MODULES)
d69 4
a72 4
	rm -f $(LIBNAMEDFULL)
	ln -s $(LIBNAMED) $(LIBNAMEDFULL)
	rm -f $(LIBNAMEDNAME)
	ln -s $(LIBNAMED) $(LIBNAMEDNAME)
d76 2
a77 3
$(LIBNAMEDSTATIC): $(SLIBOBJECTS)
ifeq ($(STATIC_LIBPAM),yes)
	$(AR) rc $@@ $(SLIBOBJECTS) $(MODULES)
a78 1
endif
d82 3
a84 4
	$(INSTALL) -m 644 include/security/pam_misc.h $(FAKEROOT)$(INCLUDED)
ifeq ($(DYNAMIC_LIBPAM),yes)
	$(MKDIR) $(FAKEROOT)$(libdir)
	$(INSTALL) -m $(SHLIBMODE) $(LIBNAMED) $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
d87 1
a87 1
	( cd $(FAKEROOT)$(libdir) ; rm -f $(LIBNAMED) ; ln -s $(LIBNAMEDNAME) $(LIBNAMED) )
d90 4
a93 3
ifeq ($(STATIC_LIBPAM),yes)
	$(INSTALL) -m 644 $(LIBNAMEDSTATIC) $(FAKEROOT)$(libdir)
endif
d97 2
a98 2
	rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDFULL)
	rm -f $(FAKEROOT)$(libdir)/$(LIBNAMED)
d100 9
a108 1
	rm -f $(FAKEROOT)$(libdir)/$(LIBNAMEDSTATIC)
a109 5
clean:
	rm -f a.out core *~ static/*.o dynamic/*.o
	rm -f *.a *.out *.o *.so ./include/security/*~
	if [ -d dynamic ]; then rmdir dynamic ; fi
	if [ -d static ]; then rmdir static ; fi
@

