root/mpich2/branches/dev/kumudb/examples/Makefile.sm @ 4899

Revision 4899, 1.5 KB (checked in by kumudb, 5 months ago)

all executable works including cpi in examples and mpiexec in pm

Line 
1smvarSubdir_do_dependencies=no
2smvar_dependenciesDummy=yes
3#OTHER_DIRS = f77 f90 cxx
4# We want to replace the compilation and linking rule used by simplement
5MPICHDIR=..
6CC       = $(MPICHDIR)/bin/mpicc
7CFLAGS   =
8CXXFLAGS =
9FFLAGS   =
10F90FLAGS =
11LDFLAGS  =
12CPPFLAGS =
13DEFS     =
14INCLUDES = -I../src/include -I${top_srcdir}/src/include
15
16LDADD  =
17DEPADD = ../lib/lib${MPILIBNAME}.a ../src/openpa/src/libopa.a
18LIBS   =
19# pmandel requires a separate set of socket calls (its a long story)
20# and may not build on most platforms
21EXTRA_PROGRAMS = pmandel pmandel_spawn pmandel_service pmandel_spaserv \
22                 pmandel_fence hellow icpi parent child srtest srvec sr \
23                 spawn_merge_parent spawn_merge_child1 spawn_merge_child2
24
25# LIBS includes -lmpich and other libraries (e.g., -lpmpich if
26# weak symbols are not supported)
27hellow_SOURCES = hellow.c
28srtest_SOURCES = srtest.c
29child_SOURCES = child.c
30parent_SOURCES = parent.c
31cpi_SOURCES = cpi.c
32cpi_LDADD = -lm
33icpi_SOURCES = icpi.c
34icpi_LDADD = -lm
35pmandel_SOURCES = pmandel.c
36pmandel_LDADD = -lm
37pmandel_spawn_SOURCES = pmandel_spawn.c
38pmandel_spawn_LDADD = -lm
39pmandel_service_SOURCES = pmandel_service.c
40pmandel_service_LDADD = -lm
41pmandel_spaserv_SOURCES = pmandel_spaserv.c
42pmandel_spaserv_LDADD = -lm
43pmandel_fence_SOURCES = pmandel_fence.c
44pmandel_fence_LDADD = -lm
45spawn_merge_parent_SOURCES = spawn_merge_parent.c
46spawn_merge_child1_SOURCES = spawn_merge_child1.c
47spawn_merge_child2_SOURCES = spawn_merge_child2.c
48
49# Use make all-programs to test building all example programs
50all-programs: cpi $(EXTRA_PROGRAMS)
Note: See TracBrowser for help on using the browser.