1*b30d1939SAndy Fiddamaninfo mam static 00000 1994-07-17 make (AT&T Research) 5.7 2012-06-20
2*b30d1939SAndy Fiddamansetv INSTALLROOT ../../..
3*b30d1939SAndy Fiddamansetv PACKAGEROOT ../../../../..
4*b30d1939SAndy Fiddamansetv AR ${mam_cc_AR} ${mam_cc_AR_ARFLAGS}
5*b30d1939SAndy Fiddamansetv ARFLAGS rc
6*b30d1939SAndy Fiddamansetv AS as
7*b30d1939SAndy Fiddamansetv ASFLAGS
8*b30d1939SAndy Fiddamansetv CC cc
9*b30d1939SAndy Fiddamansetv mam_cc_FLAGS ${mam_cc_DLL} -D_BLD_ast
10*b30d1939SAndy Fiddamansetv CCFLAGS ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${mam_cc_OPTIMIZE}?}
11*b30d1939SAndy Fiddamansetv CCLDFLAGS ${-strip-symbols?1?${mam_cc_LD_STRIP}??}
12*b30d1939SAndy Fiddamansetv COTEMP $$
13*b30d1939SAndy Fiddamansetv CPIO cpio
14*b30d1939SAndy Fiddamansetv CPIOFLAGS
15*b30d1939SAndy Fiddamansetv CPP "${CC} -E"
16*b30d1939SAndy Fiddamansetv F77 f77
17*b30d1939SAndy Fiddamansetv HOSTCC ${CC}
18*b30d1939SAndy Fiddamansetv IGNORE
19*b30d1939SAndy Fiddamansetv LD ld
20*b30d1939SAndy Fiddamansetv LDFLAGS
21*b30d1939SAndy Fiddamansetv LEX lex
22*b30d1939SAndy Fiddamansetv LEXFLAGS
23*b30d1939SAndy Fiddamansetv LPR lpr
24*b30d1939SAndy Fiddamansetv LPRFLAGS
25*b30d1939SAndy Fiddamansetv M4FLAGS
26*b30d1939SAndy Fiddamansetv NMAKE nmake
27*b30d1939SAndy Fiddamansetv NMAKEFLAGS
28*b30d1939SAndy Fiddamansetv PR pr
29*b30d1939SAndy Fiddamansetv PRFLAGS
30*b30d1939SAndy Fiddamansetv SHELL /bin/sh
31*b30d1939SAndy Fiddamansetv SILENT
32*b30d1939SAndy Fiddamansetv TAR tar
33*b30d1939SAndy Fiddamansetv YACC yacc
34*b30d1939SAndy Fiddamansetv YACCFLAGS -d
35*b30d1939SAndy Fiddamanmake ${PACKAGEROOT}/lib/package/ast.lic
36*b30d1939SAndy Fiddamandone ${PACKAGEROOT}/lib/package/ast.lic
37*b30d1939SAndy Fiddamanmake install
38*b30d1939SAndy Fiddamanmake ast
39*b30d1939SAndy Fiddamanmake libast.a archive
40*b30d1939SAndy Fiddamanmake ast.req
41*b30d1939SAndy Fiddamanmake FEATURE/standards
42*b30d1939SAndy Fiddamanmeta FEATURE/standards features/%>FEATURE/% features/standards standards
43*b30d1939SAndy Fiddamanmake features/standards
44*b30d1939SAndy Fiddamandone features/standards
45*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/standards
46*b30d1939SAndy Fiddamandone FEATURE/standards generated
47*b30d1939SAndy Fiddamanmake FEATURE/lib
48*b30d1939SAndy Fiddamanmeta FEATURE/lib features/%>FEATURE/% features/lib lib
49*b30d1939SAndy Fiddamanmake features/lib
50*b30d1939SAndy Fiddamandone features/lib
51*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/lib
52*b30d1939SAndy Fiddamandone FEATURE/lib generated
53*b30d1939SAndy Fiddamanmake FEATURE/common
54*b30d1939SAndy Fiddamanmeta FEATURE/common features/%>FEATURE/% features/common common
55*b30d1939SAndy Fiddamanmake features/common
56*b30d1939SAndy Fiddamandone features/common
57*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/common
58*b30d1939SAndy Fiddamandone FEATURE/common generated
59*b30d1939SAndy Fiddamanmake FEATURE/param
60*b30d1939SAndy Fiddamanmeta FEATURE/param features/%.sh>FEATURE/% features/param.sh param
61*b30d1939SAndy Fiddamanmake features/param.sh
62*b30d1939SAndy Fiddamandone features/param.sh
63*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/param.sh
64*b30d1939SAndy Fiddamanmake std/endian.h implicit
65*b30d1939SAndy Fiddamanmake std/bytesex.h implicit
66*b30d1939SAndy Fiddamanmake ast_common.h implicit
67*b30d1939SAndy Fiddamanprev FEATURE/common
68*b30d1939SAndy Fiddamanexec - sed '/define _def_map_ast/d' < FEATURE/common > 1.${COTEMP}.x
69*b30d1939SAndy Fiddamanexec - if cmp 2>/dev/null -s ast_common.h 1.${COTEMP}.x
70*b30d1939SAndy Fiddamanexec - then rm -f 1.${COTEMP}.x
71*b30d1939SAndy Fiddamanexec - else mv 1.${COTEMP}.x ast_common.h
72*b30d1939SAndy Fiddamanexec - fi
73*b30d1939SAndy Fiddamanmake ast_map.h implicit
74*b30d1939SAndy Fiddamanmake FEATURE/map
75*b30d1939SAndy Fiddamanmeta FEATURE/map features/%.c>FEATURE/% features/map.c map
76*b30d1939SAndy Fiddamanmake features/map.c
77*b30d1939SAndy Fiddamanmake FEATURE/api implicit
78*b30d1939SAndy Fiddamanmeta FEATURE/api features/%>FEATURE/% features/api api
79*b30d1939SAndy Fiddamanmake features/api
80*b30d1939SAndy Fiddamandone features/api
81*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/api
82*b30d1939SAndy Fiddamandone FEATURE/api generated
83*b30d1939SAndy Fiddamanmake FEATURE/eaccess implicit
84*b30d1939SAndy Fiddamanmeta FEATURE/eaccess features/%>FEATURE/% features/eaccess eaccess
85*b30d1939SAndy Fiddamanmake features/eaccess
86*b30d1939SAndy Fiddamandone features/eaccess
87*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/eaccess
88*b30d1939SAndy Fiddamandone FEATURE/eaccess generated
89*b30d1939SAndy Fiddamanmake FEATURE/vmalloc implicit
90*b30d1939SAndy Fiddamanmeta FEATURE/vmalloc features/%>FEATURE/% features/vmalloc vmalloc
91*b30d1939SAndy Fiddamanmake features/vmalloc
92*b30d1939SAndy Fiddamandone features/vmalloc
93*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/vmalloc
94*b30d1939SAndy Fiddamanmake FEATURE/mmap implicit
95*b30d1939SAndy Fiddamanmeta FEATURE/mmap features/%>FEATURE/% features/mmap mmap
96*b30d1939SAndy Fiddamanmake features/mmap
97*b30d1939SAndy Fiddamandone features/mmap
98*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/mmap
99*b30d1939SAndy Fiddamandone FEATURE/mmap dontcare generated
100*b30d1939SAndy Fiddamandone FEATURE/vmalloc generated
101*b30d1939SAndy Fiddamanmake FEATURE/options implicit
102*b30d1939SAndy Fiddamanmeta FEATURE/options features/%>FEATURE/% features/options options
103*b30d1939SAndy Fiddamanmake features/options
104*b30d1939SAndy Fiddamandone features/options
105*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/options
106*b30d1939SAndy Fiddamandone FEATURE/options generated
107*b30d1939SAndy Fiddamanprev FEATURE/mmap implicit
108*b30d1939SAndy Fiddamanprev FEATURE/lib implicit
109*b30d1939SAndy Fiddamandone features/map.c
110*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I.  ${LDFLAGS} ' run features/map.c
111*b30d1939SAndy Fiddamandone FEATURE/map generated
112*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/map ast_map.h || { rm -f ast_map.h; silent test -d . || mkdir .; ${STDCP} FEATURE/map ast_map.h; }
113*b30d1939SAndy Fiddamandone ast_map.h dontcare generated
114*b30d1939SAndy Fiddamandone ast_common.h dontcare generated
115*b30d1939SAndy Fiddamandone std/bytesex.h dontcare
116*b30d1939SAndy Fiddamandone std/endian.h dontcare
117*b30d1939SAndy Fiddamandone FEATURE/param generated
118*b30d1939SAndy Fiddamanmake FEATURE/aso
119*b30d1939SAndy Fiddamanmeta FEATURE/aso features/%>FEATURE/% features/aso aso
120*b30d1939SAndy Fiddamanmake features/aso
121*b30d1939SAndy Fiddamandone features/aso
122*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/aso
123*b30d1939SAndy Fiddamandone FEATURE/aso generated
124*b30d1939SAndy Fiddamanprev ast_map.h
125*b30d1939SAndy Fiddamanmake ast_limits.h
126*b30d1939SAndy Fiddamanmake FEATURE/limits
127*b30d1939SAndy Fiddamanmeta FEATURE/limits features/%.c>FEATURE/% features/limits.c limits
128*b30d1939SAndy Fiddamanmake features/limits.c
129*b30d1939SAndy Fiddamanmake conflim.h implicit
130*b30d1939SAndy Fiddamanmake conf
131*b30d1939SAndy Fiddamanmake comp/conf.sh
132*b30d1939SAndy Fiddamandone comp/conf.sh
133*b30d1939SAndy Fiddamanmeta conf %.sh>% comp/conf.sh conf
134*b30d1939SAndy Fiddamanprev comp/conf.sh
135*b30d1939SAndy Fiddamanexec - case static,port:$OPTIND:$RANDOM in
136*b30d1939SAndy Fiddamanexec - ?*:*:*|*::*|*:*:$RANDOM)
137*b30d1939SAndy Fiddamanexec - ;;
138*b30d1939SAndy Fiddamanexec - *) if ENV= LC_ALL=C x= $SHELL -nc '[[ a || b ]] && : ${list[level]}  !(pattern)' 2>/dev/null
139*b30d1939SAndy Fiddamanexec - then if grep '### .*archaic.* ###' >/dev/null
140*b30d1939SAndy Fiddamanexec - then : conf contains archaic constructs :
141*b30d1939SAndy Fiddamanexec - else ENV= LC_ALL=C $SHELL -n comp/conf.sh
142*b30d1939SAndy Fiddamanexec - fi
143*b30d1939SAndy Fiddamanexec - fi
144*b30d1939SAndy Fiddamanexec - ;;
145*b30d1939SAndy Fiddamanexec - esac
146*b30d1939SAndy Fiddamanexec - case '${mam_cc_SHELLMAGIC}' in
147*b30d1939SAndy Fiddamanexec - "") case 29 in
148*b30d1939SAndy Fiddamanexec - 0) ${STDCP} comp/conf.sh conf
149*b30d1939SAndy Fiddamanexec - ;;
150*b30d1939SAndy Fiddamanexec - *) {
151*b30d1939SAndy Fiddamanexec - i=`(read x; echo $x) < comp/conf.sh`
152*b30d1939SAndy Fiddamanexec - case $i in
153*b30d1939SAndy Fiddamanexec - '#!'*|*'||'*|':'*|'":"'*|"':'"*) echo "$i" ;;
154*b30d1939SAndy Fiddamanexec - esac
155*b30d1939SAndy Fiddamanexec - cat - comp/conf.sh <<'!'
156*b30d1939SAndy Fiddamanexec - HOSTTYPE="${mam_cc_HOSTTYPE}"
157*b30d1939SAndy Fiddamanexec - !
158*b30d1939SAndy Fiddamanexec - } > conf
159*b30d1939SAndy Fiddamanexec - ;;
160*b30d1939SAndy Fiddamanexec - esac
161*b30d1939SAndy Fiddamanexec - ;;
162*b30d1939SAndy Fiddamanexec - *) cat - comp/conf.sh > conf <<'!'
163*b30d1939SAndy Fiddamanexec - ${mam_cc_SHELLMAGIC}
164*b30d1939SAndy Fiddamanexec - HOSTTYPE="${mam_cc_HOSTTYPE}"
165*b30d1939SAndy Fiddamanexec - !
166*b30d1939SAndy Fiddamanexec - ;;
167*b30d1939SAndy Fiddamanexec - esac
168*b30d1939SAndy Fiddamanexec - silent test -w conf -a -x conf || chmod u+w,+x conf
169*b30d1939SAndy Fiddamandone conf generated
170*b30d1939SAndy Fiddamanmake comp/conf.tab
171*b30d1939SAndy Fiddamandone comp/conf.tab
172*b30d1939SAndy Fiddamanexec - ${INSTALLROOT}/src/lib/libast/conf -v comp/conf.tab ${CC} ${mam_cc_FLAGS} ${CCFLAGS}
173*b30d1939SAndy Fiddamanmake joint.conflim.h joint
174*b30d1939SAndy Fiddamanprev conflim.h
175*b30d1939SAndy Fiddamanmake conftab.h
176*b30d1939SAndy Fiddamandone conftab.h generated
177*b30d1939SAndy Fiddamanmake conftab.c
178*b30d1939SAndy Fiddamandone conftab.c generated
179*b30d1939SAndy Fiddamandone joint.conflim.h generated virtual
180*b30d1939SAndy Fiddamandone conflim.h generated
181*b30d1939SAndy Fiddamanprev FEATURE/param implicit
182*b30d1939SAndy Fiddamanmake comp/getopt.h implicit
183*b30d1939SAndy Fiddamanmake include/ast_getopt.h implicit
184*b30d1939SAndy Fiddamandone include/ast_getopt.h dontcare
185*b30d1939SAndy Fiddamandone comp/getopt.h dontcare
186*b30d1939SAndy Fiddamanprev FEATURE/common implicit
187*b30d1939SAndy Fiddamanprev FEATURE/lib implicit
188*b30d1939SAndy Fiddamanprev FEATURE/standards implicit
189*b30d1939SAndy Fiddamandone features/limits.c
190*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd  ${LDFLAGS} ' run features/limits.c
191*b30d1939SAndy Fiddamandone FEATURE/limits generated
192*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/limits ast_limits.h || { rm -f ast_limits.h; silent test -d . || mkdir .; ${STDCP} FEATURE/limits ast_limits.h; }
193*b30d1939SAndy Fiddamandone ast_limits.h generated
194*b30d1939SAndy Fiddamanmake ast_stdio.h
195*b30d1939SAndy Fiddamanmake FEATURE/stdio
196*b30d1939SAndy Fiddamanmeta FEATURE/stdio features/%>FEATURE/% features/stdio stdio
197*b30d1939SAndy Fiddamanmake features/stdio
198*b30d1939SAndy Fiddamandone features/stdio
199*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/stdio
200*b30d1939SAndy Fiddamanmake include/sfio_s.h implicit
201*b30d1939SAndy Fiddamandone include/sfio_s.h dontcare
202*b30d1939SAndy Fiddamanmake include/ast_std.h implicit
203*b30d1939SAndy Fiddamanmake include/regex.h implicit
204*b30d1939SAndy Fiddamanmake ast_api.h implicit
205*b30d1939SAndy Fiddamanprev FEATURE/api
206*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/api ast_api.h || { rm -f ast_api.h; silent test -d . || mkdir .; ${STDCP} FEATURE/api ast_api.h; }
207*b30d1939SAndy Fiddamandone ast_api.h dontcare generated
208*b30d1939SAndy Fiddamanmake ast_wchar.h implicit
209*b30d1939SAndy Fiddamanmake FEATURE/wchar
210*b30d1939SAndy Fiddamanmeta FEATURE/wchar features/%>FEATURE/% features/wchar wchar
211*b30d1939SAndy Fiddamanmake features/wchar
212*b30d1939SAndy Fiddamanprev ast_common.h implicit
213*b30d1939SAndy Fiddamandone features/wchar
214*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/wchar
215*b30d1939SAndy Fiddamanmake std/wctype.h implicit
216*b30d1939SAndy Fiddamanmake ast_wctype.h implicit
217*b30d1939SAndy Fiddamanmake FEATURE/wctype
218*b30d1939SAndy Fiddamanmeta FEATURE/wctype features/%>FEATURE/% features/wctype wctype
219*b30d1939SAndy Fiddamanmake features/wctype
220*b30d1939SAndy Fiddamandone features/wctype
221*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/wctype
222*b30d1939SAndy Fiddamanprev std/endian.h implicit
223*b30d1939SAndy Fiddamanmake std/wchar.h implicit
224*b30d1939SAndy Fiddamanprev ast_wchar.h implicit
225*b30d1939SAndy Fiddamandone std/wchar.h dontcare
226*b30d1939SAndy Fiddamandone FEATURE/wctype generated
227*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/wctype ast_wctype.h || { rm -f ast_wctype.h; silent test -d . || mkdir .; ${STDCP} FEATURE/wctype ast_wctype.h; }
228*b30d1939SAndy Fiddamandone ast_wctype.h dontcare generated
229*b30d1939SAndy Fiddamandone std/wctype.h dontcare
230*b30d1939SAndy Fiddamanmake std/stdio.h implicit
231*b30d1939SAndy Fiddamanprev ast_stdio.h implicit
232*b30d1939SAndy Fiddamandone std/stdio.h dontcare
233*b30d1939SAndy Fiddamanprev std/stdio.h implicit
234*b30d1939SAndy Fiddamanprev ast_common.h implicit
235*b30d1939SAndy Fiddamandone FEATURE/wchar generated
236*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/wchar ast_wchar.h || { rm -f ast_wchar.h; silent test -d . || mkdir .; ${STDCP} FEATURE/wchar ast_wchar.h; }
237*b30d1939SAndy Fiddamanprev std/stdio.h implicit
238*b30d1939SAndy Fiddamanprev ast_common.h implicit
239*b30d1939SAndy Fiddamandone ast_wchar.h dontcare generated
240*b30d1939SAndy Fiddamanprev ast_common.h implicit
241*b30d1939SAndy Fiddamandone include/regex.h dontcare
242*b30d1939SAndy Fiddamanprev comp/getopt.h implicit
243*b30d1939SAndy Fiddamanprev ast_map.h implicit
244*b30d1939SAndy Fiddamanmake ast_botch.h implicit
245*b30d1939SAndy Fiddamanmake FEATURE/botch
246*b30d1939SAndy Fiddamanmeta FEATURE/botch features/%.c>FEATURE/% features/botch.c botch
247*b30d1939SAndy Fiddamanmake features/botch.c
248*b30d1939SAndy Fiddamanmake FEATURE/sys implicit
249*b30d1939SAndy Fiddamanmeta FEATURE/sys features/%>FEATURE/% features/sys sys
250*b30d1939SAndy Fiddamanmake features/sys
251*b30d1939SAndy Fiddamandone features/sys
252*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/sys
253*b30d1939SAndy Fiddamanprev std/endian.h implicit
254*b30d1939SAndy Fiddamanprev std/endian.h implicit
255*b30d1939SAndy Fiddamandone FEATURE/sys generated
256*b30d1939SAndy Fiddamanprev FEATURE/lib implicit
257*b30d1939SAndy Fiddamandone features/botch.c
258*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd  ${LDFLAGS} ' run features/botch.c
259*b30d1939SAndy Fiddamandone FEATURE/botch generated
260*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/botch ast_botch.h || { rm -f ast_botch.h; silent test -d . || mkdir .; ${STDCP} FEATURE/botch ast_botch.h; }
261*b30d1939SAndy Fiddamandone ast_botch.h dontcare generated
262*b30d1939SAndy Fiddamanprev ast_limits.h implicit
263*b30d1939SAndy Fiddamanmake ast_fcntl.h implicit
264*b30d1939SAndy Fiddamanmake FEATURE/fcntl
265*b30d1939SAndy Fiddamanmeta FEATURE/fcntl features/%.c>FEATURE/% features/fcntl.c fcntl
266*b30d1939SAndy Fiddamanmake features/fcntl.c
267*b30d1939SAndy Fiddamanmake FEATURE/tty implicit
268*b30d1939SAndy Fiddamanmeta FEATURE/tty features/%>FEATURE/% features/tty tty
269*b30d1939SAndy Fiddamanmake features/tty
270*b30d1939SAndy Fiddamandone features/tty
271*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/tty
272*b30d1939SAndy Fiddamandone FEATURE/tty generated
273*b30d1939SAndy Fiddamanmake FEATURE/fs implicit
274*b30d1939SAndy Fiddamanmeta FEATURE/fs features/%>FEATURE/% features/fs fs
275*b30d1939SAndy Fiddamanmake features/fs
276*b30d1939SAndy Fiddamandone features/fs
277*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/fs
278*b30d1939SAndy Fiddamandone FEATURE/fs generated
279*b30d1939SAndy Fiddamanprev FEATURE/lib implicit
280*b30d1939SAndy Fiddamandone features/fcntl.c
281*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd  ${LDFLAGS} ' run features/fcntl.c
282*b30d1939SAndy Fiddamanmake ast_fs.h implicit
283*b30d1939SAndy Fiddamanprev FEATURE/fs
284*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/fs ast_fs.h || { rm -f ast_fs.h; silent test -d . || mkdir .; ${STDCP} FEATURE/fs ast_fs.h; }
285*b30d1939SAndy Fiddamandone ast_fs.h dontcare generated
286*b30d1939SAndy Fiddamandone FEATURE/fcntl generated
287*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/fcntl ast_fcntl.h || { rm -f ast_fcntl.h; silent test -d . || mkdir .; ${STDCP} FEATURE/fcntl ast_fcntl.h; }
288*b30d1939SAndy Fiddamanprev ast_fs.h implicit
289*b30d1939SAndy Fiddamandone ast_fcntl.h dontcare generated
290*b30d1939SAndy Fiddamanprev include/ast_getopt.h implicit
291*b30d1939SAndy Fiddamanmake ast_sys.h implicit
292*b30d1939SAndy Fiddamanprev FEATURE/sys
293*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/sys ast_sys.h || { rm -f ast_sys.h; silent test -d . || mkdir .; ${STDCP} FEATURE/sys ast_sys.h; }
294*b30d1939SAndy Fiddamandone ast_sys.h dontcare generated
295*b30d1939SAndy Fiddamanmake ast_lib.h implicit
296*b30d1939SAndy Fiddamanprev FEATURE/lib
297*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/lib ast_lib.h || { rm -f ast_lib.h; silent test -d . || mkdir .; ${STDCP} FEATURE/lib ast_lib.h; }
298*b30d1939SAndy Fiddamandone ast_lib.h dontcare generated
299*b30d1939SAndy Fiddamanprev ast_common.h implicit
300*b30d1939SAndy Fiddamandone include/ast_std.h dontcare
301*b30d1939SAndy Fiddamandone FEATURE/stdio generated
302*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/stdio ast_stdio.h || { rm -f ast_stdio.h; silent test -d . || mkdir .; ${STDCP} FEATURE/stdio ast_stdio.h; }
303*b30d1939SAndy Fiddamanprev include/sfio_s.h implicit
304*b30d1939SAndy Fiddamanprev include/ast_std.h implicit
305*b30d1939SAndy Fiddamandone ast_stdio.h dontcare generated
306*b30d1939SAndy Fiddamanmake ast_nl_types.h
307*b30d1939SAndy Fiddamanmake FEATURE/nl_types
308*b30d1939SAndy Fiddamanmeta FEATURE/nl_types features/%>FEATURE/% features/nl_types nl_types
309*b30d1939SAndy Fiddamanmake features/nl_types
310*b30d1939SAndy Fiddamandone features/nl_types
311*b30d1939SAndy Fiddamanexec - iffe -v -X ast -X std -c '${CC} ${mam_cc_FLAGS} ${CCFLAGS}   ${LDFLAGS} ' run features/nl_types
312*b30d1939SAndy Fiddamandone FEATURE/nl_types generated
313*b30d1939SAndy Fiddamanexec - cmp 2>/dev/null -s FEATURE/nl_types ast_nl_types.h || { rm -f ast_nl_types.h; silent test -d . || mkdir .; ${STDCP} FEATURE/nl_types ast_nl_types.h; }
314*b30d1939SAndy Fiddamandone ast_nl_types.h generated
315*b30d1939SAndy Fiddamanprev ast_wchar.h
316*b30d1939SAndy Fiddamanprev ast_wctype.h
317*b30d1939SAndy Fiddamanexec - : clean up obsolete headers :
318*b30d1939SAndy Fiddamanexec - rm -rf dirent.h iconv.h nl_types.h stdio.h wchar.h wctype.h ast_hdr.h ast_types.h ast_unistd.h iffeio.h \
319*b30d1939SAndy Fiddamanexec - ${INSTALLROOT}/include/ast/limits.h ${INSTALLROOT}/include/ast/unistd.h \
320*b30d1939SAndy Fiddamanexec - ${PACKAGEROOT}/src/lib/libast/std/limits.h
321*b30d1939SAndy Fiddamanexec - set -
322*b30d1939SAndy Fiddamanexec - echo 'int main(){return 0;}' > 1.${COTEMP}.c
323*b30d1939SAndy Fiddamanexec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -c 1.${COTEMP}.c &&
324*b30d1939SAndy Fiddamanexec - x=`${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} -o 1.${COTEMP}.x 1.${COTEMP}.o -l'*' 2>&1 | sed -e 's/[][()+@?]/#/g' || :` &&
325*b30d1939SAndy Fiddamanexec - {
326*b30d1939SAndy Fiddamanexec - case "" in
327*b30d1939SAndy Fiddamanexec - *?) echo " " ;;
328*b30d1939SAndy Fiddamanexec - esac
329*b30d1939SAndy Fiddamanexec - for i in ast iconv w
330*b30d1939SAndy Fiddamanexec - do case $i in
331*b30d1939SAndy Fiddamanexec - "ast"|ast)
332*b30d1939SAndy Fiddamanexec - ;;
333*b30d1939SAndy Fiddamanexec - *) if test -f ${INSTALLROOT}/lib/lib/$i
334*b30d1939SAndy Fiddamanexec - then y=`cat ${INSTALLROOT}/lib/lib/$i`
335*b30d1939SAndy Fiddamanexec - case $y in
336*b30d1939SAndy Fiddamanexec - *-?*) echo "" $y ;;
337*b30d1939SAndy Fiddamanexec - esac
338*b30d1939SAndy Fiddamanexec - continue
339*b30d1939SAndy Fiddamanexec - elif test ! -f ${INSTALLROOT}/lib/lib$i.a
340*b30d1939SAndy Fiddamanexec - then case `{ ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} -o 1.${COTEMP}.x 1.${COTEMP}.o -l$i 2>&1 || echo '' $x ;} | sed -e 's/[][()+@?]/#/g' || :` in
341*b30d1939SAndy Fiddamanexec - *$x*) case `{ ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${LDFLAGS} -o 1.${COTEMP}.x 1.${COTEMP}.o -l$i 2>&1 || echo '' $x ;} | sed -e 's/[][()+@?]/#/g' || :` in
342*b30d1939SAndy Fiddamanexec - *$x*) continue ;;
343*b30d1939SAndy Fiddamanexec - esac
344*b30d1939SAndy Fiddamanexec - ;;
345*b30d1939SAndy Fiddamanexec - esac
346*b30d1939SAndy Fiddamanexec - fi
347*b30d1939SAndy Fiddamanexec - ;;
348*b30d1939SAndy Fiddamanexec - esac
349*b30d1939SAndy Fiddamanexec - echo " -l$i"
350*b30d1939SAndy Fiddamanexec - done
351*b30d1939SAndy Fiddamanexec - } > ast.req
352*b30d1939SAndy Fiddamanexec - rm -f 1.${COTEMP}.*
353*b30d1939SAndy Fiddamanmake astmath.exe
354*b30d1939SAndy Fiddamanmake port/astmath.c
355*b30d1939SAndy Fiddamanprev std/endian.h implicit
356*b30d1939SAndy Fiddamanprev std/endian.h implicit
357*b30d1939SAndy Fiddamandone port/astmath.c
358*b30d1939SAndy Fiddamanexec - X=1
359*b30d1939SAndy Fiddamanexec - for N in 1 2 3 4 5 6 8
360*b30d1939SAndy Fiddamanexec - do if ${CC} -DN=$N -DIS ${mam_cc_FLAGS} ${CCFLAGS} -I. -Istd -o astmath.exe port/astmath.c 2>/dev/null
361*b30d1939SAndy Fiddamanexec - then : implicit math function N=$N :
362*b30d1939SAndy Fiddamanexec - elif ${CC} -DN=$N -DIS ${mam_cc_FLAGS} ${CCFLAGS} -I. -Istd -o astmath.exe port/astmath.c -lm 2>/dev/null
363*b30d1939SAndy Fiddamanexec - then : math function N=$N requires -lm :
364*b30d1939SAndy Fiddamanexec - X=0
365*b30d1939SAndy Fiddamanexec - break
366*b30d1939SAndy Fiddamanexec - fi
367*b30d1939SAndy Fiddamanexec - done
368*b30d1939SAndy Fiddamanexec - case $X in
369*b30d1939SAndy Fiddamanexec - 0) rm -f astmath.exe ;;
370*b30d1939SAndy Fiddamanexec - *) touch astmath.exe ;;
371*b30d1939SAndy Fiddamanexec - esac
372*b30d1939SAndy Fiddamanexec - rm -f astmath
373*b30d1939SAndy Fiddamandone astmath.exe dontcare generated
374*b30d1939SAndy Fiddamanprev FEATURE/aso
375*b30d1939SAndy Fiddamanexec - sed -e '/^#define _REQ_/!d' -e 's/#define _REQ_\([a-z0-9_]*\).*/ -l\1/' FEATURE/aso >> ast.req
376*b30d1939SAndy Fiddamanexec - if test -f astmath.exe
377*b30d1939SAndy Fiddamanexec - then touch ast.req
378*b30d1939SAndy Fiddamanexec - else echo ' -lm' >> ast.req
379*b30d1939SAndy Fiddamanexec - fi
380*b30d1939SAndy Fiddamandone ast.req generated
381*b30d1939SAndy Fiddamanmake state.o
382*b30d1939SAndy Fiddamanmake misc/state.c
383*b30d1939SAndy Fiddamanmake include/ast.h implicit
384*b30d1939SAndy Fiddamanprev ast_api.h implicit
385*b30d1939SAndy Fiddamanmake include/vmalloc.h implicit
386*b30d1939SAndy Fiddamanprev ast_common.h implicit
387*b30d1939SAndy Fiddamanprev include/ast_std.h implicit
388*b30d1939SAndy Fiddamandone include/vmalloc.h dontcare
389*b30d1939SAndy Fiddamanmake include/sfio.h implicit
390*b30d1939SAndy Fiddamanprev include/sfio_s.h implicit
391*b30d1939SAndy Fiddamanprev ast_common.h implicit
392*b30d1939SAndy Fiddamanprev include/ast_std.h implicit
393*b30d1939SAndy Fiddamandone include/sfio.h dontcare
394*b30d1939SAndy Fiddamanprev include/ast_std.h implicit
395*b30d1939SAndy Fiddamandone include/ast.h
396*b30d1939SAndy Fiddamandone misc/state.c
397*b30d1939SAndy Fiddamanmeta state.o %.c>%.o misc/state.c state
398*b30d1939SAndy Fiddamanprev misc/state.c
399*b30d1939SAndy Fiddamanexec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -D_PACKAGE_ast -c misc/state.c
400*b30d1939SAndy Fiddamandone state.o generated
401*b30d1939SAndy Fiddamanmake transition.o
402*b30d1939SAndy Fiddamanmake comp/transition.c
403*b30d1939SAndy Fiddamanprev include/ast.h implicit
404*b30d1939SAndy Fiddamandone comp/transition.c
405*b30d1939SAndy Fiddamanmeta transition.o %.c>%.o comp/transition.c transition
406*b30d1939SAndy Fiddamanprev comp/transition.c
407*b30d1939SAndy Fiddamanexec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -D_PACKAGE_ast -c comp/transition.c
408*b30d1939SAndy Fiddamandone transition.o generated
409