xref: /csrg-svn/old/as.vax/Makefile (revision 44530)
1*44530Sbostic#	@(#)Makefile	5.11 (Berkeley) 06/28/90
25796Srrh#
35796Srrh#	as.h		Definitions for data structures
45796Srrh#	asnumber.h	Definitions for all numbers: byte .. G format float
55796Srrh#	asscan.h	Definitions for the character scanner
65796Srrh#	asscanl.h	Definitions for the character scanner;
75796Srrh#				local to asscan?.c
85796Srrh#	astokfix.awk
95796Srrh#	astoks.H	The defines for tokens that yacc produced
105796Srrh#				This is processed by astokfix.awk to yield:
115796Srrh#	astoks.h	Included implicitly in as.h
125796Srrh#	asexpr.h	The macros for parsing and expressions
135796Srrh#	assyms.h	Macros for dealing with the symbol table
145796Srrh#	instrs.h	Definitions to make instrs more readable
155796Srrh#
165796Srrh#	asscan1.c	buffer management, yylex, and buffer drainer
175796Srrh#	asscan2.c	character scanner, and buffer filler
185796Srrh#	asscan3.c	character sets definitions (initialized data)
195796Srrh#	asscan4.c	constructs normal integers; interfaces with bignum?.c
205796Srrh#
215796Srrh#	bignum1.c	constructs large integers; utility routines
225796Srrh#	bignum2.c	packs/unpacks floating point numbers
235796Srrh#	natof.c		constructs large floating point #'s, ala atof
245796Srrh#
255796Srrh#	asparse.c	parser
265796Srrh#	asexpr.c	parses expressions, constructs and evaluates
275796Srrh#				expression trees
285796Srrh#
295796Srrh#	asmain.c	main body
305796Srrh#	assyms.c	symbol table processing routines
315796Srrh#	asjxxx.c	Fixes jxxx instructions
325796Srrh#	ascode.c	Emits code
335796Srrh#	assizetab.c	Converts internal ordinal #'s into sizes, strings, etc
345796Srrh#	asio.c		Does block I/O and faster versions of fwrite
355796Srrh#
365796Srrh#	aspseudo.c	Symbol table definitions for reserved words
375796Srrh#	instrs		included in pseudo.c; instructions and semantic info
385796Srrh#				for each instructions
395796Srrh#
405796Srrh#	available flags:
415796Srrh#
425796Srrh#	AS		This is the assembler; always set
435796Srrh#  (UNIX and VMS are mutually exclusive.)
445796Srrh#	UNIX		Must be set if the assembler is to produce a.out
455796Srrh#			files for UNIX.
465796Srrh#
475796Srrh#	VMS		Must be set if the assembler is to produce executables
485796Srrh#			for VMS (Thanks to David Kashtan, SRI for these fixes)
495796Srrh#
505796Srrh#	if VMS is set, then these two flags are also valid:
515796Srrh#			(necessary to frob system calls and '$' conventions
525796Srrh#	VMSDEVEL	The assembler is being compiled under VMS
535796Srrh#	UNIXDEVEL	The assembler is being compiled under UNIX
545796Srrh#
555796Srrh#
565796Srrh#	DEBUG		print out various debugging information
575796Srrh#			in the first pass
585796Srrh#
595796Srrh#	FLEXNAMES	All names are stored internally as true character
605796Srrh#			strings, null terminated, and can be no more
615796Srrh#			than BUFSIZ long.
625796Srrh#
6341638SbosticPROG=	as
6441638SbosticCFLAGS+=-DAS -I.
6541638SbosticSRCS=	asscan1.c asscan2.c asscan3.c asscan4.c bignum1.c bignum2.c natof.c \
6641638Sbostic	floattab.c asmain.c asparse.c asexpr.c assyms.c asjxxx.c ascode.c \
6741638Sbostic	aspseudo.c assizetab.c asio.c
6843774SbosticCLEANFILES=instrs.as astoks.h
695796Srrh
705796Srrhastoks.h: astoks.H astokfix.awk
7141638Sbostic	awk -f ${.CURDIR}/astokfix.awk < ${.CURDIR}/astoks.H > astoks.h
725796Srrh
7343774Sbosticaspseudo.o:
7441638Sbostic	${CC} ${CFLAGS} -R -c ${.IMPSRC}
755796Srrh
7641638Sbosticinstrs.as: ${.CURDIR}/instrs
7741638Sbostic	(echo FLAVOR AS ; cat ${.CURDIR}/instrs) | \
7841638Sbostic	    awk -f ${.CURDIR}/instrs > instrs.as
795796Srrh
80*44530Sbostic.include <bsd.prog.mk>
8143774Sbostic
82*44530Sbostic${OBJS} .depend: instrs.as astoks.h
83*44530Sbostic
84*44530Sbostic
85