xref: /original-bsd/usr.bin/pascal/pdx/Makefile (revision fdb874dd)
1#	@(#)Makefile	8.2 (Berkeley) 05/27/94
2#
3# make file for pdx
4#
5# For best results edit this file in vi with tabstop=4.
6#
7# The file "defs.h" is included by all, it has most of the type
8# declarations (since you can't have forward type references in C).
9# It also defines various things of general use and includes <stdio.h>.
10#
11# The file "library.c" contains routines which are generally useful
12# and are independent from pdx.
13#
14# N.B.: My version of cerror in "cerror.s" automatically catches certain
15#	errors such as out of memory, I/O error.  If you re-make pdx with
16#	the standard cerror, the program could fault unexpectedly.
17
18PROG=	pdx
19LDADD=	-ll
20CFLAGS=	-DOBJ -DADDR32 -I. -I${.CURDIR} -I${.CURDIR}/../src
21.PATH:	${.CURDIR}/breakpoint ${.CURDIR}/object ${.CURDIR}/mappings \
22	${.CURDIR}/main ${.CURDIR}/symtab ${.CURDIR}/process \
23	${.CURDIR}/command ${.CURDIR}/source ${.CURDIR}/tree ${.CURDIR}/sym \
24	${.CURDIR}/runtime ${.CURDIR}/machine ${.CURDIR}/../src
25
26SRCS=	address.c assign.c attributes.c bp.c bpact.c build.c callproc.c \
27	entry.c eval.c fixbps.c frame.c functab.c isactive.c library.c \
28	main.c maketypes.c misc.c nextaddr.c objaddr.c opinfo.c optab.c \
29	predicates.c print.c printdata.c printdecl.c printerror.c \
30	printinst.c printnews.c printval.c prtree.c pstatus.c ptrace.c \
31	rdwr.c readobj.c readsym.c remake.c resume.c runcont.c setbp.c \
32	setbps.c source.c srcfile.c srcline.c start.c status.c step.c \
33	symtab.c tfree.c tr_equal.c tracestop.c trcond.c tree.c trinfo.c \
34	wheredump.c which.c
35OBJS+=	cerror.o grammar.o token.o
36CLEANFILES+=h02opcs.h grammar.o opc token.o y.tab.c y.tab.h
37
38cerror.o:
39	${CC} -c ${.CURDIR}/${MACHINE}/${.PREFIX}.s
40
41h02opcs.h: opc ${.CURDIR}/../src/OPnames.h
42	./opc > ${.TARGET}
43
44opc: opc.c
45	${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
46
47.include <bsd.prog.mk>
48
49token.o: grammar.o
50${OBJS} .depend: h02opcs.h
51