2005-04-21 16:53:53 +02:00
|
|
|
# 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
|
Upgrading build system to new NetBSD revision
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"
2012-09-12 09:37:05 +02:00
|
|
|
#LSC For now...
|
|
|
|
NOGCCERROR:= yes
|
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
DEFS= -DUNIX -DUSG -DSTDLIB
|
2010-05-19 15:24:15 +02:00
|
|
|
CPPFLAGS+= ${DEFS}
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
PROGS= bsfilt cawf
|
|
|
|
SRCS.cawf= cawf.c device.c error.c expand.c expr.c getopt.c macsup.c nreq.c \
|
2005-04-21 16:53:53 +02:00
|
|
|
output.c pass2.c pass3.c regerror.c regexp.c store.c string.c
|
2010-05-12 18:28:54 +02:00
|
|
|
SRCS.bsfilt= bsfilt.c
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
LINKS+= ${BINDIR}/cawf ${BINDIR}/nroff
|
2013-11-19 12:46:36 +01:00
|
|
|
|
|
|
|
# replaced by usr.bin/colcrt
|
|
|
|
#LINKS+= ${BINDIR}/bsfilt ${BINDIR}/colcrt
|
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
MAN.cawf=
|
|
|
|
MAN.bsfilt=
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
FILESDIR= /usr/lib/cawf
|
|
|
|
FILES= common device.cf dumb.dev man.mac me.mac ms.mac mnx.mac
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.prog.mk>
|