perl 5.0 alpha 8
[p5sagit/p5-mst-13.2.git] / x2p / makefile
CommitLineData
2304df62 1# $RCSfile: Makefile.SH,v 28453Revision: 4.1 28453Date: 92/08/07 18:29:07 $
79072805 2#
3# $Log: Makefile.SH,v $
4# Revision 4.1 92/08/07 18:29:07 lwall
5#
6# Revision 4.0.1.3 92/06/08 16:11:32 lwall
7# patch20: SH files didn't work well with symbolic links
8# patch20: cray didn't give enough memory to /bin/sh
9# patch20: makefiles now display new shift/reduce expectations
10#
11# Revision 4.0.1.2 91/11/05 19:19:04 lwall
12# patch11: random cleanup
13#
14# Revision 4.0.1.1 91/06/07 12:12:14 lwall
15# patch4: cflags now emits entire cc command except for the filename
16#
17# Revision 4.0 91/03/20 01:57:03 lwall
18# 4.0 baseline.
19#
20#
21
22CC = cc
2304df62 23YACC = yacc
79072805 24bin = /usr/local/bin
2304df62 25lib = /usr/local/lib
26mansrc = /usr/local/man/man1
27manext = 1
79072805 28LDFLAGS =
29SMALL =
30LARGE =
31mallocsrc = malloc.c
32mallocobj = malloc.o
33shellflags =
34
2304df62 35libs = -ldl -lm -lposix
79072805 36
37CCCMD = `sh $(shellflags) cflags $@`
38
39public = a2p s2p find2perl
40
41private =
42
43manpages = a2p.man s2p.man
44
45util =
46
47sh = Makefile.SH makedepend.SH
48
49h = EXTERN.h INTERN.h ../config.h handy.h hash.h a2p.h str.h util.h
50
51c = hash.c $(mallocsrc) str.c util.c walk.c
52
53obj = hash.o $(mallocobj) str.o util.o walk.o
54
55lintflags = -phbvxac
56
57addedbyconf = Makefile.old bsd eunice filexp loc pdp11 usg v7
58
59# grrr
60SHELL = /bin/sh
61
62.c.o:
63 $(CCCMD) $*.c
64
65all: $(public) $(private) $(util)
66 touch all
67
68a2p: $(obj) a2p.o
69 $(CC) $(LDFLAGS) $(obj) a2p.o $(libs) -o a2p
70
71a2p.c: a2p.y
72 @ echo Expect 231 shift/reduce conflicts...
73 $(YACC) a2p.y
74 mv y.tab.c a2p.c
75
76a2p.o: a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h handy.h ../config.h str.h hash.h
77 $(CCCMD) $(LARGE) a2p.c
78
79install: a2p s2p
80# won't work with csh
81 export PATH || exit 1
82 - mv $(bin)/a2p $(bin)/a2p.old 2>/dev/null
83 - mv $(bin)/s2p $(bin)/s2p.old 2>/dev/null
84 - if test `pwd` != $(bin); then cp $(public) $(bin); fi
85 cd $(bin); \
86for pub in $(public); do \
87chmod +x `basename $$pub`; \
88done
89 - if test `pwd` != $(mansrc); then \
90for page in $(manpages); do \
91cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
92done; \
93fi
94
95clean:
96 rm -f a2p *.o a2p.c
97
98realclean: clean
99 rm -f *.orig */*.orig core $(addedbyconf) a2p.c s2p find2perl all cflags
100
101# The following lint has practically everything turned on. Unfortunately,
102# you have to wade through a lot of mumbo jumbo that can't be suppressed.
103# If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
104# for that spot.
105
106lint:
107 lint $(lintflags) $(defs) $(c) > a2p.fuzz
108
109depend: $(mallocsrc) ../makedepend
110 ../makedepend
111
112clist:
113 echo $(c) | tr ' ' '\012' >.clist
114
115hlist:
116 echo $(h) | tr ' ' '\012' >.hlist
117
118shlist:
119 echo $(sh) | tr ' ' '\012' >.shlist
120
121config.sh: ../config.sh
122 rm -f config.sh
123 ln ../config.sh .
124
125malloc.c: ../malloc.c
126 sed <../malloc.c >malloc.c \
127 -e 's/"perl.h"/"..\/perl.h"/' \
128 -e 's/my_exit/exit/'
129
130# AUTOMATICALLY GENERATED MAKE DEPENDENCIES--PUT NOTHING BELOW THIS LINE
131# If this runs make out of memory, delete /usr/include lines.
79072805 132hash.o: ../config.h
2304df62 133hash.o: /usr/include/ctype.h
134hash.o: /usr/include/stdio.h
79072805 135hash.o: EXTERN.h
136hash.o: a2p.h
137hash.o: handy.h
138hash.o: hash.c
139hash.o: hash.h
140hash.o: str.h
141hash.o: util.h
79072805 142malloc.o: ../av.h
143malloc.o: ../config.h
144malloc.o: ../cop.h
2304df62 145malloc.o: ../cv.h
79072805 146malloc.o: ../embed.h
147malloc.o: ../form.h
148malloc.o: ../gv.h
149malloc.o: ../handy.h
150malloc.o: ../hv.h
2304df62 151malloc.o: ../mg.h
79072805 152malloc.o: ../op.h
153malloc.o: ../opcode.h
154malloc.o: ../perl.h
79072805 155malloc.o: ../pp.h
156malloc.o: ../proto.h
157malloc.o: ../regexp.h
2304df62 158malloc.o: ../scope.h
79072805 159malloc.o: ../sv.h
160malloc.o: ../unixish.h
161malloc.o: ../util.h
2304df62 162malloc.o: /usr/include/ctype.h
163malloc.o: /usr/include/dirent.h
164malloc.o: /usr/include/errno.h
165malloc.o: /usr/include/machine/param.h
166malloc.o: /usr/include/machine/setjmp.h
167malloc.o: /usr/include/netinet/in.h
168malloc.o: /usr/include/setjmp.h
169malloc.o: /usr/include/stdio.h
170malloc.o: /usr/include/sys/dirent.h
171malloc.o: /usr/include/sys/errno.h
172malloc.o: /usr/include/sys/filio.h
173malloc.o: /usr/include/sys/ioccom.h
174malloc.o: /usr/include/sys/ioctl.h
175malloc.o: /usr/include/sys/param.h
176malloc.o: /usr/include/sys/signal.h
177malloc.o: /usr/include/sys/sockio.h
178malloc.o: /usr/include/sys/stat.h
179malloc.o: /usr/include/sys/stdtypes.h
180malloc.o: /usr/include/sys/sysmacros.h
181malloc.o: /usr/include/sys/time.h
182malloc.o: /usr/include/sys/times.h
183malloc.o: /usr/include/sys/ttold.h
184malloc.o: /usr/include/sys/ttychars.h
185malloc.o: /usr/include/sys/ttycom.h
186malloc.o: /usr/include/sys/ttydev.h
187malloc.o: /usr/include/sys/types.h
188malloc.o: /usr/include/time.h
189malloc.o: /usr/include/varargs.h
190malloc.o: /usr/include/vm/faultcode.h
79072805 191malloc.o: EXTERN.h
192malloc.o: malloc.c
79072805 193str.o: ../config.h
2304df62 194str.o: /usr/include/ctype.h
195str.o: /usr/include/stdio.h
79072805 196str.o: EXTERN.h
197str.o: a2p.h
198str.o: handy.h
199str.o: hash.h
200str.o: str.c
201str.o: str.h
202str.o: util.h
79072805 203util.o: ../config.h
2304df62 204util.o: /usr/include/ctype.h
205util.o: /usr/include/stdio.h
79072805 206util.o: EXTERN.h
207util.o: INTERN.h
208util.o: a2p.h
209util.o: handy.h
210util.o: hash.h
211util.o: str.h
212util.o: util.c
213util.o: util.h
79072805 214walk.o: ../config.h
2304df62 215walk.o: /usr/include/ctype.h
216walk.o: /usr/include/stdio.h
79072805 217walk.o: EXTERN.h
218walk.o: a2p.h
219walk.o: handy.h
220walk.o: hash.h
221walk.o: str.h
222walk.o: util.h
223walk.o: walk.c
224Makefile: Makefile.SH config.sh ; /bin/sh Makefile.SH
225makedepend: makedepend.SH config.sh ; /bin/sh makedepend.SH
226# WARNING: Put nothing here or make depend will gobble it up!