gno/usr.sbin/getty/Makefile
gdr-ftp 7d184b3391 Various changes to get getty compiling under GNO v2.0.6. In general
they are:
	- changed the makefile
	- prototyped functions
	- eliminated pathnames.h since all it does is #include <paths.h>
	- used gettytab.h for various function declarations
	- verified stack usage at 712 bytes
	- eliminated dummy gethostname() function.  Instead, get it
	  from libc.  This exposes a problem with gethostname.
	  See PR#59 for details.
	- eliminated a dependancy on strftime for the moment by
	  calling ctime() instead.
	- Added GNO-formatted versions of the man pages.
1998-04-10 16:18:06 +00:00

29 lines
828 B
Makefile

#
# $Id: Makefile,v 1.2 1998/04/10 16:17:33 gdr-ftp Exp $
#
PROG = getty
MAIN = main
SRCS = main.c gettytab.c init.c subr.c ttydeflts.c
LDADD = -lutil
CFLAGS += -DNO_STRFTIME
STACK = 1024 # 712 observed
BINDIR = /usr/sbin
CUSTOM_RELEASE = true
.INCLUDE: /src/gno/prog.mk
release: $(OBJ_DIR)$(PROG) gettytab.5G getty.8G $(DESC)
$(INSTALL) -d $(RELBIN) $(RELMAN)/man5 $(RELMAN)/man8 $(DESC_DIR)
$(INSTALL) $(OBJ_DIR)$(PROG) $(RELBIN)
$(INSTALL) gettytab.5G $(RELMAN)/man5/gettytab.5
$(INSTALL) getty.8G $(RELMAN)/man8/getty.8
$(DESCU) -o $(DESC_SRC) $(DESC_SRC) $(DESC)
install: $(OBJ_DIR)$(PROG) gettytab.5G getty.8G
$(INSTALL) -d $(BINDIR) $(MANDIR)/man5 $(MANDIR)/man8 $(DESC_DIR)
$(INSTALL) $(OBJ_DIR)$(PROG) $(BINDIR)
$(INSTALL) gettytab.5G $(MANDIR)/man5/gettytab.5
$(INSTALL) getty.8G $(MANDIR)/man8/getty.8