File: Makefile.am

package info (click to toggle)
mpich 4.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 101,184 kB
  • sloc: ansic: 1,040,629; cpp: 82,270; javascript: 40,763; perl: 27,933; python: 16,041; sh: 14,676; xml: 14,418; f90: 12,916; makefile: 9,270; fortran: 8,046; java: 4,635; asm: 324; ruby: 103; awk: 27; lisp: 19; php: 8; sed: 4
file content (35 lines) | stat: -rw-r--r-- 1,307 bytes parent folder | download | duplicates (3)
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
##
## Copyright (C) by Argonne National Laboratory
##     See COPYRIGHT in top-level directory
##

AM_CPPFLAGS = -I$(top_builddir)/src/include -I${top_srcdir}/src/include
LDADD       = ../lib/lib@MPILIBNAME@.la -lm

# "cpi" is special, we always build it at the end of the regular "make" process
# and its main purpose is to catch missing symbol link-time errors before any
# tests are run.
noinst_PROGRAMS = cpi

# pmandel requires a separate set of socket calls (its a long story)
# and may not build on most platforms
EXTRA_PROGRAMS = pmandel pmandel_spawn pmandel_service pmandel_spaserv    \
                 pmandel_fence hellow icpi ircpi parent child srtest \
                 spawn_merge_parent spawn_merge_child1 spawn_merge_child2

# CUDA
#
# when compiling cuda/cudapi.cu with NVCC, mpi.h will pull in mpicxx.h
# because __cplusplus is defined (NVCC is a C++ compiler)
AM_CPPFLAGS += -I$(top_builddir)/src/binding/cxx

# How to compile .cu files
.cu.o:
	$(NVCC) -arch=native $(AM_CPPFLAGS) -c -o $@ $<

EXTRA_PROGRAMS += cuda/cudapi
cuda_cudapi_SOURCES = cuda/cudapi.cu
cuda_cudapi_LDADD = ../lib/lib@MPILIBNAME@.la -lm
cuda_cudapi_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
       $(LIBTOOLFLAGS) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) \
       $(AM_LDFLAGS) $(LDFLAGS) -o $@