9152e1c5a7
The tested targets are the followgin ones: * tools * distribution * sets * release The remaining NetBSD targets have not been disabled nor tested *at all*. Try them at your own risk, they may reboot the earth. For all compliant Makefiles, objects and generated files are put in MAKEOBJDIR, which means you can now keep objects between two branch switching. Same for DESTDIR, please refer to build.sh options. Regarding new or modifications of Makefiles a few things: * Read share/mk/bsd.README * If you add a subdirectory, add a Makefile in it, and have it called by the parent through the SUBDIR variable. * Do not add arbitrary inclusion which crosses to another branch of the hierarchy; If you can't do without it, put a comment on why. If possible, do not use inclusion at all. * Use as much as possible the infrastructure, it is here to make life easier, do not fight it. Sets and package are now used to track files. We have one set called "minix", composed of one package called "minix-sys"
55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
# Makefile for cawf
|
|
|
|
# Define UNIX for vanilla Unix systems -- e.g., older DYNIX.
|
|
#
|
|
# Define UNIX and USG for System V, BSD 4.3 and for SunOS.
|
|
#
|
|
# USG may also be needed if the required string function prototypes --
|
|
# e.g., for strrchr() -- are in <string.h> rather than <strings.h>.
|
|
#
|
|
#DEFS = -DUNIX -DUSG
|
|
#
|
|
# Define STDLIB for systems that have <stdlib.h> -- e.g., AIX and
|
|
# SunOS.
|
|
#
|
|
# Redefine CAWFLIB by adding -DCAWFLIB=\"...\" to DEFS.
|
|
#
|
|
#DEFS = -DUNIX -DUSG -DCAWFLIB=\"/usr/local/lib/cawf\"
|
|
#
|
|
# Customize the install rule.
|
|
#
|
|
# -ansi and -pedantic are ANSI compliance options for the gcc compiler.
|
|
# Remove them if your compiler objects.
|
|
#
|
|
# If you're using xlc 2.1 on AIX 3.2 for the RISC/SYSTEM 6000, you
|
|
# must delete the definition of __STR__ (two leading and two trailing
|
|
# underscore characters), because the xlc 2.1 compiler incorrectly
|
|
# inlines string functions when compiling pass3.c.
|
|
#
|
|
#DEFS = -DUNIX -DSTDLIB -U__STR__
|
|
#
|
|
# Unix systems that have a <malloc.h> need MALLOCH defined, unless
|
|
# they also have a <stdlib.h> that provides a function prototype for
|
|
# malloc() and its relatives (most do).
|
|
#
|
|
#DEFS = -DUNIX -DMALLOCH
|
|
#LSC For now...
|
|
NOGCCERROR:= yes
|
|
|
|
DEFS= -DUNIX -DUSG -DSTDLIB
|
|
CPPFLAGS+= ${DEFS}
|
|
|
|
PROGS= bsfilt cawf
|
|
SRCS.cawf= cawf.c device.c error.c expand.c expr.c getopt.c macsup.c nreq.c \
|
|
output.c pass2.c pass3.c regerror.c regexp.c store.c string.c
|
|
SRCS.bsfilt= bsfilt.c
|
|
|
|
LINKS+= ${BINDIR}/cawf ${BINDIR}/nroff
|
|
LINKS+= ${BINDIR}/bsfilt ${BINDIR}/colcrt
|
|
MAN.cawf=
|
|
MAN.bsfilt=
|
|
|
|
FILESDIR= /usr/lib/cawf
|
|
FILES= common device.cf dumb.dev man.mac me.mac ms.mac mnx.mac
|
|
|
|
.include <bsd.prog.mk>
|