diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
| commit | a16f65c7d117419bd266c28a1901ef129a337569 (patch) | |
| tree | 2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /usr.bin/f2c/Makefile | |
| parent | 8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff) | |
Release FreeBSD 1.1upstream/1.1.0_cvsrelease/1.1.0_cvs
This commit was manufactured to restore the state of the 1.1-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
Diffstat (limited to 'usr.bin/f2c/Makefile')
| -rw-r--r-- | usr.bin/f2c/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/usr.bin/f2c/Makefile b/usr.bin/f2c/Makefile new file mode 100644 index 000000000000..eea5cf4ce5bb --- /dev/null +++ b/usr.bin/f2c/Makefile @@ -0,0 +1,32 @@ +# Makefile for f2c, a Fortran 77 to C converter + +PROG= f2c + +g = -O -g +CFLAGS = $g -DANSI_Libraries -I${.CURDIR} -I. +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 + +GRAMFILES = ${.CURDIR}/gram.head ${.CURDIR}/gram.dcl ${.CURDIR}/gram.expr\ + ${.CURDIR}/gram.exec ${.CURDIR}/gram.io + +gram.c: ${GRAMFILES} ${.CURDIR}/defs.h tokdefs.h + (sed < tokdefs.h "s/#define/%token/" ; \ + cat ${GRAMFILES}) > 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: ${.CURDIR}/tokens + grep -n . <${.CURDIR}/tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h + +CLEANFILES+=\ + gram.c tokdefs.h y.tab.h + +.include <bsd.prog.mk> |
