head     1.5;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.5
date     86.03.10.09.16.54;  author root;  state Exp;
branches ;
next     1.4;

1.4
date     86.03.07.12.48.25;  author root;  state Exp;
branches ;
next     1.3;

1.3
date     86.03.07.09.12.30;  author root;  state Exp;
branches ;
next     1.2;

1.2
date     86.03.07.07.26.06;  author root;  state Exp;
branches ;
next     1.1;

1.1
date     86.02.28.15.09.59;  author root;  state Exp;
branches ;
next     ;


desc
@@


1.5
log
@fixed up dependencies to include .c files
@
text
@#
#	as.h		Definitions for data structures
#	asscan.h	Definitions for the character scanner
#	astoks.h	The defines for tokens that yacc produced
#				included implicitly in as.h
#	asexpr.h	The macros for parsing and expressions
#	assyms.h	Macros for dealing with the symbol table
#
#	asscan.c	lexical analyzer and the character scanner
#	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
#	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
#

HDRS = astoks.h as.h asscan.h assyms.h asexpr.h 

SRCS = asscan.c asmain.c asparse.c \
	asexpr.c assyms.c \
	asjxxx.c ascode.c aspseudo.c \
	asio.c

OBJS = asscan.o asparse.o asexpr.o \
	asmain.o assyms.o \
	asjxxx.o ascode.o aspseudo.o \
	asio.o

GRIND = astoks.h as.h asscan.h assyms.h asexpr.h \
	asmain.c asscan.c asparse.c asexpr.c \
	assyms.c asjxxx.c ascode.c asio.c

DESTDIR = 

#
#	available flags:
#
#  (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.
#			

LD = /bin/ld

LDFLAGS =

CFLAGS=  -DDEBUG -DUNIX -DUNIXDEVEL -DFLEXNAMES $I -O

LINTFLAGS = -DUNIX -DUNIXDEVEL -DFLEXNAMES

as:	$(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) -o as

lint:
	lint $(LINTFLAGS) $(SRCS)

aspseudo.o :	as.h astoks.h aspseudo.c instrs rofix
	$(CC) -S $(CFLAGS) aspseudo.c
	sh ./rofix aspseudo.s
	$(AS) -o aspseudo.o aspseudo.s
	rm aspseudo.s

clean:
	rm -f $(OBJS) as a.out rslts core
install:
	install -s as ${DESTDIR}/bin

ascode.o:	ascode.c
ascode.o:	/usr/include/stdio.h
ascode.o:	as.h astoks.h
ascode.o:	assyms.h
asexpr.o:	asexpr.c
asexpr.o:	/usr/include/stdio.h
asexpr.o:	as.h astoks.h
asexpr.o:	asexpr.h
asio.o:		asio.c
asio.o:		/usr/include/stdio.h
asio.o:		as.h astoks.h
asjxxx.o:	asjxxx.c
asjxxx.o:	/usr/include/stdio.h
asjxxx.o:	as.h astoks.h
asjxxx.o:	assyms.h
asmain.o:	asmain.c
asmain.o:	/usr/include/stdio.h
asmain.o:	/usr/include/ctype.h
asmain.o:	/usr/include/signal.h
asmain.o:	as.h astoks.h
asmain.o:	assyms.h
asmain.o:	asexpr.h
asmain.o:	asscan.h
asparse.o:	asparse.c
asparse.o:	/usr/include/stdio.h
asparse.o:	/usr/include/ctype.h
asparse.o:	as.h astoks.h
asparse.o:	asexpr.h
asparse.o:	asscan.h
asparse.o:	assyms.h
aspseudo.o:	aspseudo.c
aspseudo.o:	/usr/include/stdio.h
aspseudo.o:	as.h astoks.h
aspseudo.o:	instrs
asscan.o:	asscan.c
asscan.o:	/usr/include/stdio.h
asscan.o:	as.h astoks.h
asscan.o:	asscan.h
assyms.o:	assyms.c
assyms.o:	/usr/include/stdio.h
assyms.o:	/usr/include/ctype.h
assyms.o:	as.h astoks.h
assyms.o:	asscan.h
assyms.o:	assyms.h
@


1.4
log
@revised dependencies.
@
text
@d92 1
d96 1
d100 1
d103 1
d107 1
d115 1
d122 1
d126 1
d130 1
@


1.3
log
@added dependencies for everything and changed :rofix to rofix so the colon
in the name wouldn't cause make to cough.
@
text
@d91 36
a126 42
as.h:		/usr/include/sys/types.h
as.h:		/usr/include/a.out.h
as.h:		/usr/include/stab.h
as.h:		/usr/include/a.out.h
as.h:		/usr/include/stab.h
as.h:		/usr/include/a.out.h
as.h:		astoks.h
ascode.c:	/usr/include/stdio.h
ascode.c:	as.h
ascode.c:	assyms.h
asexpr.c:	/usr/include/stdio.h
asexpr.c:	as.h
asexpr.c:	asexpr.h
asio.c:		/usr/include/stdio.h
asio.c:		as.h
asjxxx.c:	/usr/include/stdio.h
asjxxx.c:	as.h
asjxxx.c:	assyms.h
asmain.c:	/usr/include/stdio.h
asmain.c:	/usr/include/ctype.h
asmain.c:	/usr/include/signal.h
asmain.c:	as.h
asmain.c:	assyms.h
asmain.c:	asexpr.h
asmain.c:	asscan.h
asparse.c:	/usr/include/stdio.h
asparse.c:	/usr/include/ctype.h
asparse.c:	as.h
asparse.c:	asexpr.h
asparse.c:	asscan.h
asparse.c:	assyms.h
aspseudo.c:	/usr/include/stdio.h
aspseudo.c:	as.h
aspseudo.c:	instrs
asscan.c:	/usr/include/stdio.h
asscan.c:	as.h
asscan.c:	asscan.h
assyms.c:	/usr/include/stdio.h
assyms.c:	/usr/include/ctype.h
assyms.c:	as.h
assyms.c:	asscan.h
assyms.c:	assyms.h
@


1.2
log
@added more things to clean
@
text
@a0 3
LOCAL = /usr/ucb/
I = -I.

d81 1
a81 1
aspseudo.o :	as.h astoks.h aspseudo.c instrs
d83 1
a83 1
	sh ./:rofix aspseudo.s
d91 42
a132 13

print:
	pr Makefile $(HDRS) $(SRCS)

netprint:
	csh /usr/grad/henry/bin/:netprint Makefile $(HDRS) $(SRCS)

vgrind:
	vgrind $(GRIND)

sources: ${SRCS} ${HDRS}
${SRCS} ${HDRS}:
	sccs get $@@
@


1.1
log
@Initial revision
@
text
@d91 1
a91 1
	rm -f $(OBJS) as
@
