#
# Joint project between the Wisconsin Wind Tunnel
# at the University of Wisconsin, Madison and
# HPSL research group at the University of Maryland,
# College Park.
#
# Participants:
#   Shubu Mukherjee (*) and Shamik Sharma (!).
#   Mark Hill (*), Jim Larus(*), Anne Rogers (%), Joel Saltz (!).
#
#  (*) University of Wisconsin-Madison
#  (!) University of Maryland, College Park
#  (%) Princeton University
#


.KEEP_STATE:

TARGET = moldyn

#----------------------------------------------------------------
# Options Description
#
# PARTITION_RCB   : Partitions molecules using RCB partitioner
# PARTITION_BLOCK    : Partitions molecules using BLOCK
# PARTITION_CYCLIC   : Partitions molecules using CYCLIC
#
# The PPoPP paper uses :
# OPTIONS      = -DPARTITION_RCB 
#
#------------------------------------------------------------------

OPTIONS       = -DPARTITION_RCB 

CHAOS_HOME     = ../chaos
CHAOS_LIBPATH  = $(CHAOS_HOME)/lib
INCDIRS        = /p/cm5/usr/include
CC             = gcc
LINKER         = cmmd-ld -comp  
CFLAGS         = -DCM5  -O2   -Wall -Dpe_obj
HOST_CFLAGS    = -DCM5  -O2   -Wall 

HOST_SRCS    = base.cm5.host.c
HOST_OBJS    = $(HOST_SRCS:%.c=%.o)
NODE_SRCS    = base.cm5.node.c \
               moldyn.c \
               chaos-support.c 
NODE_OBJS    = $(NODE_SRCS:%.c=%.o) 




include   Makefile.include.chaos



#
# Dependencies
#

moldyn.o: moldyn.c  chaos-support.h moldyn.h
chaos-support.o : chaos-support.c chaos-support.h

