head	1.10;
access;
symbols
	charm6_1:1.10
	charm_6_0_1:1.10
	charm6_0_1:1.10
	charm6_0:1.10
	ChaNGa_1-0:1.9
	charm5_9:1.9;
locks; strict;
comment	@# @;


1.10
date	2007.03.03.19.52.48;	author idooley2;	state Exp;
branches;
next	1.9;
commitid	356545e9d1e64567;

1.9
date	2004.10.22.04.38.26;	author wilmarth;	state Exp;
branches;
next	1.8;

1.8
date	2004.10.04.21.42.45;	author wilmarth;	state Exp;
branches;
next	1.7;

1.7
date	2004.08.27.20.31.27;	author wilmarth;	state Exp;
branches;
next	1.6;

1.6
date	2004.08.05.17.10.41;	author bohm;	state Exp;
branches;
next	1.5;

1.5
date	2004.07.22.15.13.51;	author wilmarth;	state Exp;
branches;
next	1.4;

1.4
date	2004.02.11.16.42.01;	author wilmarth;	state Exp;
branches;
next	1.3;

1.3
date	2004.01.08.21.37.07;	author wilmarth;	state Exp;
branches;
next	1.2;

1.2
date	2003.12.18.23.24.18;	author wilmarth;	state Exp;
branches;
next	1.1;

1.1
date	2003.12.02.23.19.21;	author wilmarth;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Modified command line parameter parsing to treat an endtime=-1 to use inactivity detection termination.
@
text
@# NOTE: This is the basic Makefile template that includes the additional
#       Makefile.simulation makefile that is found in the location of the
#       current installation of POSE.
#
#	The Makefile.simulation set of rules allows the compilation of
#       a SINGLE simulation module. If multiple simulation modules are
#	desired, some "surgery" of Makefile.simulation (and this file)
#	will be required. 
#
# ***********************************************************************

OPTS=-O#-DCMK_OPTIMIZE=1 -DCMK_MEMCHECKS_OFF=1

CHARMBASE=../../..
CHARMBIN=$(CHARMBASE)/bin
CHARMINC=$(CHARMBASE)/include

CHARMC=$(CHARMBIN)/charmc -I$(CHARMINC)/pose $(OPTS)

# Default Location variables
# **************************
#POSE_ROOT=$(HOME)/charm/net-linux/lib

# Default module names
# - MAKE MODIFICATIONS HERE
# *************************
PGM_MODULE=Pgm
PGM=pgm
OTHER=
LIBS=-Lstdc++ -lm

# Simulation object definitions 
# *****************************
SIM_OBJECTS=Worker_sim.o $(PGM).o 

# EXECUTABLE GENERATION RULES 
# - DO NOT MODIFY
#****************************
base:	$(PGM)
	@@echo "Simulation compiled."

pure:   $(PGM).pure
	@@echo "Simulation (w purify) compiled."

proj:   $(PGM).proj
	@@echo "Simulation (w projections log traces) compiled."

summary:    $(PGM).summary
	@@echo "Simulation (w summary log traces) compiled."

$(PGM):	$(SIM_OBJECTS) 
	$(CHARMC) $(SIM_OBJECTS) $(OTHER) $(LIBS) -o $(PGM) \
	-module pose -language charm++

$(PGM).seq:	$(SIM_OBJECTS) 
	$(CHARMC) $(SIM_OBJECTS) $(OTHER) $(LIBS) -o $(PGM).seq \
	-module seqpose -language charm++

$(PGM).alt:	$(SIM_OBJECTS) 
	$(CHARMC) $(SIM_OBJECTS) $(OTHER) $(LIBS) -o $(PGM).alt \
	-lpose -language charm++

$(PGM).comm:	$(SIM_OBJECTS) 
	$(CHARMC) $(SIM_OBJECTS) $(OTHER) $(LIBS) -o $(PGM).comm \
	-lpose -language charm++ -module commlib

$(PGM).pure:	$(SIM_OBJECTS)
	$(CHARMC) $(SIM_OBJECTS) $(OTHER) $(LIBS) -o $(PGM).pure \
	-lpose -language charm++ -purify

