source: git/MP/mp-pvm3/Makefile.in @ a708e0

spielwiese
Last change on this file since a708e0 was a708e0, checked in by Olaf Bachmann <obachman@…>, 27 years ago
This commit was generated by cvs2svn to compensate for changes in r441, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@442 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.5 KB
Line 
1## Makefile.in for MP-PVM example programs.
2#
3# Set PVM_ROOT to the path where PVM includes and libraries are installed.
4# Set PVM_ARCH to your architecture type (SUN4, HP9K, RS6K, SGI, etc.)
5# Set ARCHLIB to any special libs needed on PVM_ARCH (-lrpc, -lsocket, etc.)
6# otherwise leave ARCHLIB blank
7#
8# PVM_ARCH and ARCHLIB are set for you if you use "$PVM_ROOT/lib/aimk"
9# instead of "make".
10#
11# aimk also creates a $PVM_ARCH directory below this one and will cd to it
12# before invoking make - this allows building in parallel on different arches.
13#
14
15srcdir          = @srcdir@
16VPATH           = @srcdir@
17top_srcdir      = @top_srcdir@
18prefix          = @prefix@
19exec_prefix     = @exec_prefix@
20libdir          = @libdir@
21includedir      = @includedir@
22#libdir         = $(exec_prefix)/lib
23#includedir     = $(prefix)/include
24
25CC              = @CC@
26SHELL           = /bin/sh
27CFLAGS          = @CFLAGS@
28
29INCLUDES        = -I$(PVM_ROOT)/include -I$(includedir)
30LIBS            = @LIBS@ -lpvm3 -lMP -lgmp
31GLIBS           = -lgpvm3
32LIBDIR          = -L$(libdir) -L$(PVM_ROOT)/lib/$(PVM_ARCH)
33
34CLEAN           = @CLEAN@
35
36COMPILE = $(CC) $(DEFS) $(LIBDIR) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
37 
38OBJCOMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
39
40.SUFFIXES:
41.SUFFIXES: .c .o
42
43.c.o:
44        ${CC} $(INCLUDES) ${CFLAGS} ${DEFS} -c $<
45
46BDIR    =       $(HOME)/pvm3/bin
47XDIR    =       $(BDIR)/$(PVM_ARCH)
48
49##
50## file sets
51##
52
53SRCS    =       master.c slave.c get-vec.c put-vec.c put-tree.c get-tree.c \
54                mcast-put-tree.c mcast-get-tree.c util.c mp_pvm.c node.c \
55                pvm_imp_getdata.c
56
57DISTFILES =     ${SRCS} Makefile.in README node.h label.h
58
59default:        master slave get-vec put-vec put-tree get-tree \
60                mcast-put-tree mcast-get-tree
61
62all: c-all
63
64install: c-all
65
66c-all:          master slave get-vec put-vec put-tree get-tree \
67                mcast-put-tree mcast-get-tree
68
69clean:         
70                rm -f *.o master slave get-vec put-vec
71
72distclean: clean
73        rm -f Makefile
74
75dist:
76        rm -f mp-pvm.tar
77        tar -cf mp-pvm.tar ${DISTFILES}
78        gzip -9 mp-pvm.tar
79
80get-vec: get-vec.c
81        ${COMPILE} $@.c -o $@ $(LIBS)
82        mv get-vec $(XDIR)
83
84put-vec: put-vec.c
85        ${COMPILE} $@.c -o $@ $(LIBS)
86        mv put-vec $(XDIR)
87
88master: master.c util.o
89        ${COMPILE} util.o $@.c -o $@ $(LIBS)
90        mv master $(XDIR)
91
92put-tree: put-tree.c
93        ${COMPILE} $@.c -o $@ $(LIBS)
94        mv put-tree $(XDIR)
95
96get-tree: get-tree.c util.o
97        ${COMPILE} util.o $@.c -o $@ $(LIBS)
98        mv get-tree $(XDIR)
99
100mcast-put-tree: mcast-put-tree.c
101        ${COMPILE} $@.c -o $@ $(LIBS)
102        mv mcast-put-tree $(XDIR)
103
104mcast-get-tree: mcast-get-tree.c  util.o
105        ${COMPILE} util.o $@.c -o $@ $(LIBS)
106        mv mcast-get-tree $(XDIR)
107
108slave: slave.c
109        ${COMPILE} $@.c -o $@ $(LIBS)
110        mv slave $(XDIR)
111
112util.o :
113        ${OBJCOMPILE} $(INCLUDES) util.c
114
Note: See TracBrowser for help on using the repository browser.