-# A Makefile for the BSD source tree.
-#
-# @(#)bsd.prog.mk 5.5 (Berkeley) %G%
-#
-
-# user defines:
-# BINDIR, BINGRP, BINMODE, BINOWN
-# binary target directory, group, mode, owner
-# CLEANFILES
-# list of files to be removed for the target clean; used,
-# for example, to specify .c's produced from .y's.
-# LDLIB the list of libraries that the program loads, in the format
-# expected by the loader.
-# LINKS list of binary links of the form "link target link target";
-# for example, "/bin/[ /usr/bin/test" would link /bin/[ to
-# /usr/bin/test"; not particularly labor saving, but prevents
-# needing your own install target.
-# MANDIR, MANMODE
-# manual page installation directory, mode
-# MLINKS list of man page links of the form "link target link target",
-# with some trickiness so the suffix specifies the directory to
-# use. For example, "a.1 b.2 c.3 d.4" would link ${MANDIR}1/a.0
-# to ${MANDIR}2/b.0 and ${MANDIR}3/c.0 to ${MANDIR}4/d.0.
-# PROG program name
-# SHAREDSTRINGS
-# objects share strings using ${XSTR}
-# SRCS list of .c sources if the program has multiple files.
-# SRCLIB the list of libraries that the program depends on; normally
-# from the LIB* list in this file.
-# STRIP strip flag
-#
-# user macros:
-# STDALL standard all target
-# STDCLEAN
-# standard clean target
-# STDCLEANDIR
-# standard cleandir target
-# STDDEPEND
-# standard depend target
-# STDLINT
-# standard lint target
-# STDINSTALL
-# standard install target
-# STDTAGS standard tags target
-
-# permit a hierarchy of Makefile include files
-.if exists(../Make.include)
-.include "../Make.include"
-.endif
-
-# name of the dependency file
-DEPENDFILE= .depend
-
-# standard libraries
-LIBC= /lib/libc.a
-LIBCOMPAT= /usr/lib/libcompat.a
-LIBDES= /usr/lib/libdes.a
-LIBKRB= /usr/lib/libkrb.a
-LIBMATH= /usr/lib/libm.a
-LIBUTIL= /usr/lib/libutil.a
-
-# read-only version of standard .c.o rule
-READONLY: .USE
- ${CC} ${CFLAGS} -c -R ${.IMPSRC}
-
-# if the user defines SHAREDSTRINGS, they want objects to share strings.
-# Turn off parallel makes (the strings file is single threaded) and
-# rewrite the .c.o rule to use XSTR to build the objects.
-.if defined(SHAREDSTRINGS)
-.NOTPARALLEL:
-XSTR=/usr/bin/xstr
-.c.o:
- ${CC} -E ${CFLAGS} ${.IMPSRC} | ${XSTR} -c -
- @${CC} ${CFLAGS} -c x.c -o ${.TARGET}
- @rm -f x.c
-.endif
-
-# the default target.
-.MAIN: all
-
-# manual pages -- if the Makefile doesn't specify one, assume that they're
-# named in a standard way, i.e. it's in section 1 with the same name as the
-# program.
-MANALL= ${MAN1} ${MAN2} ${MAN3} ${MAN4} ${MAN5} ${MAN6} ${MAN7} ${MAN8}