t40c term[] count fix
[minix.git] / commands / cawf / Makefile
blob9b635d6d40c32c46b953fb91c5866f21f963d177
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 #LSC For now...
37 NOGCCERROR:= yes
39 DEFS= -DUNIX -DUSG -DSTDLIB
40 CPPFLAGS+= ${DEFS}
42 PROGS= bsfilt cawf
43 SRCS.cawf= cawf.c device.c error.c expand.c expr.c getopt.c macsup.c nreq.c \
44 output.c pass2.c pass3.c regerror.c regexp.c store.c string.c
45 SRCS.bsfilt= bsfilt.c
47 LINKS+= ${BINDIR}/cawf ${BINDIR}/nroff
48 LINKS+= ${BINDIR}/bsfilt ${BINDIR}/colcrt
49 MAN.cawf=
50 MAN.bsfilt=
52 FILESDIR= /usr/lib/cawf
53 FILES= common device.cf dumb.dev man.mac me.mac ms.mac mnx.mac
55 .include <bsd.prog.mk>