# make -f sgs.mk cd as; \ for tool in libld as cmd optim comp ld sdp compress dis dump list lorder nm size strip ar unix_conv; \ do \ echo "Making $tool all"; \ cd ../$tool; \ make -b SGS= CC="cc -Uvax -Dns32000" \ BINDIR=/bin LIBDIR=/lib \ -f $tool.mk all; \ done Making libld all if u3b || vax || ns32000; then \ cd common; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make libld library: unknown target procesor.'; \ fi cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldaclose.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldaopen.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldclose.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldahread.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldlseek.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldnlseek.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldnrseek.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldnsseek.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldnshread.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldopen.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldrseek.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldlread.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldsseek.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldshread.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldfhread.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldtbseek.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldohseek.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldtbread.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldtbindex.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include ldgetname.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include allocldptr.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include freeldptr.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include vldldptr.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include sgetl.c cc -Uvax -Dns32000 -c -O -DPORTAR -DAR32W -DFLEXNAMES -I../../inc/common -I/usr/include sputl.c rm -f libld.a ar r libld.a ldaclose.o ldaopen.o ldclose.o ldahread.o ldlseek.o ldnlseek.o ldnrseek.o ldnsseek.o ldnshread.o ldopen.o ldrseek.o ldlread.o ldsseek.o ldshread.o ldfhread.o ldtbseek.o ldohseek.o ldtbread.o ldtbindex.o ldgetname.o allocldptr.o freeldptr.o vldldptr.o sgetl.o sputl.o ar: creating libld.a Making as all if vax; \ then \ cd vax; \ make -b CC="cc -Uvax -Dns32000" ; \ cd ../lj_vax; \ make -b CC="cc -Uvax -Dns32000" ; \ elif pdp11; \ then \ cd pdp; \ make -b CC="cc -Uvax -Dns32000" ; \ elif u3b; \ then \ cd u3b; \ make -b CC="cc -Uvax -Dns32000" ; \ elif ns32000; \ then \ cd ns32000; \ make -b CC="cc -Uvax -Dns32000" ; \ else \ echo 'Cannot make as command: unknown target procesor.'; \ fi yacc -d as.parse.y ed y.tab.c <:yyfix 50073 50101 cc -Uvax -Dns32000 -O -DFLEXNAMES -DAR32WR -DYYDEBUG=0 -c y.tab.c rm y.tab.c mv y.tab.o as.parse.o cc -Uvax -Dns32000 -O -c as.sym.c cc -Uvax -Dns32000 -O -c as.gen.c cc -Uvax -Dns32000 -O -c as.pass.c cc -Uvax -Dns32000 -O -c as.hdr.c cc -Uvax -Dns32000 -O -c as.cbuf.c cc -Uvax -Dns32000 -O -c as.cpy.c cc -Uvax -Dns32000 -O -c as.opt.c cc -Uvax -Dns32000 -O -c as.main.c cc -Uvax -Dns32000 -O as.parse.o as.sym.o as.gen.o as.pass.o as.hdr.o as.cbuf.o as.cpy.o as.opt.o as.main.o -o as /usr/lib/libl.a Making cmd all if u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000" ; \ else \ echo 'Cannot make cc command: unknown target procesor.'; \ fi Cannot make cc command: unknown target procesor. Making optim all if u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make optim command: unknown target procesor.'; \ fi Cannot make optim command: unknown target procesor. Making comp all if u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make comp command: unknown target procesor.'; \ fi Cannot make comp command: unknown target procesor. Making ld all if vax; then \ cd vax; make -b CC="cc -Uvax -Dns32000"; \ elif ns32000; then \ cd ns32000; make -b CC="cc -Uvax -Dns32000"; \ elif pdp11; then \ cd pdp; make -b CC="cc -Uvax -Dns32000"; \ elif u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make ld command: unknown target procesor.'; \ fi Expect to see message 'conflicts: 6 shift/reduce' yacc -d ../common/ld.yac conflicts: 6 shift/reduce chmod +x ./:yyfix ./:yyfix > rodata.c cc -Uvax -Dns32000 -DYYDEBUG=0 -O -S rodata.c if vax || ns32000; then \ sh ./:rofix rodata.s; \ fi 16164 16164 cc -Uvax -Dns32000 -c rodata.s rm -f rodata.s rodata.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/expr0.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/globs.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/ld00.c lex ../common/ld.lex cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include lex.yy.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/lists.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/util.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include -DYYDEBUG=0 y.tab.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include special.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/alloc.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/dump.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/expr1.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/ld01.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/ld1.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/ld2.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/version.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/maps.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/output.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/slotvec.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/syms.c cc -Uvax -Dns32000 -O -c -DPORTAR -DFLEXNAMES -DAR32WR -I. -I../common -I/usr/src/cmd/sgs/inc/ns32000 -I/usr/src/cmd/sgs/inc/common -I/usr/include ../common/instr.c cc -Uvax -Dns32000 -s -O rodata.o expr0.o globs.o ld00.o lex.yy.o lists.o util.o y.tab.o special.o alloc.o dump.o expr1.o ld01.o ld1.o ld2.o version.o maps.o output.o slotvec.o syms.o instr.o /usr/lib/libl.a -ly /usr/src/cmd/sgs/libld/common/libld.a -o ld Making sdp all if u3b; then \ cd common; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make sdp library: unknown target procesor.'; \ fi Cannot make sdp library: unknown target procesor. Making compress all if u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make cprs command: unknown target procesor.'; \ fi Cannot make cprs command: unknown target procesor. Making dis all if u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make dis command: unknown target procesor.'; \ fi Cannot make dis command: unknown target procesor. Making dump all if vax; then \ cd vax; make -b CC="cc -Uvax -Dns32000"; \ elif ns32000; then \ cd ns32000; make -b CC="cc -Uvax -Dns32000"; \ elif u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make dump command: unknown target procesor.'; \ fi cc -Uvax -Dns32000 -O -s -c -DPORTAR -DAR32WR -DFLEXNAMES -I../..//inc/ns32000 -I../..//inc/common ../..//dump/common/main.c cc -Uvax -Dns32000 -O -s -c -DPORTAR -DAR32WR -DFLEXNAMES -I../..//inc/ns32000 -I../..//inc/common ../..//dump/common/setflags.c cc -Uvax -Dns32000 -O -s -c -DPORTAR -DAR32WR -DFLEXNAMES -I../..//inc/ns32000 -I../..//inc/common ../..//dump/common/openobject.c cc -Uvax -Dns32000 -O -s -c -DPORTAR -DAR32WR -DFLEXNAMES -I../..//inc/ns32000 -I../..//inc/common ../..//dump/common/process.c cc -Uvax -Dns32000 -O -s -c -DPORTAR -DAR32WR -DFLEXNAMES -I../..//inc/ns32000 -I../..//inc/common ../..//dump/common/fcns.c cc -Uvax -Dns32000 -O -s -o dump main.o setflags.o openobject.o process.o fcns.o ../..//libld/common/libld.a Making list all if u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make list command: unknown target procesor.'; \ fi Cannot make list command: unknown target procesor. Making lorder all if vax; then \ cd vax; make -b; \ elif ns32000; then \ cd ns32000; make -b; \ elif pdp11; then \ cd pdp; make -b; \ elif u3b; then \ cd u3b; make -b; \ else \ echo 'Cannot make lorder command: unknown target procesor.'; \ fi Making nm all if vax; then \ cd vax; make -b CC="cc -Uvax -Dns32000"; \ elif ns32000; then \ cd ns32000; make -b CC="cc -Uvax -Dns32000"; \ elif pdp11; then \ cd pdp; make -b CC="cc -Uvax -Dns32000"; \ elif u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make nm command: unknown target procesor.'; \ fi cc -Uvax -Dns32000 -O -s -DFLEXNAMES -DPORTAR -DUNIX -DAR32WR -I../../inc/ns32000 -I../../inc/common -c ../../nm/common/main.c cc -Uvax -Dns32000 -O -s -DFLEXNAMES -DPORTAR -DUNIX -DAR32WR -I../../inc/ns32000 -I../../inc/common -c ../../nm/common/setflags.c cc -Uvax -Dns32000 -O -s -DFLEXNAMES -DPORTAR -DUNIX -DAR32WR -I../../inc/ns32000 -I../../inc/common -c ../../nm/common/process.c cc -Uvax -Dns32000 -O -s -DFLEXNAMES -DPORTAR -DUNIX -DAR32WR -I../../inc/ns32000 -I../../inc/common -c ../../nm/common/prosym.c cc -Uvax -Dns32000 -O -s -DFLEXNAMES -DPORTAR -DUNIX -DAR32WR -I../../inc/ns32000 -I../../inc/common -c ../../nm/common/decotype.c cc -Uvax -Dns32000 -O -s -DFLEXNAMES -DPORTAR -DUNIX -DAR32WR -I../../inc/ns32000 -I../../inc/common -c ../../nm/common/fcns.c cc -Uvax -Dns32000 -O -s -o nm main.o setflags.o process.o prosym.o decotype.o fcns.o ../../libld/common/libld.a Making size all if vax; then \ cd vax; make -b CC="cc -Uvax -Dns32000"; \ elif ns32000; then \ cd ns32000; make -b CC="cc -Uvax -Dns32000"; \ elif pdp11; then \ cd pdp; make -b CC="cc -Uvax -Dns32000"; \ elif u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000"; \ else \ echo 'Cannot make size command: unknown target procesor.'; \ fi cc -Uvax -Dns32000 -O -s -c -DPORTAR -DUNIX -DAR32WR -I../..//inc/ns32000 -I../..//inc/common ../..//size/common/main.c cc -Uvax -Dns32000 -O -s -c -DPORTAR -DUNIX -DAR32WR -I../..//inc/ns32000 -I../..//inc/common ../..//size/common/process.c cc -Uvax -Dns32000 -O -s -c -DPORTAR -DUNIX -DAR32WR -I../..//inc/ns32000 -I../..//inc/common ../..//size/common/fcns.c cc -Uvax -Dns32000 -O -s -o size main.o process.o fcns.o ../..//libld/common/libld.a Making strip all if vax; then \ cd vax; make -b CC="cc -Uvax -Dns32000" ;\ elif ns32000; then \ cd ns32000; make -b CC="cc -Uvax -Dns32000" ;\ elif pdp11; then \ cd pdp; make -b CC="cc -Uvax -Dns32000" ; \ elif u3b; then \ cd u3b; make -b CC="cc -Uvax -Dns32000" ; \ else \ echo 'Cannot make strip command: unknown target procesor.'; \ fi cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -c ../../strip/common/main.c cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -c ../../strip/common/setflags.c cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -c ../../strip/common/process.c cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -c ../../strip/common/checkflags.c cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -c ../../strip/common/buildtmp.c cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -c ../../strip/common/buildfcns.c cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -c ../../strip/common/copytmp.c cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -c ../../strip/common/fcns.c cc -Uvax -Dns32000 -O -s -DPORTAR -DUNIX -DAR32WR -DFLEXNAMES -I../../strip/common -I../../inc/ns32000 -I../../inc/common -o strip main.o setflags.o process.o checkflags.o buildtmp.o buildfcns.o copytmp.o fcns.o ../../libld/common/libld.a Making ar all if vax; \ then \ cd vax; \ make -b CC="cc -Uvax -Dns32000" CFLAGS="-O"; \ elif ns32000; \ then \ cd ns32000; \ make -b CC="cc -Uvax -Dns32000" CFLAGS="-O"; \ elif pdp11; \ then \ cd pdp11; \ make -b CC="cc -Uvax -Dns32000" CFLAGS="-O"; \ elif u3b; \ then \ cd u3b; \ make -b CC="cc -Uvax -Dns32000" CFLAGS="-O"; \ else \ echo 'Cannot make ar command: unknown target procesor.'; \ fi cc -Uvax -Dns32000 -O -DFLEXNAMES -DAR32WR -I../../inc/common -I/usr/include ../../ar/common/ar.c -o ar ../../libld/common/libld.a Making unix_conv all if vax; \ then \ cd vax; \ make -b CC="cc -Uvax -Dns32000" CFLAGS="-O"; \ elif ns32000; \ then \ cd ns32000; \ make -b CC="cc -Uvax -Dns32000" CFLAGS="-O"; \ elif u3b; \ then \ cd u3b; \ make -b CC="cc -Uvax -Dns32000" CFLAGS="-O"; \ else \ echo 'Cannot make convert command: unknown target procesor.'; \ fi #