File: Makefile_nompi

package info (click to toggle)
mpich 1.1.0-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 22,116 kB
  • ctags: 27,349
  • sloc: ansic: 193,435; sh: 11,172; fortran: 6,545; makefile: 5,801; cpp: 5,020; tcl: 3,548; asm: 3,536; csh: 1,079; java: 614; perl: 183; awk: 168; sed: 70; f90: 62
file content (65 lines) | stat: -rw-r--r-- 2,550 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Generated automatically from Makefile_nompi.in by configure.
#  (C) 1993 by Argonne National Laboratory and Mississipi State University.
#      All rights reserved.  See COPYRIGHT in top-level directory.
#

##### User configurable options #####

ARCH        = LINUX
COMM        = ch_p4
BOPT        = 
MPIR_HOME   = /home/jgoerzen/packages/mpich/mpich-1.1.0
# We must use mpicc since some defines (like -D_ALL_SOURCE for AIX) are
# included there and not in the "USER_FLAGS".  We should clean this up
# at some point....
CC          = /home/jgoerzen/packages/mpich/mpich-1.1.0/lib/LINUX/ch_p4/mpicc
CLINKER     = cc
F77         = echo no Fortran compiler
AR          = ar crl
RANLIB      = ranlib
INCLUDE_DIR =  -I$(MPIR_HOME)/include -I/usr/X11R6/include
DEVICE      = ch_p4
OPTFLAGS    = 
MPE_GRAPH   = -DMPE_GRAPHICS
LIB_PATH    = -L/home/jgoerzen/packages/mpich/mpich-1.1.0/lib/LINUX/ch_p4  -L/usr/X11R6/lib
# On the meiko, you need to add -lsocket to LIB_LIST
LIB_LIST    = -lmpi  
LIB_DIR     = /home/jgoerzen/packages/mpich/mpich-1.1.0/lib/LINUX/ch_p4

MPEGRAPHICS_SOURCE = mpe_graphics.c xcolor.c xframe.c xinit.c xwmap.c xmouse.c
MPEGRAPHICS_OBJS   = mpe_graphics.o xcolor.o xframe.o xinit.o xwmap.o xmouse.o
MPEGRAPHICS_FSOURCE = mpe_graphicsf.c
MPEGRAPHICS_FOBJS   = mpe_graphicsf.o
### End User configurable options ###

SHELL = /bin/sh

CFLAGS =    -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1  -DHAVE_PROTOTYPES  -DHAVE_STDLIB_H=1 -DUSE_STDARG  -DHAVE_UNAME=1 -DHAVE_GETHOSTBYNAME=1 $(OPTFLAGS) $(INCLUDE_DIR) \
	 $(MPIPROFILE) -DMPI_$(ARCH) $(MPE_GRAPH)

MPE_CSOURCES = timers.c  $(MPEGRAPHICS_SOURCE) mpe_log.c decomp.c \
	       mpe_seq.c mpehname.c
MPE_TSOURCES = $(MPEGRAPHICS_SOURCE) decomp.c mpe_seq.c dbxerr.c
MPE_COBJECTS = timers.o  $(MPEGRAPHICS_OBJS) mpe_log.o decomp.o mpe_seq.o \
		dbxerr.o mpehname.o
MPE_WSOURCES = $(MPEGRAPHICS_FSOURCE) mpe_logf.c decompf.c mpe_seqf.c
MPE_WOBJECTS = timersf.o $(MPEGRAPHICS_FOBJS) mpe_logf.o decompf.o mpe_seqf.o

MPE_SOURCES = $(MPE_CSOURCES) $(MPE_WSOURCES)
MPE_OBJECTS = $(MPE_COBJECTS) $(MPE_WOBJECTS)

#
# It is tempting here to use ... libmpe.a($(MPE_OBJECTS)) as the dependency,
# but this would require that all makes properly handle library dependencies.
# Since makes that DO are the exception rather than the rule, we don't
# use this form
$(LIB_DIR)/libmpe_nompi.a: $(MPEGRAPHICS_OBJS) mpehname.o
	$(AR) $@ $?
	$(RANLIB) $@
	-/bin/rm -f $?

.c.o:
	$(CC) $(CFLAGS) -DMPE_NOMPI -c $*.c

.c.a:
	$(CC) $(CFLAGS) -DMPE_NOMPI -c $*.c