
# *************************************************************************
# *                                                                       *
# *  Makefile for MXM                                                     *
# *                                                                       *
# *                                                                       *
# *  Copyright (c) 2007 School of Computer Science and Informatics,       *
# *                     University College Dublin, Ireland.               *
# *                                                                       *
# *  All rights reserved. We assume no responsibility for the use         *
# *  or reliability of our software.                                      *
# *                                                                       *
# *************************************************************************

CFLAGS                  =       -O3
MPICC			=	mpicc
CC_INCLUDES     	=       -I$(MPCHOME)/h -I$(HMPI_HOME)/include

all: mxm

mxm: FRC
	$(MPICC) $(CFLAGS) $(CC_INCLUDES) -o mxm mxm.c  -L$(LIBBLASDIR) $(LIBSBLAS) -L$(LIBF2CDIR) $(LIBSF2C) $(MPCHOME)/lib/mpctopo.o $(MPCHOME)/lib/mpcrts.o -L$(HMPI_HOME)/lib -lhmpi -lm

FRC:

clean:
	$(RM) *.o mxm

%.o: %.c
	$(CC) $(CFLAGS) $(CC_INCLUDES) -c $<
