LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Deepu Philip (dphilip_at_[hidden])
Date: 2003-11-28 20:56:36


Hi,

   Hope this makefile will help.

# Make file created by Deepu Philip; 10/02/2001
PROJ=hello
DEBUG=
CC=mpicc
LIBDIR = .
CFLAGS= -g -ansi -I.
LDFLAGS= -lm
OBJS_EXT =
LIBS_EXT =
#
# default inference rule
# c.o:
# $(CC) $(CFLAGS) -c $<
#

$(PROJ): $(PROJ).o $(LIBS_EXT)
        $(CC) $(PROJ).o $(LIBS_EXT) -o $(PROJ) $(LDFLAGS)

$(PROJ).o: $(PROJ).c
        $(CC) $(CFLAGS) -c $(PROJ).c

regards
Deepu

At 11:51 PM 11/28/2003 +0530, you wrote:
>Thanks again for helping me.
>
>MPICH was not installed. I installed it.
>
>Now what should i do ? i mean where should i compile my program using
>mpicc and mpirun.
>
>I installed it in /usr/local/mpich-1.2.5.2
>
>Do i have to set path also ??
>
>Please help once more.
>
>Thanks in acvance.
>
>Bye
>
>
>
>_______________________________________________
>This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>