$(PGM).proj:	$(SIM_OBJECTS)
	$(CHARMC) $(SIM_OBJECTS) $(OTHER) $(LIBS) -o $(PGM).proj \
	-lpose -language charm++ -tracemode projections

$(PGM).summary:	$(SIM_OBJECTS)
	$(CHARMC) $(SIM_OBJECTS) $(OTHER) $(LIBS) -o $(PGM).summary \
	-lpose -language charm++ -tracemode summary

# HOUSE-KEEPING RULES
# - DO NOT MODIFY
#********************

# clean removes everything
clean:	clear rm_logs ;

# clear removes only binaries and generated files
clear:
	rm -f charmrun conv-host *.o
	rm -f *.def.h *.decl.h
	rm -f $(PGM) $(PGM).pure $(PGM).proj $(PGM).summary
	rm -f gmon.out #*#
	rm -f core *~
	rm -f TAGS *.headers
	rm -f *_sim.*

# rm_logs removes projections/summary log traces
rm_logs:
	rm -f [^j]*.log *.sum [^j]*.sts
	rm -f *-bg.*.log *-bg.sts

# SIMULATION COMPILATION RULES
# - DO NOT MODIFY 
#*****************************
$(PGM).o : 	$(PGM).C $(PGM).h $(PGM_MODULE).def.h $(PGM_MODULE).decl.h
	$(CHARMC) -c -I$(CHARMINC) $(INCLUDES) $(LIBS) $(PGM).C

$(PGM_MODULE).def.h $(PGM_MODULE).decl.h : $(PGM).ci
	$(CHARMC) $(INCLUDES) $(LIBS) $(PGM).ci

Worker_sim.o :	Worker_sim.C Worker_sim.h Worker.def.h Worker.decl.h
	$(CHARMC) -c $(LIBS) $(INCLUDES) -I$(CHARMINC) Worker_sim.C

Worker.def.h Worker.decl.h : Worker_sim.ci
	$(CHARMC) $(INCLUDES) $(LIBS) Worker_sim.ci

Worker_sim.C Worker_sim.h Worker_sim.ci: Worker.C Worker.h Worker.ci 
	$(CHARMBIN)/etrans.pl Worker

test:
	./pgm 1000 10 1 RANDOM SPARSE 50 50 -gf 344

test-q:
	./pgm 1000 10 1 RANDOM SPARSE 50 -1 -gf 344
        
@


1.9
log
@Added a build case for pgm.seq
@
text
@d121 4
@


1.8
log
@Updated Makefile to use -module pose, and ci to use adapt3.
@
text
@d55 4
@


1.7
log
@Removing annoying memory paranoid from Makefile.
@
text
@d14 1
a14 1
CHARMBASE=../../../
d53 1
a53 1
	-lpose -language charm++
@


1.6
log
@Fixed make test line
@
text
@d53 1
a53 1
	-lpose -language charm++ -memory paranoid
@


1.5
log
@Making sure adapt2 is the default strategy for ASIM.
@
text
@d116 1
a116 1
	./pgm 1000 10 1 RANDOM SPARSE 50 -gf 344
@


1.4
log
@Changed main program to use endTime over inactivity detection (that happens
by default anyway).
@
text
@d53 1
a53 1
	-lpose -language charm++
d116 1
a116 1
	./pgm 1000 10 1 RANDOM SPARSE 50 -gf 344@


1.3
log
@Updated Makefile to get rid of gnuold.
@
text
@d55 4
@


1.2
log
@Modified Worker.ci to use adapt2 strategy; modified Makefile to link with -memory gnuold and to use optimization.
@
text
@d53 1
a53 1
	-lpose -language charm++ -memory gnuold
@


1.1
log
@Adding updated ASIM, my POSE benchmark.
@
text
@d12 1
a12 1
OPTS=-g -O#-DCMK_OPTIMIZE=1 -DCMK_MEMCHECKS_OFF=1
d53 1
a53 1
	-lpose -language charm++
@

