#
#
# History
# -------
# $Log: Makefile,v $
# Revision 1.12  1998/04/01  15:38:25  dieter
# Removed dependency junk.
#
# Revision 1.11  1998/04/01  15:37:25  dieter
# Fixed up make depend
#
# Revision 1.10  1998/04/01  15:10:38  dieter
# Set PROG to water_seq.
#
# Revision 1.9  1998/03/27  18:15:03  diaz
# Added separate verification for Splash input file
#
# Revision 1.7  1997/06/24  16:56:47  dieter
# Modified Makefile to pickup common targets and macro definitions from
# make.common.
#
# Revision 1.6  1997/06/13  21:59:38  dieter
# Moved system wide defines to config.h.
#
# Revision 1.5  1997/06/03  18:27:53  dieter
# Use /bin/pwd instead of $(PWD) to get the right pwd.
#
# Revision 1.4  1997/05/08  20:37:17  dieter
# Added FILE_BASE so INPUT_FILE, OUTPUT_FILE, and RANDOM_FILE can all be
# in the pwd.
#
# Revision 1.3  1997/05/08  17:05:03  dieter
# Removed refresh target.  It is now handled by griff's Makefile.refresh.
#
# Revision 1.2  1997/04/11  21:25:04  dieter
# Added refresh target
#
#

PROG= water_seq
TMP_SRCS= water.c mdmain.c syscons.c kineti.c bndry.c cnstnt.c initia.c \
	interf.c intraf.c cshift.c poteng.c predcor.c
TMP_HDRS= cnst.h fileio.h frcnst.h global.h mddata.h mdvar.h parameters.h \
	randno.h split.h water.h wwpot.h
TMP_FILES= $(TMP_SRCS) $(TMP_HDRS)

MYSRCS= sync.c timers.c
MYHDRS= misc.h timers.h

SRCS= $(TMP_SRCS) $(MYSRCS)
OBJS= $(SRCS:.c=.o)
HDRS= $(TMP_HDRS) $(MYHDRS)

OTHER_FILES = input random.in sync.c timers.c $(TMP_SRCS:%.c=%.C) \
	$(TMP_HDRS:%.h=%.H)

CDEFS=  -DFILE_BASE=\"`/bin/pwd`\" -DSPLASH_RANDOM_FILE

MACROS= ../null_macros/c.m4.null

.SUFFIXES:
.SUFFIXES: .o .c .C .h .H

.H.h: 
	m4 $(MACROS) $*.H >$*.h

.C.c:
	m4 $(MACROS) $*.C >$*.c

.C.o:
	m4 $(MACROS) $*.C > $*.c
	$(COMPILE.c) $(OUTPUT_OPTION) $<

include ../make.common

depend: $(TMP_SRCS) $(TMP_HDRS)

cnstnt.c: cnstnt.C water.h wwpot.h cnst.h frcnst.h fileio.h parameters.h
water.c: water.C parameters.h mdvar.h water.h wwpot.h cnst.h mddata.h \
         fileio.h frcnst.h randno.h global.h split.h misc.h 
mdmain.c: mdmain.C  parameters.h mdvar.h water.h wwpot.h cnst.h \
          mddata.h fileio.h frcnst.h randno.h global.h split.h misc.h
syscons.c: syscons.C parameters.h mdvar.h water.h wwpot.h cnst.h mddata.h
kineti.c: kineti.C global.h split.h mdvar.h parameters.h mddata.h misc.h
bndry.c: bndry.C split.h mdvar.h parameters.h mddata.h
initia.c: initia.C split.h mdvar.h water.h cnst.h fileio.h \
           parameters.h mddata.h
predcor.c: predcor.C split.h mdvar.h parameters.h mddata.h
intraf.c: intraf.C frcnst.h mdvar.h water.h wwpot.h parameters.h \
           mddata.h global.h split.h misc.h
interf.c: interf.C mdvar.h water.h wwpot.h cnst.h global.h split.h \
           parameters.h mddata.h misc.h
cshift.c: cshift.C water.h
poteng.c: poteng.C global.h split.h mdvar.h frcnst.h water.h wwpot.h \
           parameters.h mddata.h misc.h

# DO NOT DELETE THIS LINE


