############################################################################
# RCS INFORMATION:
#
# 	$RCSfile: Makefile,v $
# 	$Author: jyelon $	$Locker:  $		$State: Exp $
#	$Revision: 2.10 $	$Date: 1997/07/30 20:00:06 $
#
############################################################################
# DESCRIPTION:
#
############################################################################
# REVISION HISTORY:
#
# $Log: Makefile,v $
# Revision 2.10  1997/07/30 20:00:06  jyelon
# *** empty log message ***
#
# Revision 2.9  1997/07/21 21:00:11  jyelon
# added cpthreads.
#
# Revision 2.8  1997/07/18 21:20:54  milind
# all files of the form perf-*.c have been changed to trace-*.c, with
# name expansions. For example, perf-proj.c has been changed to
# trace-projections.c.
# performance.h has been renamed as trace.h, and perfio.c has been
# renamed as traceio.c.
# Corresponding changes have been made in the Makefile too.
# Earlier, there used to be three libck-core-*.a where * was projections,
# summary or none. Now, there will be a single libck-core.a and
# three libck-trace-*.a where *=projections, summary and none.
# The execmode parameter to charmc script has been renamed as
# tracemode.
# Also, the perfModuleInit function has been renamed as traceModuleInit,
# RecdPerfMsg => RecdTraceMsg
# CollectPerfFromNodes => CollectTraceFromNodes
#
# Revision 2.7  1997/07/09 21:06:23  milind
# Fixed the nm bug on SP3. Charm module finding still seems to be broken.
# Will try to fix it soon.
#
# Revision 2.6  1995/10/20 17:27:09  jyelon
# Makefiles standardized.
#
# Revision 2.5  1995/10/13  18:25:38  jyelon
# added conv-host to make clean
#
# Revision 2.4  1995/10/10  06:17:04  jyelon
# removed ubiquitous -g
#
# Revision 2.3  1995/09/06  04:12:03  sanjeev
# fixed a rule
#
# Revision 2.2  1995/09/01  02:12:51  jyelon
# Always links, now.
#
# Revision 2.1  1995/07/12  16:51:39  jyelon
# *** empty log message ***
#
# Revision 2.0  1995/07/05  20:14:50  brunner
# Removed multi, and put under charm_pgms
#
# Revision 1.5  1995/05/04  20:05:01  jyelon
# *** empty log message ***
#
# Revision 1.4  1995/05/04  19:25:07  jyelon
# *** empty log message ***
#
# Revision 1.3  1995/05/02  16:52:05  narain
# added the -module_file option to multi programs
#
# Revision 1.2  1995/05/02  16:29:48  narain
# Added the dependencies for the multi test program
#
# Revision 1.1  1995/02/25  01:21:25  jyelon
# Initial revision
#
############################################################################

OPTS=-g
CHARMC=../../bin/charmc $(OPTS)

HEADERS=testpgm.interface acc.interface fam.interface fboc.interface ftab.interface hello.interface pgl.interface rdl.interface sfb.interface tam.interface tex.interface tpk.interface ttab.interface tvid.interface

TESTPGM=testpgm.o fam.o fboc.o ftab.o hello.o pgl.o rdl.o sfb.o tam.o tex.o tpk.o ttab.o tvid.o acc.o mod1.o null.o

all: $(TESTPGM)
	$(CHARMC) -o pgm $(TESTPGM)

pgm: $(TESTPGM)
	$(CHARMC) -o pgm $(TESTPGM)

testpgm.o: testpgm.p $(HEADERS)
	$(CHARMC) -c  testpgm.p

null.o 	: null.p null.interface testpgm.interface
	$(CHARMC) -c  null.p

acc.o 	: acc.p acc.interface testpgm.interface
	$(CHARMC) -c  acc.p

fam.o 	: fam.p fam.interface testpgm.interface
	$(CHARMC) -c  fam.p

fboc.o 	: fboc.p fboc.interface testpgm.interface
	$(CHARMC) -c  fboc.p

ftab.o 	: ftab.p ftab.interface testpgm.interface
	$(CHARMC) -c  ftab.p

hello.o	: hello.p hello.interface testpgm.interface
	$(CHARMC) -c  hello.p

pgl.o 	: pgl.p pgl.interface testpgm.interface
	$(CHARMC) -c  pgl.p

rdl.o 	: rdl.p rdl.interface testpgm.interface
	$(CHARMC) -c  rdl.p

sfb.o 	: sfb.p sfb.interface testpgm.interface
	$(CHARMC) -c  sfb.p

tam.o 	: tam.p tam.interface testpgm.interface
	$(CHARMC) -c  tam.p

tex.o 	: tex.p mod1.interface tex.interface testpgm.interface
	$(CHARMC) -c  tex.p

mod1.o 	: mod1.p mod1.interface
	$(CHARMC) -c  mod1.p

tpk.o 	: tpk.p tpk.interface testpgm.interface
	$(CHARMC) -c  tpk.p

ttab.o 	: ttab.p ttab.interface testpgm.interface
	$(CHARMC) -c  ttab.p

tvid.o 	: tvid.p tvid.interface testpgm.interface
	$(CHARMC) -c  tvid.p

clean:
	rm -f conv-host *.o
	rm -f pgm *.TMP.*
	rm -f gmon.out #*#
	rm -f core *~
	rm -f TAGS *.headers

projections:
	make all OPTS='$(OPTS) -tracemode projections'

summary:
	make all OPTS='$(OPTS) -tracemode summary'

replay:
	make all OPTS='$(OPTS) -tracemode replay'
