Fixes for /usr/xbin binaries bootstrap dir.
[minix3.git] / commands / cawf / Makefile
blobcf7bd9343d9ed87ce43b607991d5d4e10a93b29d
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
37 CC = exec cc
39 DEFS = -DUNIX -DUSG -DSTDLIB
41 CFLAGS = -i -f -wo -O ${DEFS}
43 HDR = ansi.h cawf.h cawflib.h proto.h regexp.h regmagic.h
45 SRC = cawf.c device.c error.c expand.c expr.c getopt.c macsup.c nreq.c \
46 output.c pass2.c pass3.c regerror.c regexp.c store.c string.c
48 OBJ = cawf.o device.o error.o expand.o expr.o getopt.o macsup.o nreq.o \
49 output.o pass2.o pass3.o regerror.o regexp.o store.o string.o
51 all: bsfilt cawf
53 bsfilt: bsfilt.c
54 ${CC} ${CFLAGS} bsfilt.c -o $@
55 install -S 4kw $@
57 cawf: ${OBJ}
58 ${CC} ${CFLAGS} ${OBJ} -o $@
59 install -S 56k $@
61 clean:
62 rm -f *.o a.out core *errs bsfilt cawf
64 ${OBJ}: ${HDR}
66 install: \
67 /usr/bin/bsfilt /usr/bin/colcrt /usr/bin/cawf \
68 /usr/bin/nroff /usr/lib/cawf /usr/lib/cawf/common \
69 /usr/lib/cawf/device.cf /usr/lib/cawf/dumb.dev \
70 /usr/lib/cawf/man.mac /usr/lib/cawf/me.mac \
71 /usr/lib/cawf/ms.mac /usr/lib/cawf/mnx.mac
73 /usr/bin/bsfilt: bsfilt
74 install -cs -o bin bsfilt $@
76 /usr/bin/colcrt: /usr/bin/bsfilt
77 install -l /usr/bin/bsfilt $@
79 /usr/bin/cawf: cawf
80 install -cs -o bin cawf $@
82 /usr/bin/nroff: /usr/bin/cawf
83 install -l /usr/bin/cawf $@
85 /usr/lib/cawf:
86 install -d -o bin /usr/lib/cawf
88 /usr/lib/cawf/common: common
89 install -c -o bin common $@
91 /usr/lib/cawf/device.cf: device.cf
92 install -c -o bin device.cf $@
94 /usr/lib/cawf/dumb.dev: dumb.dev
95 install -c -o bin dumb.dev $@
97 /usr/lib/cawf/man.mac: man.mac
98 install -c -o bin man.mac $@
100 /usr/lib/cawf/me.mac: me.mac
101 install -c -o bin me.mac $@
103 /usr/lib/cawf/ms.mac: ms.mac
104 install -c -o bin ms.mac $@
106 /usr/lib/cawf/mnx.mac: mnx.mac
107 install -c -o bin mnx.mac $@