head	1.4;
access;
symbols
	charm6_1:1.4
	charm_6_0_1:1.4
	charm6_0_1:1.4
	charm6_0:1.4
	ChaNGa_1-0:1.2
	charm5_9:1.1;
locks; strict;
comment	@# @;


1.4
date	2007.10.16.20.51.42;	author gzheng;	state Exp;
branches;
next	1.3;
commitid	7202471524594567;

1.3
date	2007.09.20.18.53.12;	author bhatele;	state Exp;
branches;
next	1.2;
commitid	53bd46f2c1944567;

1.2
date	2005.06.30.07.08.16;	author schak;	state Exp;
branches;
next	1.1;

1.1
date	2004.09.15.19.43.05;	author bohm;	state Exp;
branches;
next	;


desc
@@


1.4
log
@added TESTOPTS
@
text
@CHARMINC=../../../include
CHARMBIN=../../../bin
CHARMC=../../../bin/charmc $(OPTS)

OBJS=megatest.o \
     groupring.o \
     nodering.o \
     varsizetest.o \
     varraystest.o \
     groupcast.o \
     nodecast.o \
     synctest.o \
     fib.o \
     arrayring.o \
     tempotest.o \
     packtest.o \
     queens.o \
     migration.o \
     marshall.o \
     priomsg.o \
     priotest.o \
     rotest.o \
     statistics.o \
     templates.o \
     inherit.o \
     reduction.o \
     bitvector.o \
     immediatering.o \
     callback.o

#     priolongtest.o \

# reverse order of the above OBJS
OBJS_REV=megatest.o \
     bitvector.o	\
     immediatering.o \
     callback.o	\
     reduction.o \
     inherit.o \
     templates.o \
     rotest.o \
     statistics.o \
     priotest.o \
     priomsg.o \
     marshall.o \
     migration.o \
     queens.o \
     packtest.o \
     tempotest.o \
     arrayring.o \
     fib.o \
     synctest.o \
     nodecast.o \
     groupcast.o \
     varraystest.o \
     varsizetest.o \
     nodering.o \
     groupring.o

#     priolongtest.o \

CIFILES =  \
      arrayring.def.h  immediatering.def.h  nodering.def.h   rotest.def.h  \
      bitvector.def.h  inherit.def.h        packtest.def.h   synctest.def.h  \
      callback.def.h   marshall.def.h       priomsg.def.h    templates.def.h \
      fib.def.h        megatest.def.h       priotest.def.h   tempotest.def.h  \
      groupcast.def.h  migration.def.h      queens.def.h     varraystest.def.h\
      groupring.def.h  nodecast.def.h       reduction.def.h  varsizetest.def.h\
#      priolongtest.def.h

.SUFFIXES:
.SUFFIXES: .o .C .def.h .decl.h .ci .h

all: pgm

pgm: $(OBJS)
	$(CHARMC) -o pgm  $(OBJS) -language charm++

.ci.decl.h:
	$(CHARMC) -c $<

.decl.h.def.h:
	@@true

DEPENDFILE = Make.depends

include $(DEPENDFILE)

clean:
	rm -r -f conv-host pgm *.o *.decl.h *.def.h *.log *.sts *~ *.bak charmrun SunWS_cache

test: pgm
	./charmrun ./pgm +p1 $(TESTOPTS)
	./charmrun ./pgm +p2 $(TESTOPTS)
	./charmrun ./pgm +p3 $(TESTOPTS)
	./charmrun ./pgm +p4 $(TESTOPTS)

depends:  $(CIFILES)
	echo "Creating " $(DEPENDFILE) " ...";	\
        if [ -f $(DEPENDFILE) ]; then \
           /bin/cp -f $(DEPENDFILE) $(DEPENDFILE).old; \
        fi; \
        echo '#generated by make depends' > $(DEPENDFILE); \
        for i in $(OBJS) ; do \
              SRCFILE=`basename $$i .o`.C ; \
              echo "checking dependencies for $$SRCFILE" ; \
              g++ -MM -I$(CHARMINC) $$SRCFILE | \
              perl $(CHARMBIN)/dep.pl $(CHARMINC) /usr/include /usr/local >> $(DEPENDFILE); \
              echo '	$$(CHARMC) -o '$$i $$SRCFILE >> $(DEPENDFILE) ; \
        done;

@


1.3
log
@added the "all" target
@
text
@d93 4
a96 4
	./charmrun ./pgm +p1
	./charmrun ./pgm +p2
	./charmrun ./pgm +p3
	./charmrun ./pgm +p4
@


1.2
log
@Changed the sequence of linking of object files to make sure that immediatering runs
after initialization is finished
@
text
@d74 2
@


1.1
log
@Initial checkin of move from pgms
@
text
@d27 1
a27 1
     callback.o	\
d29 1
a29 1
     bitvector.o
@

