home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
fortran
/
tools
/
forcheck
/
makefile.old
< prev
next >
Wrap
Makefile
|
1991-10-28
|
2KB
|
85 lines
# Unix version of Makefile for Fortran program checker
# Copyright (C) 1991 by Robert K. Moniot.
# This program is free software. Permission is granted to
# modify it and/or redistribute it, retaining this notice.
# No guarantees accompany this software.
# These definitions should be customized for your local conventions
# if you want to do "make install" or "make uninstall"
BINDIR = /usr/local/bin
CP = /bin/cp
MANDIR = /usr/local/man
# OPTIONS is used to define various characteristics. Most commonly
# needed ones are given below; uncomment whichever you like
# See forchek.h for others, with their defaults and explanations.
# To use the defaults for everything choose this:
OPTIONS=
# To make all table sizes 10x bigger than defaults uncomment this:
#OPTIONS= -DLARGE_MACHINE
# To prohibit underscores in variable names, inline comments
# starting with '!', INCLUDE, and the DO ... ENDDO loop forms:
#OPTIONS= -DSTRICT_SYNTAX
# CFLAGS is used to define the operating system and options.
# The _BSD flag is helpful for those compilers that recognize it.
OPTIMIZE= -O
CFLAGS= -DUNIX -D_BSD $(OPTIONS) $(OPTIMIZE)
YFLAGS= -d
OBJS= forchek.o forlex.o fortran.o \
`prsymtab.o symtab.o symtab2.o
forchek: $(OBJS)
`$(CC) -o forchek $(OBJS) -lm
install: forchek
`$(CP) forchek $(BINDIR)
`- strip $(BINDIR)/forchek
`chmod 755 $(BINDIR)/forchek
`$(CP) forchek.man $(MANDIR)/man1/forchek.1
`chmod 744 $(MANDIR)/man1/forchek.1
uninstall:
`$(RM) $(BINDIR)/forchek
`$(RM) $(MANDIR)/man1/forchek.1
# N.B. tokdefs.h is copy of y.tab.h used to avoid remaking stuff when
# grammar changes but not tokens.
forchek.o: forchek.h
forlex.o: forchek.h tokdefs.h symtab.h
fortran.o: forchek.h symtab.h fortran.c
prsymtab.o: forchek.h symtab.h
symtab.o: forchek.h iokeywds.h intrins.h symtab.h tokdefs.h
symtab2.o: forchek.h symtab.h tokdefs.h
check:
`lint $(LINTFLAGS) forchek.c forlex.c \
` fortran.c prsymtab.c symtab.c symtab2.c -lm
RM = /bin/rm -f
clean:
`$(RM) \#* *~ core *.o
clobber: clean
`$(RM) forchek
# Acknowledgement: this makefile benefited from additions by
# Nelson H.F. Beebe
# Center for Scientific Computing
# University of Utah
# Internet: beebe@math.utah.edu