1# Makefile for cawf 2 3# Define UNIX for vanilla Unix systems -- e.g., older DYNIX. 4# 5# Define UNIX and USG for System V, BSD 4.3 and for SunOS. 6# 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>. 9# 10#DEFS = -DUNIX -DUSG 11# 12# Define STDLIB for systems that have <stdlib.h> -- e.g., AIX and 13# SunOS. 14# 15# Redefine CAWFLIB by adding -DCAWFLIB=\"...\" to DEFS. 16# 17#DEFS = -DUNIX -DUSG -DCAWFLIB=\"/usr/local/lib/cawf\" 18# 19# Customize the install rule. 20# 21# -ansi and -pedantic are ANSI compliance options for the gcc compiler. 22# Remove them if your compiler objects. 23# 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. 28# 29#DEFS = -DUNIX -DSTDLIB -U__STR__ 30# 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). 34# 35#DEFS = -DUNIX -DMALLOCH 36DEFS= -DUNIX -DUSG -DSTDLIB 37CPPFLAGS+= ${DEFS} 38 39PROGS= bsfilt cawf 40SRCS.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 42SRCS.bsfilt= bsfilt.c 43 44LINKS+= ${BINDIR}/cawf ${BINDIR}/nroff 45 46# replaced by usr.bin/colcrt 47#LINKS+= ${BINDIR}/bsfilt ${BINDIR}/colcrt 48 49FILESDIR= /usr/lib/cawf 50FILES= common device.cf dumb.dev man.mac me.mac ms.mac mnx.mac 51 52.include <bsd.prog.mk> 53