|
|
Power 6/32 Unix version 1.2b
# Makefile 4.7 83/08/14
#
# as.h Definitions for data structures
# asnumber.h Definitions for all numbers: byte .. G format float
# asscan.h Definitions for the character scanner
# asscanl.h Definitions for the character scanner;
# local to asscan?.c
# astokfix.awk
# astoks.H The defines for tokens that yacc produced
# This is processed by astokfix.awk to yield:
# astoks.h Included implicitly in as.h
# asexpr.h The macros for parsing and expressions
# assyms.h Macros for dealing with the symbol table
# instrs.h Definitions to make instrs more readable
#
# asscan1.c buffer management, yylex, and buffer drainer
# asscan2.c character scanner, and buffer filler
# asscan3.c character sets definitions (initialized data)
# asscan4.c constructs normal integers; interfaces with bignum.c
#
# bignum.c constructs large integers; utility routines
#
# asparse.c parser
# asexpr.c parses expressions, constructs and evaluates
# expression trees
#
# asmain.c main body
# assyms.c symbol table processing routines
# asjxxx.c Fixes jxxx instructions
# ascode.c Emits code
# assizetab.c Converts internal ordinal #'s into sizes, strings, etc
# asio.c Does block I/O and faster versions of fwrite
#
# aspseudo.c Symbol table definitions for reserved words
# instrs included in pseudo.c; instructions and semantic info
# for each instructions
#
AS=/bin/as
CC=/bin/cc
LD=/bin/ld
INCLDIR=/usr/src/include
LIBDIR=/lib
ULIBDIR=/usr/lib
DESTDIR=
MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
HDRS = astoks.H astokfix.awk as.h asscan.h assyms.h asexpr.h
SRCS = asscan1.c asscan2.c asscan3.c asscan4.c \
bignum.c \
asmain.c asparse.c \
asexpr.c assyms.c \
asjxxx.c ascode.c aspseudo.c \
assizetab.c asio.c
OBJS = asscan1.o asscan2.o asscan3.o asscan4.o \
bignum.o \
asparse.o asexpr.o \
asmain.o assyms.o \
asjxxx.o ascode.o aspseudo.o \
assizetab.o asio.o
GRIND = astoks.h as.h asscan.h assyms.h asexpr.h instrs.h asnumber.h \
asscanl.h asscan1.c asscan2.c asscan3.c asscan4.c \
bignum.c \
asmain.c asscan.c asparse.c asexpr.c \
assyms.c asjxxx.c ascode.c asio.c \
assizetab.c aspseudo.c
#
# available flags:
#
# AS This is the assembler; always set
# (UNIX and VMS are mutually exclusive.)
# UNIX Must be set if the assembler is to produce a.out
# files for UNIX.
#
# VMS Must be set if the assembler is to produce executables
# for VMS (Thanks to David Kashtan, SRI for these fixes)
#
# if VMS is set, then these two flags are also valid:
# (necessary to frob system calls and '$' conventions
# VMSDEVEL The assembler is being compiled under VMS
# UNIXDEVEL The assembler is being compiled under UNIX
#
#
# DEBUG print out various debugging information
# in the first pass
#
# FLEXNAMES All names are stored internally as true character
# strings, null terminated, and can be no more
# than BUFSIZ long.
#
DFLAGS= -DAS
CFLAGS = -O $(DFLAGS) -I${INCLDIR}
LDFLAGS = -O
as: $(OBJS)
$(CC) $(LDFLAGS) $(OBJS) -o as
.c.o: astoks.h
$(CC) $(CFLAGS) -c $*.c
astoks.h: astoks.H astokfix.awk
awk -f astokfix.awk < astoks.H > astoks.h
aspseudo.o: as.h astoks.h aspseudo.c instrs.h instrs.as
$(CC) -c -R $(DFLAGS) aspseudo.c
instrs.as: instrs
(echo FLAVOR AS ; cat instrs) | awk -f instrs > instrs.as
lint:
lint $(DFLAGS) $(SRCS)
clean:
rm -f $(OBJS) as
cleansrc:
rm -f *.[chH] *.as *.awk makefile instrs
install:
install -s as ${DESTDIR}/bin
print:
pr Makefile $(HDRS) $(SRCS)
as.h: instrs.h astoks.h asnumber.h
touch as.h
asscanl.h: as.h asscan.h
touch asscanl.h
depend:
grep '^#include' ${SRCS} | grep -v '<' | \
sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
-e 's/\.c/.o/' \
-e 's,../[a-zA-Z]*/,,' | \
awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
else rec = rec " " $$2 } } \
END { print rec } ' > makedep
echo '$$r makedep' >>eddep
echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >>eddep
echo '$$r makedep' >>eddep
echo 'w' >>eddep
cp makefile makefile.bak
ed - makefile < eddep
rm eddep makedep
# DO NOT DELETE THIS LINE -- make depend uses it
asscan1.o: asscanl.h
asscan2.o: asscanl.h
asscan3.o: asscanl.h
asscan4.o: asscanl.h
bignum.o: as.h
asmain.o: as.h assyms.h asscan.h asexpr.h
asparse.o: as.h asscan.h assyms.h asexpr.h
asexpr.o: as.h asscan.h asexpr.h
assyms.o: as.h asscan.h assyms.h
asjxxx.o: as.h assyms.h
ascode.o: as.h assyms.h
aspseudo.o: as.h instrs.as
assizetab.o: as.h assyms.h
asio.o: as.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.