shadow/old/Makefile.xenix

724 lines
22 KiB
Makefile

#
# Copyright 1988 - 1994, Julianne Frances Haugh
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. Neither the name of Julianne F. Haugh nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# %W% %U% - Shadow password system
#
# $Id: Makefile.xenix,v 1.2 1997/05/01 23:11:55 marekm Exp $
#
SHELL = /bin/sh
#
# Set this flag to decide what level of code "get" returns.
# The base USENET release was release 1. It is no longer supported.
# The version with the utilities added was release 2. It is now unsupported.
# The version with database-like file access is release 3.
RELEASE = 3
VERSION = ver3.3.2
GFLAGS = -n $(VERSION)
GET = get_file
# Define the directory login is copied to. BE VERY CAREFUL!!! BSD old SunOS
# seems to use /bin, USG seems to use /etc, SunOS 4.1.1 seems to use /usr/bin.
# If you define SCOLOGIN, you MUST use /etc as LOGINDIR.
# LOGINDIR = /bin
LOGINDIR = /etc
# LOGINDIR = /usr/bin
# Define any special libraries required to access the directory routines.
# Some systems require -lndir for the directory routines. SCO Xenix uses
# -lx for that. Your system might need nothing.
# NDIR = -lndir
NDIR = -lx
# NDIR =
# Define some stuff for Cracklib. This assumes that libcracklib.a is
# in a system directory.
# CRACKDEF='-DUSE_CRACKLIB'
# CRACKLIB=-lcrack
# Pick your favorite C compiler and tags command
CC = cc
TAGS = ctags
# OS. Pick one of USG (AT&T, SYSV, SYS3), BSD, SUN (SunOS 2 and 3),
# SUN4 (SunOS 4.1.1.), UNIXPC (AT&T PC/7300, 3B1), or AIX (AIX v3)
# OS = -DUSG -DSYS3
OS = -DUSG
# OS = -DBSD
# OS = -DSUN
# OS = -DSUN4
# OS = -DUSG -DUNIXPC
# OS = -DAIX
# Do you have to do ranlib (probably SUN, BSD and XENIX)?
RANLIB = ranlib
# RANLIB = echo
# Enable the following if you are running SCO TCP/IP. It is a /bin/login
# which understands the *ahem* novel way they do rlogin/telnet.
# SCOLOGIN = scologin
# Configuration Flags
#
# DEST_INCLUDE_DIR - local include files
# LIBS - system libraries
# -lsocket - needed for TCP/IP and possibly SYSLOG
# -ldbm or -lndbm - needed for DBM support
# -lcrypt - needed for SCO crypt() functions
# CFLAGS - C compiler flags
# -DLAI_TCP - needed for SCO Xenix Lachman TCP/IP
DEST_INCLUDE_DIR = /usr/include
# Flags for SCO Xenix/386
CFLAGS = -O -M3 -g $(OS) -I$(DEST_INCLUDE_DIR) $(CRACKDEF)
LIBS = -lcrypt -lndbm
# LIBS = -lcrypt -ldbm
LDFLAGS = -M3 -g
LTFLAGS =
# Flags for normal machines
# CFLAGS = -O -g $(OS) -I$(DEST_INCLUDE_DIR) $(CRACKDEF)
# LIBS =
# LDFLAGS = -g
# Flags for SunOS 4.1.1
# CFLAGS = -O2 $(OS) -I$(DEST_INCLUDE_DIR) $(CRACKDEF)
# LIBS =
# LDFLAGS =
# This should be Slibsec.a for small model, or Llibsec.a for
# large model or whatever. MUST AGREE WITH CFLAGS!!! For non-Intel
# machines, just use libsec.a
LIBSEC = Slibsec.a
# LIBSEC = libsec.a
# Names for root user and group, and bin user and group. See your
# /etc/passwd and /etc/group files. BSD and SUN use "wheel", most
# others use "root" for RGID.
RUID = root
RGID = root
# RGID = wheel
BUID = bin
BGID = bin
# Where the login.defs file will be copied. Must agree with config.h
DEST_LOGIN_DEFS = /etc/login.defs
# Rules for .L (lint) files.
.SUFFIXES: .L
LINT = lint
LINTFLAGS = $(OS) -Dlint
.c.L:
$(LINT) -pxu $(LINTFLAGS) $*.c > $*.L
LOBJS = lmain.o login.o env.o valid.o setup.o shell.o age.o \
utmp.o sub.o mail.o motd.o log.o ttytype.o failure.o \
tz.o console.o hushed.o
LSRCS = lmain.c login.c env.c valid.c setup.c shell.c age.c \
utmp.c sub.c mail.c motd.c log.c ttytype.c failure.c \
tz.c console.c hushed.c
SOBJS = smain.o env.o entry.o susetup.o shell.o \
sub.o mail.o motd.o sulog.o age.o tz.o hushed.o
SSRCS = smain.c env.c entry.c setup.c shell.c \
pwent.c sub.c mail.c motd.c sulog.c shadow.c age.c pwpack.c rad64.c \
tz.c hushed.c
POBJS = passwd.o obscure.o
PSRCS = passwd.c obscure.c
GPSRCS = gpmain.c
GPOBJS = gpmain.o
PWOBJS = pwconv.o
PWSRCS = pwconv.c pwent.c shadow.c pwpack.c rad64.c
PWUNOBJS = pwunconv.o
PWUNSRCS = pwunconv.c pwent.c shadow.c pwpack.c rad64.c
SULOGOBJS = sulogin.o entry.o env.o age.o setup.o \
valid.o shell.o tz.o
SULOGSRCS = sulogin.c entry.c env.c age.c pwent.c setup.c \
shadow.c shell.c valid.c pwpack.c tz.c
MKPWDOBJS = mkpasswd.o
MKPWDSRCS = mkpasswd.c
NGSRCS = newgrp.c env.c shell.c
NGOBJS = newgrp.o env.o shell.o
CHFNSRCS = chfn.c fields.c
CHFNOBJS = chfn.o fields.o
CHSHSRCS = chsh.c fields.c
CHSHOBJS = chsh.o fields.o
CHAGEOBJS = chage.o fields.o
CHAGESRCS = chage.c fields.c
CHPASSOBJS = chpasswd.o
CHPASSSRCS = chpasswd.c
DPSRCS = dpmain.c
DPOBJS = dpmain.o
ALLSRCS = age.c dialchk.c dialup.c entry.c env.c lmain.c log.c login.c mail.c \
motd.c obscure.c passwd.c pwconv.c pwent.c pwunconv.c getpass.c \
setup.c shadow.c shell.c smain.c sub.c sulog.c sulogin.c ttytype.c \
utmp.c valid.c port.c newgrp.c gpmain.c grent.c mkpasswd.c pwpack.c \
chfn.c chsh.c chage.c rad64.c encrypt.c chpasswd.c shadowio.c pwio.c \
newusers.c groupio.c fields.c pwdbm.c grpack.c grdbm.c sppack.c \
spdbm.c dpmain.c gshadow.c gsdbm.c gspack.c sgroupio.c useradd.c \
userdel.c patchlevel.h usermod.c copydir.c mkrmdir.c groupadd.c \
groupdel.c groupmod.c tz.c console.c hushed.c getdef.c scologin.c \
logoutd.c groups.c pwauth.c lockpw.c chowndir.c rename.c
FILES1 = LICENSE README patchlevel.h newgrp.c Makefile config.h pwunconv.c obscure.c \
age.c id.c
FILES2 = passwd.c port.c lmain.c sulogin.c pwpack.c dialup.c expiry.c \
gshadow.h
FILES3 = chfn.c chsh.c smain.c faillog.c pwconv.c shadow.c pwck.c utent.c
FILES4 = gpmain.c chage.c pwent.c valid.c setup.c entry.c ttytype.c port.h
FILES5 = pwio.c encrypt.c chpasswd.c newusers.c rad64.c dialchk.c faillog.h \
pwdbm.c grdbm.c gshadow.c sppack.c grpck.c
FILES6 = gspack.c spdbm.c lastlog.h shell.c login.c sub.c dpmain.c mail.c \
env.c pwd.h.m4 grpack.c shadow.h log.c grent.c motd.c dialup.h \
fields.c gsdbm.c utmp.c failure.c
FILES7 = groupio.c shadowio.c sgroupio.c groups.c copydir.c mkrmdir.c \
mkpasswd.c pwauth.c pwauth.h lastlog.c
FILES8 = useradd.c usermod.c login.defs rename.c
FILES9 = groupadd.c groupdel.c groupmod.c tz.c console.c hushed.c getdef.c \
scologin.c logoutd.c sulog.c getpass.c userdel.c lockpw.c chowndir.c
FILES_SUN4 = Makefile.sun4 README.sun4 config.h.sun4
FILES_SVR4 = Makefile.svr4 config.h.svr4
FILES_LINUX = Makefile.linux config.h.linux
MAN_1 = chage.1 chfn.1 chsh.1 id.1 login.1 newgrp.1 passwd.1 su.1 \
useradd.1 userdel.1 usermod.1 groupadd.1 groupdel.1 groupmod.1 \
groups.1 pwck.1 grpck.1
MAN_3 = shadow.3 pwauth.3
MAN_4 = faillog.4 passwd.4 porttime.4 shadow.4
MAN_5 = login.5
MAN_8 = chpasswd.8 dpasswd.8 faillog.8 newusers.8 pwconv.8 pwunconv.8 \
sulogin.8 mkpasswd.8 logoutd.8 pwauth.8 lastlog.8
DOCS1 = $(MAN_1) $(MAN_3) $(MAN_4)
DOCS2 = $(MAN_5) $(MAN_8)
DOCS = $(DOCS1) $(DOCS2)
BINS = su login pwconv pwunconv passwd sulogin faillog newgrp sg gpasswd \
mkpasswd chfn chsh chage chpasswd newusers dpasswd id useradd \
userdel usermod groupadd groupdel groupmod $(SCOLOGIN) logoutd \
groups pwck grpck lastlog expiry
all: $(BINS) $(DOCS)
.PRECIOUS: libshadow.a
libshadow.a: \
libshadow.a(dialchk.o) \
libshadow.a(dialup.o) \
libshadow.a(encrypt.o) \
libshadow.a(getdef.o) \
libshadow.a(getpass.o) \
libshadow.a(grdbm.o) \
libshadow.a(grent.o) \
libshadow.a(groupio.o) \
libshadow.a(grpack.o) \
libshadow.a(gshadow.o) \
libshadow.a(gsdbm.o) \
libshadow.a(gspack.o) \
libshadow.a(sgroupio.o) \
libshadow.a(port.o) \
libshadow.a(pwdbm.o) \
libshadow.a(pwent.o) \
libshadow.a(pwio.o) \
libshadow.a(pwpack.o) \
libshadow.a(pwauth.o) \
libshadow.a(rad64.o) \
libshadow.a(spdbm.o) \
libshadow.a(shadow.o) \
libshadow.a(shadowio.o) \
libshadow.a(sppack.o) \
libshadow.a(lockpw.o) \
libshadow.a(rename.o) \
libshadow.a(utent.o) \
libshadow.a(list.o) \
libshadow.a(strtoday.o) \
libshadow.a(basename.o) \
libshadow.a(isexpired.o) \
libshadow.a(xmalloc.o)
$(RANLIB) libshadow.a
libsec: $(LIBSEC)(shadow.o)
$(RANLIB) $(LIBSEC)
save:
[ ! -d save ] && mkdir save
-cp $(LOGINDIR)/login save
-cp /etc/mkpasswd /etc/pwconv /etc/pwunconv /etc/sulogin /etc/chpasswd \
/etc/newusers /etc/useradd /etc/userdel /etc/usermod \
/etc/groupadd /etc/groupdel /etc/groupmod /etc/logoutd \
/etc/login.defs /etc/pwck /etc/grpck /bin/expiry save
-cp /bin/su /bin/passwd /bin/gpasswd /bin/dpasswd /bin/faillog \
/bin/newgrp /bin/chfn /bin/chsh /bin/chage /bin/id \
/bin/scologin save
-cp $(DEST_INCLUDE_DIR)/dialup.h $(DEST_INCLUDE_DIR)/shadow.h \
$(DEST_INCLUDE_DIR)/pwd.h $(DEST_INCLUDE_DIR)/gshadow.h save
restore:
[ -d save ]
-(cd save ; cp login $(LOGINDIR) )
-(cd save ; -cp mkpasswd pwconv pwunconv sulogin chpasswd \
newusers useradd userdel usermod groupadd groupdel groupmod \
logoutd login.defs pwck grpck /etc)
-(cd save ; cp su passwd gpasswd dpasswd faillog newgrp chfn chsh \
chage id scologin expiry /bin)
-(cd save ; cp dialup.h shadow.h pwd.h gshadow.h $(DEST_INCLUDE_DIR) )
install: all
strip $(BINS)
cp login $(LOGINDIR)/login
cp mkpasswd pwconv pwunconv sulogin chpasswd newusers \
useradd userdel usermod groupadd groupdel groupmod logoutd \
pwck grpck /etc
cp su passwd gpasswd dpasswd faillog newgrp chfn chsh chage id /bin
rm -f /bin/sg
ln /bin/newgrp /bin/sg
cp dialup.h shadow.h pwd.h gshadow.h $(DEST_INCLUDE_DIR)
chown $(RUID) $(LOGINDIR)/login /etc/pwconv /etc/pwunconv /etc/sulogin \
/bin/su /bin/passwd /bin/gpasswd /bin/newgrp /etc/mkpasswd \
/bin/dpasswd /bin/chsh /bin/chfn /bin/chage /etc/useradd \
/etc/userdel /etc/usermod /etc/groupadd /etc/groupdel \
/etc/groupmod /etc/logoutd /etc/pwck /etc/grpck /bin/expiry
chgrp $(RGID) $(LOGINDIR)/login /etc/pwconv /etc/pwunconv /etc/sulogin \
/bin/su /bin/passwd /bin/gpasswd /bin/newgrp /etc/mkpasswd \
/bin/dpasswd /bin/chsh /bin/chfn /bin/chage /etc/useradd \
/etc/userdel /etc/usermod /etc/groupadd /etc/groupdel \
/etc/groupmod /etc/logoutd /etc/pwck /etc/grpck /bin/expiry
chown $(BUID) /bin/faillog /bin/id $(DEST_INCLUDE_DIR)/shadow.h \
$(DEST_INCLUDE_DIR)/dialup.h $(DEST_INCLUDE_DIR)/pwd.h \
$(DEST_INCLUDE_DIR)/gshadow.h
chgrp $(BGID) /bin/faillog /bin/id $(DEST_INCLUDE_DIR)/shadow.h \
$(DEST_INCLUDE_DIR)/dialup.h $(DEST_INCLUDE_DIR)/pwd.h \
$(DEST_INCLUDE_DIR)/gshadow.h
chmod 700 /etc/pwconv /etc/pwunconv /etc/sulogin /etc/mkpasswd \
/etc/chpasswd /etc/newusers /bin/dpasswd /etc/logoutd \
/etc/useradd /etc/userdel /etc/usermod /etc/groupadd \
/etc/groupdel /etc/groupmod /etc/pwck /etc/grpck
chmod 4711 $(LOGINDIR)/login /bin/su /bin/passwd /bin/gpasswd \
/bin/newgrp /bin/chfn /bin/chsh /bin/chage /bin/expiry
chmod 711 /bin/faillog /bin/id
chmod 444 $(DEST_INCLUDE_DIR)/shadow.h $(DEST_INCLUDE_DIR)/dialup.h \
$(DEST_INCLUDE_DIR)/pwd.h $(DEST_INCLUDE_DIR)/gshadow.h
[ -f $(DEST_LOGIN_DEFS) ] || (cp login.defs $(DEST_LOGIN_DEFS) ; \
chown $(RUID) $(DEST_LOGIN_DEFS) ; \
chgrp $(RGID) $(DEST_LOGIN_DEFS) ; \
chmod 600 $(DEST_LOGIN_DEFS) )
[ -z "$(SCOLOGIN)" ] || (cp scologin /bin/login ; \
chown $(RUID) /bin/login ; \
chgrp $(RGID) /bin/login ; \
chmod 755 /bin/login )
lint: su.lint login.lint pwconv.lint pwunconv.lint passwd.lint sulogin.lint \
faillog.lint newgrp.lint gpasswd.lint mkpasswd.lint chfn.lint \
chsh.lint chage.lint dpasswd.lint id.lint useradd.lint userdel.lint \
usermod.lint groupadd.lint groupdel.lint groupmod.lint logoutd.lint \
pwck.lint grpck.lint expiry.lint \
$(ALLSRCS:.c=.L)
tags: $(ALLSRCS)
$(TAGS) $(ALLSRCS)
README:
[ -f s.README ] && $(GET) $(GFLAGS) s.README
$(DOCS):
[ -f s.$@ ] && $(GET) $(GFLAGS) s.$@
login.defs:
[ -f s.login.defs ] && $(GET) $(GFLAGS) s.login.defs
Makefile.sun4:
[ -f s.Makefile.sun4 ] && $(GET) $(GFLAGS) s.Makefile.sun4
Makefile.svr4:
[ -f s.Makefile.svr4 ] && $(GET) $(GFLAGS) s.Makefile.svr4
README.sun4:
[ -f s.README.sun4 ] && $(GET) $(GFLAGS) s.README.sun4
config.h.sun4:
[ -f s.config.h.sun4 ] && $(GET) $(GFLAGS) s.config.h.sun4
config.h.svr4:
[ -f s.config.h.svr4 ] && $(GET) $(GFLAGS) s.config.h.svr4
login: $(LOBJS) libshadow.a
$(CC) -o login $(LDFLAGS) $(LOBJS) libshadow.a $(LIBS)
login.lint: $(LSRCS)
$(LINT) $(LINTFLAGS) $(LSRCS) > login.lint
su: $(SOBJS) libshadow.a
$(CC) -o su $(LDFLAGS) $(SOBJS) libshadow.a $(LIBS)
su.lint: $(SSRCS)
$(LINT) $(LINTFLAGS) -DSU $(SSRCS) > su.lint
passwd: $(POBJS) libshadow.a
$(CC) -o passwd $(LDFLAGS) $(POBJS) libshadow.a $(LIBS) $(CRACKLIB)
passwd.lint: $(PSRCS)
$(LINT) $(LINTFLAGS) -DPASSWD $(PSRCS) > passwd.lint
gpasswd: $(GPOBJS) libshadow.a
$(CC) -o gpasswd $(LDFLAGS) $(GPOBJS) libshadow.a $(LIBS)
gpasswd.lint: $(GPSRCS)
$(LINT) $(LINTFLAGS) $(GPSRCS) > gpasswd.lint
dpasswd: $(DPOBJS) libshadow.a
$(CC) -o dpasswd $(LDFLAGS) $(DPOBJS) libshadow.a $(LIBS)
dpasswd.lint: $(DPSRCS)
$(LINT) $(LINTFLAGS) $(DPSRCS) > dpasswd.lint
pwconv: $(PWOBJS) libshadow.a config.h
$(CC) -o pwconv $(LDFLAGS) $(PWOBJS) libshadow.a $(LIBS)
pwconv.lint: $(PWSRCS) config.h
$(LINT) $(LINTFLAGS) -DPASSWD $(PWSRCS) > pwconv.lint
pwunconv: $(PWUNOBJS) libshadow.a config.h
$(CC) -o pwunconv $(LDFLAGS) $(PWUNOBJS) libshadow.a $(LIBS)
pwunconv.lint: $(PWUNSRCS)
$(LINT) $(LINTFLAGS) -DPASSWD $(PWUNSRCS) > pwunconv.lint
sulogin: $(SULOGOBJS) libshadow.a
$(CC) -o sulogin $(LDFLAGS) $(SULOGOBJS) libshadow.a $(LIBS)
sulogin.lint: $(SULOGSRCS)
$(LINT) $(LINTFLAGS) $(SULOGSRCS) > sulogin.lint
faillog: faillog.o
$(CC) -o faillog $(LDFLAGS) faillog.o $(LIBS)
faillog.lint: faillog.c faillog.h config.h
$(LINT) $(LINTFLAGS) faillog.c > faillog.lint
lastlog: lastlog.o
$(CC) -o lastlog $(LDFLAGS) lastlog.o $(LIBS)
lastlog.lint: lastlog.c config.h lastlog.h
$(LINT) $(LINTFLAGS) $(MKPWDSRCS) > lastlog.lint
mkpasswd: $(MKPWDOBJS) libshadow.a
$(CC) -o mkpasswd $(LDFLAGS) $(MKPWDOBJS) libshadow.a $(LIBS)
mkpasswd.lint: $(MKPWDSRCS)
$(LINT) $(LINTFLAGS) $(MKPWDSRCS) > mkpasswd.lint
newgrp: $(NGOBJS) libshadow.a
$(CC) -o newgrp $(LDFLAGS) $(NGOBJS) libshadow.a $(LIBS)
newgrp.lint: $(NGSRCS)
$(LINT) $(LINTFLAGS) $(NGSRCS) > newgrp.lint
sg: newgrp
rm -f sg
ln newgrp sg
sg.lint: newgrp.lint
ln newgrp.lint sg.lint
chfn: $(CHFNOBJS) libshadow.a
$(CC) -o chfn $(LDFLAGS) $(CHFNOBJS) libshadow.a $(LIBS)
chfn.lint: $(CHFNSRCS)
$(LINT) $(LINTFLAGS) $(CHFNSRCS) > chfn.lint
chsh: $(CHSHOBJS) libshadow.a
$(CC) -o chsh $(LDFLAGS) $(CHSHOBJS) libshadow.a $(LIBS)
chsh.lint: $(CHSHSRCS)
$(LINT) $(LINTFLAGS) $(CHSHSRCS) > chsh.lint
chage: $(CHAGEOBJS) libshadow.a
$(CC) -o chage $(LDFLAGS) $(CHAGEOBJS) libshadow.a $(LIBS)
chage.lint: $(CHAGESRCS)
$(LINT) $(LINTFLAGS) -DPASSWD $(CHAGESRCS) > chage.lint
chpasswd: $(CHPASSOBJS) libshadow.a
$(CC) -o chpasswd $(LDFLAGS) $(CHPASSOBJS) libshadow.a $(LIBS)
chpasswd.lint: $(CHPASSSRCS)
$(LINT) $(LINTFLAGS) $(CHPASSSRCS) > chpasswd.lint
newusers: newusers.o libshadow.a
$(CC) -o newusers $(LDFLAGS) newusers.o libshadow.a $(LIBS)
newusers.lint: newusers.c
$(LINT) $(LINTFLAGS) newusers.c > newusers.lint
id: id.o libshadow.a
$(CC) -o id $(LDFLAGS) id.o libshadow.a $(LIBS)
id.lint: id.c
$(LINT) $(LINTFLAGS) id.c > id.lint
groups: groups.o libshadow.a
$(CC) -o groups $(LDFLAGS) groups.o libshadow.a $(LIBS)
groups.lint: groups.c
$(LINT) $(LINTFLAGS) groups.c > groups.lint
useradd: useradd.o copydir.o mkrmdir.o libshadow.a
$(CC) -o useradd $(LDFLAGS) useradd.o copydir.o mkrmdir.o \
libshadow.a $(LIBS) $(NDIR)
useradd.lint: useradd.c copydir.c mkrmdir.c
$(LINT) $(LINTFLAGS) useradd.c copydir.c mkrmdir.c > useradd.lint
userdel: userdel.o copydir.o mkrmdir.o libshadow.a
$(CC) -o userdel $(LDFLAGS) userdel.o copydir.o mkrmdir.o \
libshadow.a $(LIBS) $(NDIR)
userdel.lint: userdel.c copydir.c mkrmdir.c
$(LINT) $(LINTFLAGS) userdel.c copydir.c mkrmdir.c > userdel.lint
usermod: usermod.o copydir.o mkrmdir.o chowndir.o libshadow.a
$(CC) -o usermod $(LDFLAGS) usermod.o copydir.o mkrmdir.o \
chowndir.o libshadow.a $(LIBS) $(NDIR)
usermod.lint: usermod.c copydir.c mkrmdir.c chowndir.c
$(LINT) $(LINTFLAGS) usermod.c copydir.c mkrmdir.c \
chowndir.c > usermod.lint
groupadd: groupadd.o libshadow.a
$(CC) -o groupadd $(LDFLAGS) groupadd.o libshadow.a $(LIBS)
groupadd.lint: groupadd.c
$(LINT) $(LINTFLAGS) groupadd.c > groupadd.lint
groupdel: groupdel.o libshadow.a
$(CC) -o groupdel $(LDFLAGS) groupdel.o libshadow.a $(LIBS)
groupdel.lint: groupdel.c
$(LINT) $(LINTFLAGS) groupdel.c > groupdel.lint
groupmod: groupmod.o libshadow.a
$(CC) -o groupmod $(LDFLAGS) groupmod.o libshadow.a $(LIBS)
groupmod.lint: groupmod.c
$(LINT) $(LINTFLAGS) groupmod.c > groupmod.lint
pwd.h.m4:
[ -f s.pwd.h.m4 ] && $(GET) $(GFLAGS) s.pwd.h.m4
pwd.h: pwd.h.m4 Makefile
m4 $(OS) < pwd.h.m4 > pwd.h
logoutd: logoutd.o libshadow.a
$(CC) -o logoutd $(LDFLAGS) logoutd.o libshadow.a
logoutd.lint: logoutd.c
$(LINT) $(LINTFLAGS) logoutd.c > logoutd.lint
pwck: pwck.o libshadow.a
$(CC) -o pwck $(LDFLAGS) pwck.o libshadow.a $(LIBS)
pwck.lint: pwck.c
$(LINT) $(LINTFLAGS) pwck.c > pwck.lint
grpck: grpck.o libshadow.a
$(CC) -o grpck $(LDFLAGS) grpck.o libshadow.a $(LIBS)
grpck.lint: grpck.c
$(LINT) $(LINTFLAGS) grpck.c > grpck.lint
expiry: expiry.o age.o libshadow.a
$(CC) -o expiry $(LDFLAGS) age.o expiry.o libshadow.a $(LIBS)
expiry.lint: expiry.c
$(LINT) $(LINTFLAGS) expiry.c > expiry.lint
sulog.o: config.h
susetup.c: setup.c
cp setup.c susetup.c
susetup.o: config.h susetup.c pwd.h
$(CC) -c $(CFLAGS) -DSU susetup.c
scologin: scologin.o
$(CC) -o scologin $(LDFLAGS) scologin.o -lsocket
passwd.o: config.h shadow.h pwd.h pwauth.h
lmain.o: config.h lastlog.h faillog.h pwd.h pwauth.h
smain.o: config.h lastlog.h pwd.h shadow.h pwauth.h
sub.o: pwd.h
setup.o: config.h pwd.h
mkrmdir.o: config.h
utmp.o: config.h
mail.o: config.h
motd.o: config.h
age.o: config.h pwd.h gshadow.h
log.o: config.h lastlog.h pwd.h
lastlog.o: lastlog.h
shell.o: config.h
entry.o: config.h shadow.h pwd.h
hushed.o: config.h pwd.h
valid.o: config.h pwd.h
failure.o: faillog.h config.h
faillog.o: faillog.h config.h pwd.h
newgrp.o: config.h shadow.h gshadow.h pwd.h
mkpasswd.o: config.h shadow.h gshadow.h pwd.h
gpmain.o: config.h pwd.h gshadow.h
chfn.o: config.h pwd.h
chsh.o: config.h pwd.h
chage.o: config.h shadow.h pwd.h
pwconv.o: config.h shadow.h
pwunconv.o: config.h shadow.h pwd.h
chpasswd.o: config.h shadow.h pwd.h
id.o: pwd.h
newusers.o: config.h shadow.h pwd.h
dpmain.o: config.h dialup.h
useradd.o: config.h shadow.h pwd.h pwauth.h gshadow.h
userdel.o: config.h shadow.h pwd.h pwauth.h gshadow.h
usermod.o: config.h shadow.h pwd.h pwauth.h gshadow.h
groupadd.o: config.h gshadow.h
groupdel.o: config.h gshadow.h
groupmod.o: config.h gshadow.h
logoutd.o: config.h
sulogin.o: config.h pwauth.h
copydir.o: config.h
chowndir.o: config.h
pwck.o: config.h shadow.h pwd.h
grpck.o: config.h pwd.h gshadow.h
libshadow.a(shadow.o): shadow.h config.h
libshadow.a(shadowio.o): shadow.h config.h
libshadow.a(grent.o): config.h gshadow.h
libshadow.a(groupio.o): config.h
libshadow.a(sgroupio.o): config.h gshadow.h
libshadow.a(dialup.o): dialup.h
libshadow.a(dialchk.o): dialup.h config.h
libshadow.a(getdef.o): config.h
libshadow.a(pwdbm.o): config.h pwd.h
libshadow.a(spdbm.o): config.h shadow.h
libshadow.a(grdbm.o): config.h
libshadow.a(gshadow.o): config.h
libshadow.a(gsdbm.o): config.h gshadow.h
libshadow.a(pwauth.o): config.h pwauth.h
libshadow.a(pwpack.o): config.h pwd.h
libshadow.a(pwent.o): config.h pwd.h
libshadow.a(pwio.o): pwd.h config.h
libshadow.a(getpass.o): config.h
libshadow.a(encrypt.o): config.h
libshadow.a(port.o): port.h
libshadow.a(rad64.o): config.h
libshadow.a(lockpw.o):
libshadow.a(rename.o): config.h
libshadow.a(gspack.o): config.h gshadow.h
libshadow.a(list.o):
libshadow.a(strtoday.o): config.h
libshadow.a(xmalloc.o):
libshadow.a(basename.o):
libshadow.a(isexpired.o): config.h shadow.h
clean:
-rm -f susetup.c *.o a.out core npasswd nshadow *.pag *.dir pwd.h
clobber: clean
-rm -f $(BINS) *.lint *.L libshadow.a
nuke: clobber
-for file in * ; do \
if [ -f s.$$file -a ! -f p.$$file ] ; then \
rm -f $$file ;\
fi ;\
done
shar: login.sh.01 login.sh.02 login.sh.03 login.sh.04 login.sh.05 \
login.sh.06 login.sh.07 login.sh.08 login.sh.09 login.sh.10 \
login.sh.11 login.sh.12
login.sh.01: $(FILES1) Makefile
shar -Dc $(FILES1) > login.sh.01
login.sh.02: $(FILES2) Makefile
shar -Dc $(FILES2) > login.sh.02
login.sh.03: $(FILES3) Makefile
shar -Dc $(FILES3) > login.sh.03
login.sh.04: $(FILES4) Makefile
shar -Dc $(FILES4) > login.sh.04
login.sh.05: $(FILES5) Makefile
shar -Dc $(FILES5) > login.sh.05
login.sh.06: $(FILES6) Makefile
shar -Dc $(FILES6) > login.sh.06
login.sh.07: $(FILES7) Makefile
shar -Dc $(FILES7) > login.sh.07
login.sh.08: $(FILES8) Makefile
shar -Dc $(FILES8) > login.sh.08
login.sh.09: $(FILES9) Makefile
shar -Dc $(FILES9) > login.sh.09
login.sh.10: $(DOCS1) Makefile
shar -Dc $(DOCS1) > login.sh.10
login.sh.11: $(DOCS2) Makefile
shar -Dc $(DOCS2) > login.sh.11
login.sh.12: $(FILES_SUN4) $(FILES_SVR4) $(FILES_LINUX) Makefile
shar -Dc $(FILES_SUN4) $(FILES_SVR4) $(FILES_LINUX) > login.sh.12