File: Makefile_nompi.in

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 (64 lines) | stat: -rw-r--r-- 2,101 bytes parent folder | download | duplicates (2)
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
#  (C) 1993 by Argonne National Laboratory and Mississipi State University.
#      All rights reserved.  See COPYRIGHT in top-level directory.
#

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

ARCH        = @ARCH@
COMM        = @COMM@
BOPT        = @BOPT@
MPIR_HOME   = @MPIR_HOME@
# 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          = @MPICC@
CLINKER     = @CLINKER@
F77         = @F77@
AR          = @AR@
RANLIB      = @RANLIB@
INCLUDE_DIR = @INCLUDE_PATH@ -I$(MPIR_HOME)/include @X_INC@
DEVICE      = @DEVICE@
OPTFLAGS    = @OPTFLAGS@
MPE_GRAPH   = @MPE_GRAPHICS@
LIB_PATH    = @LIB_PATH@ @X_LIB@
# On the meiko, you need to add -lsocket to LIB_LIST
LIB_LIST    = @LIB_LIST@
LIB_DIR     = @LIB_DIR@

MPEGRAPHICS_SOURCE = @MPEGRAPHICS_SOURCE@
MPEGRAPHICS_OBJS   = @MPEGRAPHICS_OBJS@
MPEGRAPHICS_FSOURCE = @MPEGRAPHICS_FSOURCE@
MPEGRAPHICS_FOBJS   = @MPEGRAPHICS_FOBJS@
### End User configurable options ###

SHELL = /bin/sh

CFLAGS = @USER_CFLAGS@ @MPE_CFLAGS@ @GETNAME_DEFS@ $(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