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


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

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

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

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

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

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

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

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


desc
@Make file for miscellaneous utilities
@


1.8
log
@update for .55 and make -> $(MAKE)
@
text
@# $Header: /home/morgan/pam/Linux-PAM-0.55/libpam_misc/RCS/Makefile,v 1.7 1996/12/01 03:28:11 morgan Exp morgan $
#
# $Log: Makefile,v $
# 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

LIBNAME = pam_misc
LIBMAJOR=0
LIBMINOR=55

FILES=xstrdup misc_conv help_env

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

# build dynamic library names

LIBDYNAMIC=lib$(LIBNAME).so
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
	$(LD) -soname $(LIBDYNMAJ) -x -shared -o $@@ $(LIBOBJ)
endif

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

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

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

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

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

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

@


1.7
log
@update for 0.54
@
text
@d1 1
a1 1
# $Header: /home/morgan/pam/Linux-PAM-0.54/libpam_misc/RCS/Makefile,v 1.6 1996/11/10 20:09:36 morgan Exp morgan $
d4 2
a5 13
# Revision 1.6  1996/11/10 20:09:36  morgan
# update for .53
#
# Revision 1.5  1996/09/05 06:02:45  morgan
# Dynamic linking now seems stable.
#
# Revision 1.4  1996/08/09 05:37:42  morgan
# fixed makefile installation dependencies
#
# Revision 1.3  1996/07/07 23:59:38  morgan
# changes for making this a public library, it has also been renamed
# to libpam_misc
#
d21 1
a21 1
LIBMINOR=54
d82 1
a82 1
	@@make clean
@


1.6
log
@update for .53
@
text
@d1 1
a1 1
# $Header: /home/morgan/pam/Linux-PAM-0.53/libpam_misc/RCS/Makefile,v 1.5 1996/09/05 06:02:45 morgan Exp morgan $
d4 3
d32 1
a32 1
LIBMINOR=51
d34 1
a34 1
FILES=xstrdup misc_conv
d68 1
a68 1
install: 
@


1.5
log
@Dynamic linking now seems stable.
@
text
@d1 1
a1 1
# $Header: /home/morgan/pam/Linux-PAM-0.52/libpam_misc/RCS/Makefile,v 1.4 1996/08/09 05:37:42 morgan Exp morgan $
d4 3
d29 1
a29 1
LIBMINOR=50
d58 1
a58 1
	$(LD) -soname $(LIBDYNMAJ) -x --shared -o $@@ $(LIBOBJ)
d66 2
a67 2
	mkdir -p $(INCLUDED)
	install -m644 ./pam_misc.h $(INCLUDED)
d69 1
a69 1
	install -m644 $(LIBDYNAMIC) $(LIBDIR)/$(LIBDYNMIN)
d73 1
a73 1
	install -m644 $(LIBSTATIC) $(LIBDIR)
d84 1
@


1.4
log
@fixed makefile installation dependencies
@
text
@d1 1
a1 1
# $Header: /home/morgan/pam/Linux-PAM-0.51/libpam_misc/RCS/Makefile,v 1.3 1996/07/07 23:59:38 morgan Exp morgan $
d4 3
d22 1
a22 1
# MAKE_DYNAMIC=yes
@


1.3
log
@changes for making this a public library, it has also been renamed
to libpam_misc
@
text
@d1 6
a6 1
# $Header: /home/morgan/pam/Linux-PAM-0.50/libpam-misc/RCS/Makefile,v 1.2 1996/05/02 04:45:32 morgan Exp morgan $
a7 1
# $Log$
a10 1

a32 2
ifdef MAKE_DYNAMIC

a36 2
endif

d51 1
d53 1
d60 2
a61 2
	mkdir -p $(INCLUDEDIR)
	install -m644 ./pam_misc.h $(INCLUDEDIR)
d73 1
a73 1
	rm -f $(INCLUDEDIR)/pam_misc.h
d75 1
@


1.2
log
@added misc_conv library routines for including in text based
applications.
@
text
@d1 4
a4 1
# $Header: /home/morgan/pam/Linux-PAM-0.32/libmisc/RCS/Makefile,v 1.1 1996/03/09 08:57:48 morgan Exp morgan $
d12 3
a14 3
LIB = libmisc.a
LIBSRC = xstrdup.c misc_conv.c
LIBOBJ = xstrdup.o misc_conv.o
d16 1
a16 1
all: $(LIB) 
d18 39
a56 2
$(LIB): $(LIBOBJ)
	$(AR) $(LIB) $(LIBOBJ)
d59 8
a66 1
	@@echo "*** Not installing support library"
d69 7
a75 1
	rm -f $(LIB) $(LIBOBJ) core a.out *~
a80 1

d82 1
a82 1
	rm -f *.a *.out *.o *.so *.bak
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $Header: /home/alex/PAM/pam-0.1/libmisc/RCS/Makefile,v 1.1 1996/02/17 22:02:17 alex Exp alex $
d10 2
a11 2
LIBSRC = xstrdup.c 
LIBOBJ = xstrdup.o 
@
