head	1.12;
access;
symbols
	RELENG_3_5_0_RELEASE:1.11
	RELENG_3_4_0_RELEASE:1.11
	RELENG_3_3_0_RELEASE:1.11
	RELENG_3_2_PAO:1.11.0.4
	RELENG_3_2_PAO_BP:1.11
	RELENG_3_2_0_RELEASE:1.11
	RELENG_3_1_0_RELEASE:1.11
	RELENG_3:1.11.0.2
	RELENG_3_BP:1.11
	RELENG_2_2_8_RELEASE:1.9.2.1
	RELENG_3_0_0_RELEASE:1.11
	RELENG_2_2_7_RELEASE:1.9.2.1
	RELENG_2_2_6_RELEASE:1.9.2.1
	RELENG_2_2_5_RELEASE:1.9.2.1
	RELENG_2_2_2_RELEASE:1.9
	RELENG_2_2_1_RELEASE:1.9
	RELENG_2_2_0_RELEASE:1.9
	RELENG_2_1_7_RELEASE:1.7
	RELENG_2_1_6_1_RELEASE:1.7
	RELENG_2_1_6_RELEASE:1.7
	RELENG_2_2:1.9.0.2
	RELENG_2_2_BP:1.9
	RELENG_2_1_5_RELEASE:1.7
	RELENG_2_1_0_RELEASE:1.7
	RELENG_2_1_0:1.7.0.4
	RELENG_2_1_0_BP:1.7
	RELENG_2_0_5_RELEASE:1.7
	RELENG_2_0_5:1.7.0.2
	RELENG_2_0_5_BP:1.7
	RELENG_2_0_5_ALPHA:1.7
	RELEASE_2_0:1.6
	BETA_2_0:1.6
	ALPHA_2_0:1.6.0.2
	MOVED_NEWCVS:1.3
	FINAL_1_1_5:1.3
	ALPHA_1_1_5:1.3
	FINAL_1_1:1.3
	GAMMA_1_1:1.3
	BETA_1_1:1.3.0.2
	BP_BETA_1_1:1.3;
locks; strict;
comment	@# @;


1.12
date	99.08.08.17.08.17;	author obrien;	state dead;
branches;
next	1.11;

1.11
date	98.03.06.13.51.18;	author bde;	state Exp;
branches;
next	1.10;

1.10
date	97.04.24.17.04.04;	author jmz;	state Exp;
branches;
next	1.9;

1.9
date	96.10.25.15.50.17;	author bde;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	95.09.28.20.43.31;	author jmz;	state Exp;
branches;
next	1.7;

1.7
date	95.01.21.14.41.45;	author bde;	state Exp;
branches;
next	1.6;

1.6
date	94.10.27.16.37.39;	author ljo;	state Exp;
branches;
next	1.5;

1.5
date	94.10.01.19.12.09;	author pst;	state Exp;
branches;
next	1.4;

1.4
date	94.09.30.06.25.04;	author pst;	state Exp;
branches;
next	1.3;

1.3
date	94.02.06.01.12.15;	author ats;	state Exp;
branches;
next	1.2;

1.2
date	94.01.29.00.48.19;	author ljo;	state Exp;
branches;
next	1.1;

1.1
date	94.01.05.03.24.00;	author ljo;	state Exp;
branches;
next	;

1.9.2.1
date	97.09.15.08.06.24;	author jkh;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Remove f2c as its libraries were tossed last April, and f2c has been replaced
with EGCS's f77.

Noticed still alive by:	bde
@
text
@#	Makefile for f2c, a Fortran 77 to C converter

PROG=	f2c

CFLAGS +=  -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) tokdefs.h # 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 conflicts"
	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

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/f2c.h \
		${DESTDIR}/usr/include

.include <bsd.prog.mk>
@


1.11
log
@Fixed `make -jN' for large N.  Just put all generated headers in SRCS.
@
text
@@


1.10
log
@Install f2c.h
Reviewed by:	bde
@
text
@d12 1
a12 1
SRCS =	$(SRCSd) # malloc.c
@


1.9
log
@Use the same format for the "expect N shift reduce conflicts" message
as in the one other place in /usr/src that prints such an "expect"
message (amd).
@
text
@d31 4
@


1.9.2.1
log
@MFC: a number of trivial cosmetic updates and a fairly large update of f2c
     [since I know that FreeBSD has so many fortran programmers now :-)]
@
text
@a30 4
beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/f2c.h \
		${DESTDIR}/usr/include

@


1.8
log
@Makefile: use CFLAGS+= instead of CFLAGS=. Don't use the f2c's malloc.
main.c: reinstitute the -o option to rename C output file.
@
text
@d21 1
a21 1
	echo "(expect 4 shift/reduce)"
@


1.7
log
@Don't default to -g in ${CFLAGS}.  Developers can still use `make g=-g ...'
for debugging.  The default ${CFLAGS} still clobbers the system default
of -O2 to -O.
@
text
@d5 1
a5 2
g = -O
CFLAGS = $g -DANSI_Libraries -I${.CURDIR} -I.
d12 1
a12 1
SRCS =	$(SRCSd) malloc.c
@


1.6
log
@Remove the f77 script now that we are instead installing a f77 program
(that does the same as the script). The f77 program lives in cc/f77.
@
text
@d5 1
a5 1
g = -O -g
@


1.5
log
@f77.script resides in source, not obj dir
@
text
@a31 4
afterinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	  ${INSTALLFLAGS} ${.CURDIR}/f77.script ${DESTDIR}${BINDIR}/f77

@


1.4
log
@Add f77 shell script frontend for f2c/gcc
@
text
@d34 1
a34 1
	  ${INSTALLFLAGS} f77.script ${DESTDIR}${BINDIR}/f77
@


1.3
log
@Added the y.tab.h file to the CLEANFILE target.
@
text
@d32 4
@


1.2
log
@Sprinkled with ${.CURDIR} to get the builds of gram.c and tokdefs.h
correct.
@
text
@d30 1
a30 1
	gram.c tokdefs.h
@


1.1
log
@Replaced makefile with a BSD Makefile. Moved the unformatted man page
to f2c.1. Removed an automatically generated file and a checksum file.
@
text
@d6 1
a6 1
CFLAGS = $g -DANSI_Libraries
d15 6
a20 3
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
d26 2
a27 2
tokdefs.h: tokens
	grep -n . <tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h
@
