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


1.13
date	2004.10.17.22.48.10;	author bohm;	state Exp;
branches;
next	1.12;

1.12
date	2004.10.17.00.21.15;	author gzheng;	state Exp;
branches;
next	1.11;

1.11
date	2004.10.17.00.19.02;	author gzheng;	state Exp;
branches;
next	1.10;

1.10
date	2004.10.12.17.18.50;	author bohm;	state Exp;
branches;
next	1.9;

1.9
date	2004.09.15.20.28.16;	author gzheng;	state Exp;
branches;
next	1.8;

1.8
date	2004.06.15.20.28.10;	author gzheng;	state Exp;
branches;
next	1.7;

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

1.6
date	2004.02.09.07.00.48;	author wilmarth;	state Exp;
branches;
next	1.5;

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

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

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

1.2
date	2003.11.06.22.22.37;	author gzheng;	state Exp;
branches;
next	1.1;

1.1
date	2003.09.18.18.30.46;	author gzheng;	state Exp;
branches;
next	;


desc
@@


1.13
log
@Added SEQUENTIAL=1 setting so people can make the sequential
version easily.
@
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. 
#
# ***********************************************************************

# Default charmc options
# - changes here will be exported to upper level makefile
# *******************************************************
OPTS=-g -pg #-DCMK_OPTIMIZE=1 -DCMK_MEMCHECKS_OFF=1

CHARMBASE=../../../
#CHARMBASE=/expand8/home/gzheng/old/charm-6-8/net-linux/
CHARMBIN=$(CHARMBASE)/bin
CHARMINC=$(CHARMBASE)/include

ifeq ($(SEQUENTIAL),1)
CHARMC=$(CHARMBIN)/charmc -I$(CHARMINC)/pose $(OPTS) -DSEQUENTIAL_POSE=1
else
CHARMC=$(CHARMBIN)/charmc -I$(CHARMINC)/pose $(OPTS)
endif

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

# Default module names
# - MAKE MODIFICATIONS HERE
# *************************
PGM_MODULE=Pgm
PGM=pgm
OTHER=-lconv-bluegene-logs
LIBS=-Lstdc++ -lm
#LIBS=/expand8/home/guna/charm/src/langs/bluegene/blue_seq.o


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

# EXECUTABLE GENERATION RULES 
# - DO NOT MODIFY
#****************************

