# Makefile for compiling MPI programs on NOW cluster. # # This makefile is used to compile and link with MPI # programs for Active Messages 2.0 communication library # written in C. # # "Copyright (c) 1997 by Frederick C. Wong and The Regents of the University # of California. All rights reserved." # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose, without fee, and without written agreement is # hereby granted, provided that the above copyright notice and the following # two paragraphs appear in all copies of this software. # # IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT # OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF # CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY # AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS # ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO # PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." # # Author: Frederick C. Wong # Version: 1.0 # Creation Date: 23rd June, 1997 # Filename: Makefile # CC = /usr/sww/opt/SUNWspro/bin/cc CLINKER = /usr/sww/opt/SUNWspro/bin/cc OPTFLAGS = -dalign -xarch=v8plusa -xchip=ultra -fast -xtarget=native -xO5 LIBS = -L/usr/now/mpi/mpich/lib/solaris/am2 -L/usr/now/lib\ -L/usr/now/am2/lib -lmpi -lens -lglunix -lam2 -lthread\ -lposix4 -lsocket -lnsl INCLUDES = -I/usr/now/am2/include -I/usr/now/include\ -I/usr/now/mpi/mpich/include default: hello-world hello-world: hello-world.o $(CLINKER) $(OPTFLAGS) ${INCLUDES} -o hello-world hello-world.o ${LIBS} /bin/rm -f *.o *~ clean: /bin/rm -f *.o *~ $(default) .c.o: $(CC) $(CFLAGS) ${INCLUDES} -c $*.c