a23323e399
to f2c.1. Removed an automatically generated file and a checksum file.
30 lines
838 B
Makefile
30 lines
838 B
Makefile
# Makefile for f2c, a Fortran 77 to C converter
|
|
|
|
PROG= f2c
|
|
|
|
g = -O -g
|
|
CFLAGS = $g -DANSI_Libraries
|
|
SHELL = /bin/sh
|
|
|
|
SRCSd = main.c init.c gram.c lex.c proc.c equiv.c data.c format.c \
|
|
expr.c exec.c intr.c io.c misc.c error.c mem.c names.c \
|
|
output.c p1output.c pread.c put.c putpcc.c vax.c formatdata.c \
|
|
parse_args.c niceprintf.c cds.c sysdep.c version.c
|
|
SRCS = $(SRCSd) malloc.c
|
|
|
|
gram.c: gram.head gram.dcl gram.expr gram.exec gram.io defs.h tokdefs.h
|
|
( sed <tokdefs.h "s/#define/%token/" ;\
|
|
cat gram.head gram.dcl gram.expr gram.exec gram.io ) >gram.in
|
|
$(YACC) $(YFLAGS) gram.in
|
|
echo "(expect 4 shift/reduce)"
|
|
sed 's/^# line.*/\/* & *\//' y.tab.c >gram.c
|
|
rm -f gram.in y.tab.c
|
|
|
|
tokdefs.h: tokens
|
|
grep -n . <tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h
|
|
|
|
CLEANFILES+=\
|
|
gram.c tokdefs.h
|
|
|
|
.include <bsd.prog.mk>
|