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


1.5
date	2004.10.08.19.51.14;	author bohm;	state Exp;
branches;
next	1.4;

1.4
date	2004.09.15.22.38.27;	author jagadish;	state Exp;
branches;
next	1.3;

1.3
date	2004.09.15.05.12.19;	author gzheng;	state Exp;
branches;
next	1.2;

1.2
date	2004.08.19.04.44.46;	author jagadish;	state Exp;
branches;
next	1.1;

1.1
date	2004.08.11.20.59.45;	author jagadish;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Changed pgm to HypCubeSim
Changed -lpose to -module pose
@
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#-DCMK_OPTIMIZE=1 -DCMK_MEMCHECKS_OFF=1

include ../Makefile.common

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

# Default module names
# - MAKE MODIFICATIONS HERE
# *************************
#LIBS=/expand8/home/guna/charm/src/langs/bluegene/blue_seq.o

# Simulation object definitions 
# *****************************

ROUTINGDIR = ../Routing
TOPOLOGYDIR = ../Topology
OUTPUT_VCSELECTIONDIR = ../OutputVcSelection
INPUT_VCSELECTIONDIR = ../InputVcSelection
MAINDIR = ../Main
SUBDIRS = $(MAINDIR) $(ROUTINGDIR) $(TOPOLOGYDIR) $(OUTPUT_VCSELECTIONDIR) $(INPUT_VCSELECTIONDIR)
PGM = HypCubeSim
OTHER = -lconv-bluegene-logs
LIBS = -Lstdc++ -lm
MACHINE = HypCubeArch

all:
	@@echo
	for i in $(SUBDIRS) ; do \
	( cd $$i ; make $(MACHINE) MACHINE="../$(MACHINE)" ) || exit 1; \
	done

	$(CHARMC) -o InitNetwork.o -seq InitNetwork.C -I../Main -I./
	$(CHARMC) -o util.o -seq util.C
	test -d ../tmp || mkdir ../tmp; cp *.o ../tmp

	cd ../tmp; /bin/rm -f moduleinit.o; $(CHARMC) *.o $(OTHER) $(LIBS) -o $(PGM) -module pose -ltrace-projections -language charm++ -module commlib

clean:
	@@echo
	for i in $(SUBDIRS) ; do \
	( cd $$i ; make clean ) ; \
	done
	cd ../tmp; rm -f *.o; rm -f charmrun; rm -f module*; rm -f $(PGM)
	rm -f *.o
@


1.4
log
@*** empty log message ***
@
text
@d37 1
a37 1
PGM = pgm
d52 1
a52 1
	cd ../tmp; /bin/rm -f moduleinit.o; $(CHARMC) *.o $(OTHER) $(LIBS) -o $(PGM) -lpose -ltrace-projections -language charm++ -module commlib
@


1.3
log
@modified make to output to tmp instead of copy into. This is to make sure tempate instantiation works correct on Lemieux.
@
text
@d45 1
a45 1
	( cd $$i ; make $(MACHINE) MACHINE="../$(MACHINE)" ) ; \
d50 1
a50 1
	cp *.o ../tmp
d52 1
a52 1
	cd ../tmp;$(CHARMC) *.o $(OTHER) $(LIBS) -o $(PGM) -lpose -ltrace-projections -language charm++ -module commlib
@


1.2
log
@Sync'ed up hypercube with switch architecture
@
text
@d17 1
a17 5
CHARMBASE=../../../../
CHARMBIN=$(CHARMBASE)/bin
CHARMINC=$(CHARMBASE)/include

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


1.1
log
@*** empty log message ***
@
text
@d52 4
a55 1
	$(CHARMC) -o InitNetwork.o -seq InitNetwork.C -I../Main -I./ ; cp InitNetwork.o ../tmp
@

