# Unix version of Makefile for Fortran program checker
#
# Add machine-specific targets IBM-RS6000, GENERIC,
# STARDENT, SUNOS4.0, SUNOS4.1, ULTRIX-MIPS

#    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.

# Acknowledgements and thanks to Nelson H.F. Beebe of University of Utah
# for improvements to this makefile.

# These definitions should be customized for your local conventions
# if you want to do "make install" or "make uninstall"
#BINDIR  =       /usr/local/bin
#CP      =       icc
#MANDIR  =       /usr/local/man

# OPTIONS is used to define various characteristics.  Most commonly
# needed ones are given below; uncomment whichever you like.
# See ftnchek.h for others, with their defaults and explanations.

#  To use the defaults for everything uncomment 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 '!',  the DO ... ENDDO loop forms and INCLUDE statements:
#OPTIONS= -DSTRICT_SYNTAX


# CFLAGS is used to define the operating system and options
# Other
CFLAGS= /DUNIX $(OPTIONS) /O+ /Ge+ /Gm- /D_BSD

CC=     icc

YFLAGS= /d

OBJS= ftnchek.obj forlex.obj fortran.obj prsymtab.obj symtab.obj symtab2.obj


#ICC knows how to build this (I hope...)
ftnchek: $(OBJS)
        $(CC) $(OBJS)


ftnchek.obj: ftnchek.h

forlex.obj: ftnchek.h tokdefs.h symtab.h

fortran.obj: ftnchek.h symtab.h fortran.c

prsymtab.obj: ftnchek.h symtab.h

symtab.obj: ftnchek.h iokeywds.h intrins.h symtab.h tokdefs.h

symtab2.obj: ftnchek.h symtab.h tokdefs.h


.c.obj    :
        $(cc) /c $(CFLAGS) $<
