source: trunk/minix/commands/cawf/Makefile@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 2.7 KB
Line 
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
36
37CC = exec cc
38
39DEFS = -DUNIX -DUSG -DSTDLIB
40
41CFLAGS = -i -f -wo -O ${DEFS}
42
43HDR = ansi.h cawf.h cawflib.h proto.h regexp.h regmagic.h
44
45SRC = 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
47
48OBJ = 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
50
51all: bsfilt cawf
52
53bsfilt: bsfilt.c
54 ${CC} ${CFLAGS} bsfilt.c -o $@
55 install -S 4kw $@
56
57cawf: ${OBJ}
58 ${CC} ${CFLAGS} ${OBJ} -o $@
59 install -S 56k $@
60
61clean:
62 rm -f *.o a.out core *errs bsfilt cawf
63
64${OBJ}: ${HDR}
65
66install: \
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
72
73/usr/bin/bsfilt: bsfilt
74 install -cs -o bin bsfilt $@
75
76/usr/bin/colcrt: /usr/bin/bsfilt
77 install -l /usr/bin/bsfilt $@
78
79/usr/bin/cawf: cawf
80 install -cs -o bin cawf $@
81
82/usr/bin/nroff: /usr/bin/cawf
83 install -l /usr/bin/cawf $@
84
85/usr/lib/cawf:
86 install -d -o bin /usr/lib/cawf
87
88/usr/lib/cawf/common: common
89 install -c -o bin common $@
90
91/usr/lib/cawf/device.cf: device.cf
92 install -c -o bin device.cf $@
93
94/usr/lib/cawf/dumb.dev: dumb.dev
95 install -c -o bin dumb.dev $@
96
97/usr/lib/cawf/man.mac: man.mac
98 install -c -o bin man.mac $@
99
100/usr/lib/cawf/me.mac: me.mac
101 install -c -o bin me.mac $@
102
103/usr/lib/cawf/ms.mac: ms.mac
104 install -c -o bin ms.mac $@
105
106/usr/lib/cawf/mnx.mac: mnx.mac
107 install -c -o bin mnx.mac $@
Note: See TracBrowser for help on using the repository browser.