base:	sqtest $(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."

sqtest:
ifeq ($(SEQUENTIAL),1)
	cp  $(CHARMBASE)/lib/libmoduleseqpose.a $(CHARMBASE)/lib/libmodulepose.a
	cp  $(CHARMBASE)/lib_so/libmoduleseqpose.so $(CHARMBASE)/lib_so/libmodulepose.so
else
	cp  $(CHARMBASE)/lib/libmoduleorigpose.a $(CHARMBASE)/lib/libmodulepose.a
	cp  $(CHARMBASE)/lib_so/libmoduleorigpose.so $(CHARMBASE)/lib_so/libmodulepose.so
endif


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

$(PGM).lb:	$(SIM_OBJECTS)
	$(CHARMC) $(SIM_OBJECTS) -o $(PGM).lb \
	-language charm++ -module pose

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

$(PGM).pure:	$(SIM_OBJECTS) $(POSE_ROOT)/libpose.a
	$(CHARMC) $(SIM_OBJECTS) -L$(POSE_ROOT) -o $(PGM).pure \
	-language charm++ -module pose -purify

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

$(PGM).summary:	$(SIM_OBJECTS) $(POSE_ROOT)/libpose.a
	$(CHARMC) $(SIM_OBJECTS) -L$(POSE_ROOT) -o $(PGM).summary \
	-language charm++ -module pose -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
 
TCsim_sim.o :	NetSim.def.h TCsim_sim.C TCsim_sim.h \
			TCsim.def.h TCsim.decl.h
	$(CHARMC) -c $(LIBS) $(INCLUDES) -I$(CHARMINC) TCsim_sim.C
 
TCsim.def.h TCsim.decl.h : TCsim_sim.ci
	$(CHARMC) $(INCLUDES) $(LIBS) TCsim_sim.ci
 
TCsim_sim.C TCsim_sim.h TCsim_sim.ci: TCsim.C \
		TCsim.h TCsim.ci 
ifeq ($(SEQUENTIAL),1)
	$(CHARMBIN)/etrans.pl -s TCsim
else
	$(CHARMBIN)/etrans.pl  TCsim
endif

NetSim_sim.o :	TCsim.def.h NetSim_sim.C NetSim_sim.h \
			NetSim.def.h NetSim.decl.h
	$(CHARMC) -c $(LIBS) $(INCLUDES) -I$(CHARMINC) NetSim_sim.C
 
NetSim.def.h NetSim.decl.h : NetSim_sim.ci
	$(CHARMC) $(INCLUDES) $(LIBS) NetSim_sim.ci
 
NetSim_sim.C NetSim_sim.h NetSim_sim.ci: NetSim.C \
		NetSim.h NetSim.ci
ifeq ($(SEQUENTIAL),1)
	$(CHARMBIN)/etrans.pl -s NetSim
else
	$(CHARMBIN)/etrans.pl NetSim
endif


test:
	./pgm 100 8 10
@


1.12
log
@fixed charmc path
@
text
@d17 1
a17 1
CHARMBASE=../../
d22 3
d26 1
a26 1
ETRANS=$(CHARMBIN)/etrans.pl
d41 1
d44 1
a44 1
SIM_OBJECTS=NetSim_sim.o TCsim_sim.o  $(PGM).o 
d49 2
a50 1
base:	$(PGM)
d62 10
d82 1
a82 1
	-module pose -ltrace-projections -language charm++
a125 1

d130 1
a130 1

d136 5
a140 1
	$(ETRANS) TCsim
d151 6
a156 1
	$(ETRANS) NetSim
@


1.11
log
@fixed for the case when task not found in anti method.
@
text
@d17 1
a17 1
CHARMBASE=../../../
@


1.10
log
@Converted to -module pose
@
text
@d67 1
a67 1
	-module pose -ltrace-projections -language charm++ -module commlib
@


1.9
log
@fix projections optino -tproj
@
text
@d40 1
a40 1
SIM_OBJECTS=NetSim_sim.o TCsim_sim.o $(PGM).o 
d59 1
a59 1
	-lpose -ltrace-projections -language charm++ 
d63 1
a63 1
	-language charm++ -lpose
d67 1
a67 1
	-lpose -ltrace-projections -language charm++ -module commlib
d71 1
a71 1
	-language charm++ -lpose -purify
d75 1
a75 1
	-lpose -ltrace-projections -language charm++ -tracemode projections
d79 1
a79 1
	-language charm++ -lpose -tracemode summary
d111 1
d116 1
a116 1
 
a134 1

@


1.8
log
@a few changes:
1. reimplemented the redstorm option
2. implemented to allow skipping the startup.
@
text
@d23 1
d121 1
a121 1
	$(CHARMBIN)/etrans.pl TCsim
d132 1
a132 1
	$(CHARMBIN)/etrans.pl NetSim
@


1.7
log
@Fixed projections build line.
@
text
@d15 1
a15 1
OPTS=-O#-DCMK_OPTIMIZE=1 -DCMK_MEMCHECKS_OFF=1
d18 1
d58 1
a58 1
	-lpose -ltrace-projections -language charm++
@


1.6
log
@Whoops... didn't finish my testing.  Anyhow, problem with BigNetSim is fixed.  POSE_endtime was being initialized too late to do much good.  All is better now, and it's really fast.  It even seems to be working with the NetSim part ON.  Gengbin -- if you can verify correctness please do.  The logfiles here are Praveen's so use your own.
@
text
@d71 3
a73 3
$(PGM).proj:	$(SIM_OBJECTS) $(POSE_ROOT)/libpose.a
	$(CHARMC) $(SIM_OBJECTS) $(OTHER) $(LIBS) -L$(POSE_ROOT) -o $(PGM).proj \
	-language charm++ -lpose -tracemode projections
@


1.5
log
@The new trace files are tiny, but at least they work.  Gengbin will
hopefully replace with some larger working example later
@
text
@d57 1
a57 1
	-lpose -ltrace-projections -language charm++ -memory paranoid
@


1.4
log
@Got rid of -memory gnuold and added the link trace projections to the build line for the commlib version.
@
text
@d57 1
a57 1
	-lpose -ltrace-projections -language charm++
@


1.3
log
@Modified Makefile to link in memory_gnuold, and the simulation uses the adapt2 strategy.
@
text
@d57 1
a57 1
	-lpose -ltrace-projections -language charm++ -memory gnuold
d65 1
a65 1
	-language charm++ -lpose -module commlib
@


1.2
log
@move -lpose -ltrace-projections before -languange charm++ to force these libraries to be in front of -lz.
@
text
@d15 1
a15 1
OPTS=-g #-DCMK_OPTIMIZE=1 -DCMK_MEMCHECKS_OFF=1
d57 1
a57 1
	-lpose -ltrace-projections -language charm++
@


1.1
log
@bluegene simulator on pose with network simulator.
@
text
@d57 1
a57 1
	-language charm++ -lpose -ltrace-projections
@

