Changeset a708e0 in git
- Timestamp:
- Jun 28, 1997, 3:36:27 PM (26 years ago)
- Branches:
- (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
- Children:
- 7adb5028d58cd523bb79d18cb12bbde01aa25097
- Parents:
- 1b7361be01a867690a1c01be2ea56e9b571e5982
- Location:
- MP
- Files:
-
- 1 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
MP/INSTALL
r1b7361b ra708e0 43 43 44 44 2. Type `make install' to compile and install the gmp, MP, and MPT 45 libraries and header files. You can customize what is built and 46 where the libraries and header files are installed by giving 47 'configure' appropriate options (see below). NOTE: If you do not 48 have the header file 'gmp.h' installed in a standard location on 49 your system, then a './configure' followed by a simple 'make' 50 command will fail. You need to do './configure --enable-gmp' 51 followed by 'make install'. 45 libraries and header files. The libraries will be installed in 46 ./lib/<ARCH> where <ARCH> is an architecture-specific identifier 47 (e.g., SUN4, SGI5). Similarly, executables are installed in 48 ./bin/<ARCH>. You can customize what is built and where libraries, 49 header files, and executables are installed by giving 'configure' 50 appropriate options (see below). NOTE: If you do not have the header 51 file 'gmp.h' installed in a standard location on your system, then 52 a './configure' followed by a simple 'make' command will fail. You 53 need to do './configure --enable-gmp' followed by 'make install'. 52 54 53 55 3. You can remove the program binaries and object files from the 54 56 source code directory by typing `make clean'. To also remove the 55 files that `configure' created (so you can compile the package 56 for a different architecture), type `make distclean'. There is 57 also a `make maintainer-clean' target, but that is intended 58 mainly for the package's developers. If you use it, you may have 59 to install all sorts of other programs in order to regenerate 60 files that came with the distribution. 61 62 4. Other make targets are: 57 files that `configure' created, type `make distclean'. There is 58 a `make maintainer-clean' target, but that is intended mainly for 59 the package's developers. If you use it, you may have to install 60 all sorts of other programs in order to regenerate files that came 61 with the distribution. 62 63 4. To remake the library for a different architecture, login to the 64 target machine and change directories to the MP source directory. 65 You must remove the library object files and create new Makefiles. 66 To do this, simply do a `make clean' in the top-level MP directory, 67 followed by `rm config.cache' to remove the cache file created by 68 configure. Finally, rerun configure with the same options you gave 69 it on other machines followed by a `make' or `make install'. 70 71 5. Other make targets are: 63 72 'MP','libMP.a' : Creates the MP library only. 64 73 'MPT','libMPT.a' : Creates the MPT library only. … … 128 137 installed in the specified directories. 129 138 139 130 140 `--enable-PACKAGE' option where PACKAGE can be: 131 141 132 142 'examples' : The distribution comes with some example implementations 133 contained in the directory 'examples'. By default, the 134 examples are not built when MP is built. Use this option 135 to build the examples together with MP. NOTE: Make sure 136 that MP is installed before the examples are built. See 137 also the README file contained in the 'examples' 138 directory. 143 contained in the directory 'examples'. By default, the 144 examples are not built when MP is built. Use this option 145 to build the examples when MP is built. NOTE: Make sure 146 that MP is installed before the examples are built. Also 147 see the README file contained in the 'examples' directory. 139 148 140 149 'mpviewer': The distribution comes with an mpviewer implementation 141 150 contained in the directory 'mpviewer'. By default, the 142 151 mpviewer is not built when MP is built. Use this option 143 to build the mpviewer together with MP. NOTE: Make sure 144 that MP is installed before the mpviewer is built. See 145 also the README file contained in the 'mpviewer' 146 directory. 147 148 'mppvm' : The distribution comes with some pvm example 149 implementations (demonstrating the use of the PVM 150 transport device) contained in the directory 151 'mp-pvm3'. By default, the pvm examples are not built 152 when MP is build. Use this option to build the pvm 153 examples together with MP. NOTE: Make sure that MP is 154 installed before the examples are built. See also the 155 README file contained in the 'mp-pvm3' directory. 152 to build the mpviewer when MP is built. NOTE: Make sure 153 that MP is installed before the mpviewer is built. Also 154 see the README file contained in the 'mpviewer' directory. 155 156 'mppvm' : The distribution comes with some pvm example implementations 157 (demonstrating the use of the PVM transport device) contained 158 in the directory 'mp-pvm3'. By default, the pvm examples are 159 not built when MP is built. Use this option to build the pvm 160 examples when MP is built. NOTE: Make sure that MP is installed 161 before the examples are built. Also see the README file in the 162 'mp-pvm3' directory. If the pvm include files and libraries are 163 not in standard places, you must be sure the PVM_ARCH and PVM_ROOT 164 are set. Note also that if you use this option, you must also 165 use the `--with-pvm' option (see below). 156 166 157 167 -
MP/Makefile.in
r1b7361b ra708e0 15 15 16 16 ## 17 ## various paths 18 ## 19 prefix = @prefix@ 20 exec_prefix = @exec_prefix@ 21 includedir = @includedir@ 22 libdir = @libdir@ 23 24 ## 17 25 ## various programs 18 26 ## 19 27 @SET_MAKE@ 20 28 CLEAN = @CLEAN@ 29 RANLIB = ranlib 30 RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ] 31 INSTALL = ./install-sh -c 32 INSTALL_PROGRAM = ${INSTALL} 33 INSTALL_DATA = ${INSTALL} -m 644 34 MKINSTALLDIRS = ./mkinstalldirs 21 35 22 36 ## … … 34 48 for SUBDIR in ${BUILD_SUBDIRS}; \ 35 49 do \ 36 echo ${MAKE} $@ in $${SUBDIR}; \ 37 cd $${SUBDIR}; \ 38 ${MAKE} $@; \ 39 cd .. ;\ 50 if test "$${SUBDIR}" = gmp && test "$@" != all; then \ 51 if test "$@" = install; then \ 52 ${MAKE} installgmp; \ 53 else \ 54 ${MAKE} uninstallgmp; \ 55 fi; \ 56 else \ 57 echo ${MAKE} $@ in $${SUBDIR}; \ 58 cd $${SUBDIR}; \ 59 ${MAKE} $@; \ 60 cd .. ;\ 61 fi; \ 40 62 done 41 63 … … 53 75 distclean) ${CLEAN}; \ 54 76 rm -rf Makefile config.status config.log config.cache TAGS* \ 55 *.gz *.tar *.tgz lib include info ;;\77 *.gz *.tar *.tgz lib include info bin;;\ 56 78 maintainer-clean) rm -f configure; ${CLEAN}; \ 57 79 rm -rf Makefile config.status config.log config.cache TAGS* \ … … 64 86 libMPT.a MPT : force 65 87 cd MPT; $(MAKE) all 88 89 gmp/libgmp.a : 90 cd gmp; $(MAKE) libgmp.a 91 92 installgmp: gmp/libgmp.a 93 ${MKINSTALLDIRS} ${libdir} 94 ${MKINSTALLDIRS} ${includedir} 95 $(INSTALL_DATA) gmp/libgmp.a ${libdir} 96 if $(RANLIB_TEST) ; then $(RANLIB) $(libdir)/libgmp.a; else true; fi 97 $(INSTALL_DATA) gmp/gmp.h $(includedir) 98 99 uninstallgmp: force 100 rm -f $(libdir)/libgmp.a $(includedir)/gmp.h 101 - rmdir $(libdir) $(includedir) 66 102 67 103 examples: force -
MP/examples/Makefile.in
r1b7361b ra708e0 11 11 prefix = @prefix@ 12 12 exec_prefix = @exec_prefix@ 13 libdir = $(exec_prefix)/lib13 libdir = @libdir@ 14 14 includedir = $(prefix)/include 15 bindir = @bindir@ 16 # MP sources and MP.h reside here 17 mp_srcdir = ../MP 15 18 BIGNUM_INCL = $(prefix)/gmp 16 19 … … 18 21 SHELL = /bin/sh 19 22 CFLAGS = @CFLAGS@ 23 CPPFLAGS = -I. @CPPFLAGS@ 20 24 DEFS = @DEFS@ 21 25 … … 24 28 LIBDIR = $(libdir) 25 29 26 CLEAN = @CLEAN@ rm -f *.out 27 30 CLEAN = @CLEAN@ rm -f *.out *.o 31 INSTALL = ../install-sh -c 32 INSTALL_PROGRAM = ${INSTALL} 28 33 29 34 COMPILE = $(CC) $(DEFS) -L$(LIBDIR) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) … … 37 42 send-vec recv-vec 38 43 39 all: mk- progs44 all: mk-bindir mk-progs 40 45 41 install: mk-progs 46 install: mk-bindir mk-progs 47 48 mk-bindir: 49 $(top_srcdir)/mkinstalldirs $(bindir) 42 50 43 51 mk-progs: $(PROGRAMS) … … 50 58 rm -f Makefile 51 59 52 gmptest : gmptest.c $(libdir)/libMP.a 60 61 gmptest : gmptest.c 53 62 ${COMPILE} $@.c -o $@ $(LIBS) 63 ${INSTALL} $@ ${bindir} 54 64 55 client : client.c $ (libdir)/libMP.a65 client : client.c ${mp_srcdir}/libMP.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h 56 66 ${COMPILE} $@.c -o $@ $(LIBS) 67 ${INSTALL} $@ ${bindir} 57 68 58 server : server.c util $(libdir)/libMP.a69 server : server.c util.o ${mp_srcdir}/libMP.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h 59 70 ${COMPILE} util.o $@.c -o $@ $(LIBS) 71 ${INSTALL} $@ ${bindir} 60 72 61 imp-client : imp-client.c $ (libdir)/libMP.a73 imp-client : imp-client.c ${mp_srcdir}/libMP.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h 62 74 ${COMPILE} $@.c -o $@ $(LIBS) 75 ${INSTALL} $@ ${bindir} 63 76 64 imp-server : imp-server.c util $(libdir)/libMP.a77 imp-server : imp-server.c util.o ${mp_srcdir}/libMP.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h 65 78 ${COMPILE} util.o $@.c -o $@ $(LIBS) 79 ${INSTALL} $@ ${bindir} 66 80 67 send-tree : send-tree.c $ (libdir)/libMP.a81 send-tree : send-tree.c ${mp_srcdir}/libMP.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h 68 82 ${COMPILE} $@.c -o $@ $(LIBS) 83 ${INSTALL} $@ ${bindir} 69 84 70 recv-tree : recv-tree.c node util $(libdir)/libMP.a85 recv-tree : recv-tree.c node.o util.o ${mp_srcdir}/libMP.a ${mp_srcdir}/MP_Config.h ${mp_srcdir}/MP.h 71 86 ${COMPILE} node.o util.o $@.c -o $@ $(LIBS) 87 ${INSTALL} $@ ${bindir} 72 88 73 send-vec : send-vec.c $ (libdir)/libMP.a89 send-vec : send-vec.c ${mp_srcdir}/libMP.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h 74 90 ${COMPILE} $@.c -o $@ $(LIBS) 91 ${INSTALL} $@ ${bindir} 75 92 76 recv-vec : recv-vec.c $ (libdir)/libMP.a93 recv-vec : recv-vec.c ${mp_srcdir}/libMP.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h 77 94 ${COMPILE} $@.c -o $@ $(LIBS) 95 ${INSTALL} $@ ${bindir} 78 96 79 node : node.c80 ${OBJCOMPILE} $(INCLUDES) $@.c97 node.o : 98 ${OBJCOMPILE} $(INCLUDES) node.c 81 99 82 util : util.c 83 ${OBJCOMPILE} $(INCLUDES) $@.c 100 util.o : 101 ${OBJCOMPILE} $(INCLUDES) util.c 102 103 ${mp_srcdir}/libMP.a: 104 cd ${mp_srcdir}; ${MAKE} install 105 106 ${mp_srcdir}/MP.h: 107 cd ${mp_srcdir}; ${MAKE} MP.h 108 109 ${mp_srcdir}/MP_Config.h: 110 cd ${mp_srcdir}; ${MAKE} MP_Config.h 111 -
MP/examples/gmptest.c
r1b7361b ra708e0 8 8 9 9 #include <stdio.h> 10 #include "MP.h" 10 /*#include "MP.h"*/ 11 11 #include "gmp.h" 12 12 -
MP/mp-pvm3/Makefile.in
r1b7361b ra708e0 86 86 mv put-vec $(XDIR) 87 87 88 master: master.c util 88 master: master.c util.o 89 89 ${COMPILE} util.o $@.c -o $@ $(LIBS) 90 90 mv master $(XDIR) … … 94 94 mv put-tree $(XDIR) 95 95 96 get-tree: get-tree.c util 96 get-tree: get-tree.c util.o 97 97 ${COMPILE} util.o $@.c -o $@ $(LIBS) 98 98 mv get-tree $(XDIR) … … 102 102 mv mcast-put-tree $(XDIR) 103 103 104 mcast-get-tree: mcast-get-tree.c util 104 mcast-get-tree: mcast-get-tree.c util.o 105 105 ${COMPILE} util.o $@.c -o $@ $(LIBS) 106 106 mv mcast-get-tree $(XDIR) … … 110 110 mv slave $(XDIR) 111 111 112 util : util.c113 ${OBJCOMPILE} $(INCLUDES) $@.c112 util.o : 113 ${OBJCOMPILE} $(INCLUDES) util.c 114 114 -
MP/mp-pvm3/get-tree.c
r1b7361b ra708e0 12 12 #include "pvm3.h" 13 13 #include "MP.h" 14 #include "MP_PvmTransp.h"15 14 16 15 EXTERN MP_TranspOps_t pvm_ops; -
MP/mp-pvm3/get-vec.c
r1b7361b ra708e0 14 14 #include "pvm3.h" 15 15 #include "MP.h" 16 #include "MP_PvmTransp.h"17 16 18 17 EXTERN MP_TranspOps_t pvm_ops; -
MP/mp-pvm3/master.c
r1b7361b ra708e0 17 17 #include "pvm3.h" 18 18 #include "MP.h" 19 #include "MP_PvmTransp.h"20 19 21 20 #define ENCODING PvmDataRaw -
MP/mp-pvm3/mcast-get-tree.c
r1b7361b ra708e0 12 12 #include "pvm3.h" 13 13 #include "MP.h" 14 #include "MP_PvmTransp.h"15 14 16 15 EXTERN MP_TranspOps_t pvm_ops; -
MP/mp-pvm3/mcast-put-tree.c
r1b7361b ra708e0 14 14 #include "gmp.h" 15 15 #include "MP.h" 16 #include "MP_PvmTransp.h"17 16 18 17 EXTERN MP_TranspOps_t pvm_ops; -
MP/mp-pvm3/put-tree.c
r1b7361b ra708e0 12 12 #include "gmp.h" 13 13 #include "MP.h" 14 #include "MP_PvmTransp.h"15 14 16 15 EXTERN MP_TranspOps_t pvm_ops; -
MP/mp-pvm3/put-vec.c
r1b7361b ra708e0 10 10 #include "pvm3.h" 11 11 #include "MP.h" 12 #include "MP_PvmTransp.h"13 12 14 13 EXTERN MP_TranspOps_t pvm_ops; -
MP/mp-pvm3/slave.c
r1b7361b ra708e0 11 11 #include "MP.h" 12 12 #include "gmp.h" 13 #include "MP_PvmTransp.h"14 13 15 14 #define ENCODING PvmDataRaw -
MP/mpviewer/Makefile.in
r1b7361b ra708e0 8 8 prefix = @prefix@ 9 9 exec_prefix = @exec_prefix@ 10 libdir = $(exec_prefix)/lib 10 libdir = @libdir@ 11 bindir = @bindir@ 11 12 includedir = $(prefix)/include 12 13 … … 14 15 SHELL = /bin/sh 15 16 CFLAGS = @CFLAGS@ 17 CPPFLAGS = -I. @CPPFLAGS@ 16 18 17 19 INCLUDES = -I$(includedir) … … 20 22 21 23 CLEAN = @CLEAN@ 24 INSTALL = ../install-sh -c 25 INSTALL_PROGRAM = ${INSTALL} 22 26 23 27 … … 28 32 29 33 .c.o: 30 ${CC} $(INCLUDES) ${CFLAGS} ${ DEFS} -c $<34 ${CC} $(INCLUDES) ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $< 31 35 32 36 HEADER = label.h leaf.h node.h ${prefix}/include/MP.h … … 40 44 all: mpview 41 45 42 install: mpview 46 install: mk-bindir mpview 47 ${INSTALL_PROGRAM} mpview ${bindir} 48 49 mk-bindir: 50 ${top_srcdir}/mkinstalldirs ${bindir} 51 43 52 44 53 mpview: ${OBJ}
Note: See TracChangeset
for help on using the changeset viewer.