home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume17
/
login
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-04-03
|
1KB
|
64 lines
# login -- for AT&T unix SysV / 3.2.2
# Set operating system.
#
# -DATT for AT&T unix 3.2.2
# -DIAC for Interactive 2.2
# OS=-DATT
OS=-DIAC
# Set UA=-DUSRACCESS if user access time feature is used (see login.4)
# UA= if not
UA=-DUSRACCESS
# UA=
# Set -DNOISY if you want unsuccessful login attempts to be
# reported to the user. Otherwise, login is silent
# about failures. Standard login reports unsuccessful attempts.
# QUIET=-DNOISY
QUIET=
# Set PG=-DPOSIX_GROUPS if supplimentary groups are used (not for AT&T)
# Set LIBS to ensure that initgroups() and alloca() are available
# TCP/IP connection on Interactive need -linet
# Usually, initgroups() in -lcposix (ATT unix does not have this)
# alloca() in -lPW (if GCC is used, don't define -lPW)
PG=-DPOSIX_GROUPS
# LIBS=-lPW
LIBS=-lcposix -linet
# PG=
# LIBS=-lPW
# Set compiler
CC=gcc -traditional
# CC=cc
CFLAGS= -O $(OS) $(QUIET) $(PG) $(UA)
SRC= login.c
all: login
login: login.c
${CC} $(CFLAGS) -o $@ $@.c $(LIBS)
tar:
tar cvf login.tar Readme login.1 login.4 Makefile $(SRC)
shar:
shar Readme login.1 login.4 Makefile $(SRC) > login.shar
clean:
rm -f ${OBJS} core login udump *.B *~
install:
install -f /bin -u root -g bin -m 4755 login
# install -f /usr/man/man.1 -u bin -g bin -m 644 login.1
# install -f /usr/man/man.4 -u bin -g bin -m 644 login.4