minor fixes for safecopy & safemap tests
[minix.git] / commands / cawf / Makefile
bloba24d73a50126f61f3a1821e3acd4e9ee1ce2c47a
1 # Makefile for cawf
3 # Define UNIX for vanilla Unix systems -- e.g., older DYNIX.
5 # Define UNIX and USG for System V, BSD 4.3 and for SunOS.
7 # USG may also be needed if the required string function prototypes --
8 # e.g., for strrchr() -- are in <string.h> rather than <strings.h>.
10 #DEFS = -DUNIX -DUSG
12 # Define STDLIB for systems that have <stdlib.h> -- e.g., AIX and
13 # SunOS.
15 # Redefine CAWFLIB by adding -DCAWFLIB=\"...\" to DEFS.
17 #DEFS = -DUNIX -DUSG -DCAWFLIB=\"/usr/local/lib/cawf\"
19 # Customize the install rule.
21 # -ansi and -pedantic are ANSI compliance options for the gcc compiler.
22 # Remove them if your compiler objects.
24 # If you're using xlc 2.1 on AIX 3.2 for the RISC/SYSTEM 6000, you
25 # must delete the definition of __STR__ (two leading and two trailing
26 # underscore characters), because the xlc 2.1 compiler incorrectly
27 # inlines string functions when compiling pass3.c.
29 #DEFS = -DUNIX -DSTDLIB -U__STR__
31 # Unix systems that have a <malloc.h> need MALLOCH defined, unless
32 # they also have a <stdlib.h> that provides a function prototype for
33 # malloc() and its relatives (most do).
35 #DEFS = -DUNIX -DMALLOCH
36 DEFS= -DUNIX -DUSG -DSTDLIB
37 CPPFLAGS+= ${DEFS}
39 PROGS= bsfilt cawf
40 SRCS.cawf= cawf.c device.c error.c expand.c expr.c getopt.c macsup.c nreq.c \
41 output.c pass2.c pass3.c regerror.c regexp.c store.c string.c
42 SRCS.bsfilt= bsfilt.c
44 LINKS+= ${BINDIR}/cawf ${BINDIR}/nroff
45 LINKS+= ${BINDIR}/bsfilt ${BINDIR}/colcrt
46 MAN.cawf=
47 MAN.bsfilt=
49 FILESDIR= /usr/lib/cawf
50 FILES= common device.cf dumb.dev man.mac me.mac ms.mac mnx.mac
52 .include <bsd.prog.mk>