file reorg, pathnames.h, paths.h
[unix-history] / usr / src / usr.bin / f77 / pass1.tahoe / Makefile
CommitLineData
e7634a3a
KB
1#
2# Copyright (c) 1987 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
dc0e9d50 6# @(#)Makefile 5.2 (Berkeley) %G%
e7634a3a
KB
7#
8CFLAGS= -O -DHERE=TAHOE -DTARGET=TAHOE -DFAMILY=PCC -DUCBVAXASM \
9 -DUCBPASS2 -I$(INCLDIR)/usr/include -I../include
10LIBC= /lib/libc.a
11SRCS= bb.c conv.c data.c equiv.c error.c exec.c expr.c fmt.c gram.c init.c \
12 intr.c io.c lex.c main.c misc.c optcse.c optim.c optloop.c paramset.c \
13 proc.c put.c putpcc.c regalloc.c setfmt.c stab.c tahoe.c tahoex.c
14OBJS= bb.o conv.o data.o equiv.o error.o exec.o expr.o fmt.o gram.o init.o \
15 intr.o io.o lex.o main.o misc.o optcse.o optim.o optloop.o paramset.o \
16 proc.o put.o putpcc.o regalloc.o setfmt.o stab.o tahoe.o tahoex.o
17
18all: f77pass1
19
20f77pass1: ${OBJS} ${LIBC}
21 ${CC} -o $@ ${CFLAGS} ${OBJS}
22
23gram.c: gram.head gram.dcl gram.expr gram.exec gram.io tokdefs.h
24 ( sed <tokdefs.h "s/#define/%token/"; \
25 cat gram.head gram.dcl gram.expr gram.exec gram.io ) >gram.in
26 ${YACC} gram.in
27 mv y.tab.c gram.c
28
29gram.head: defs.h data.h
30
31tokdefs.h: tokens
32 grep -n . <tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h
33
dc0e9d50 34clean:
e7634a3a
KB
35 rm -f ${OBJS} core f77pass1 gram.c gram.in
36
dc0e9d50
KB
37cleandir: clean
38 rm -f ${MAN} tags .depend
39
40depend: ${SRCS}
e7634a3a
KB
41 mkdep ${CFLAGS} ${SRCS}
42
dc0e9d50
KB
43install: ${MAN}
44 install -s -o bin -g bin -m 755 f77pass1 ${DESTDIR}/usr/libexec
e7634a3a 45
dc0e9d50 46lint: ${SRCS}
e7634a3a
KB
47 lint ${CFLAGS} ${SRCS}
48
dc0e9d50 49tags: ${SRCS}
e7634a3a 50 ctags ${SRCS}