# Makefile for the Fortran 77 command
# Generating code for the VAX
# Using the Johnson C compiler's second pass (binary version)
COMPFLGS
= -O
-DTARGET
=VAX
-DFAMILY
=SCJ
-DHERE
=VAX
-DOUTPUT
=BINARY
-DPOLISH
=POSTFIX
FILES
= Makefile defs defines locdefs drivedefs ftypes scjdefs tokens fio.h\
gram.head gram.dcl gram.expr gram.exec gram.io\
lex.c equiv.c data.c expr.c exec.c intr.c\
io.c misc.c error.c put.c putscjb.c vax.c vaxx.c
OBJECTS
= main.o init.o proc.o gram.o
lex.o \
equiv.o data.o expr.o exec.o intr.o io.o misc.o error.o\
put.o putscjb.o vax.o vaxx.o
cc -n driver.o vaxx.o
-o f77
@
$(CC
) $(LDFLAGS
) $(OBJECTS
) -o f77pass1
gram.c
: gram.head gram.dcl gram.expr gram.exec gram.io tokdefs
( sed
<tokdefs
"s/#define/%token/" ;\
cat gram.head gram.dcl gram.expr gram.exec gram.io
) >gram.in
$(YACC
) $(YFLAGS
) gram.in
grep
-n .
<tokens | sed
"s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs
driver.o
$(OBJECTS
) : defs defines locdefs ftypes
put.o putscjb.o
: scjdefs
nmanifest
:# /usr/tbl/scj/manifest
# @echo "***Warning: /usr/tbl/scj/manifest has changed***"
fio.h
:# /usr/sif/fort/libI77/fio.h
# @echo "***Warning : /usr/sif/fort/libI77/fio.h has changed***"
ar rc ..
/fortarch
$(FILES
)
@echo
"nohup lint -p ... >Lintout&"
@nohup lint
-p error.c exec.c intr.c expr.c gram.c init.c io.c\
lex.c main.c proc.c misc.c put.c putscjb.c vax.c vaxx.c\
equiv.c data.c
-lS
>Lintout
&
-rm -f gram.c
*.o f77 f77pass1
install -s f77
$(DESTDIR
)/usr
/bin
install -s f77pass1
$(DESTDIR
)/usr
/lib
cc -c
$(CFLAGS
) $(COMPFLGS
) $*.c