~ubuntu-branches/ubuntu/feisty/pvm/feisty

« back to all changes in this revision

Viewing changes to cygwin.mak

  • Committer: Bazaar Package Importer
  • Author(s): Steinar H. Gunderson
  • Date: 2006-08-09 00:00:40 UTC
  • mfrom: (2.1.5 dapper)
  • Revision ID: james.westby@ubuntu.com-20060809000040-16kh33tmxx2em716
Tags: 3.4.5-7
Build with SHELL=/bin/bash in debian/rules; fixes FTBFS when /bin/sh
isn't bash. (Closes: #379543)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#*****************************************************************************#
 
2
 
3
# makefile
 
4
# for PVM in the Cygwin environement
 
5
#
 
6
#*****************************************************************************#
 
7
 
 
8
intro:
 
9
        @echo
 
10
        @echo "This is a makefile for (re)compiling the PVM code" 
 
11
        @echo "and/or the examples for the cygwin environment. For"
 
12
        @echo "generic use, you must provide one of the following inputs:"
 
13
        @echo 
 
14
        @echo "make -f cygwin.mak pvm"
 
15
        @echo "         --      will recompile and reinstall the PVM code"
 
16
        @echo "                 by compiling the libpvm, daemon,"
 
17
        @echo "                 groupserver and console"
 
18
        @echo
 
19
        @echo "make -f cygwin.mak examples"
 
20
        @echo "         --      will recompile the C examples"
 
21
        @echo
 
22
        @echo "make -f cygwin.mak all"
 
23
        @echo "         --      will compile the items above"
 
24
        @echo
 
25
        @echo "make -f cygwin.mak clean"
 
26
        @echo "         --      will erase the object files"
 
27
        @echo
 
28
        @echo "make -f cygwin.mak tidy"
 
29
        @echo "         --      will erase the object and executables"
 
30
        @echo
 
31
 
 
32
all: pvm examples
 
33
 
 
34
pvm: _lib _tracer _console _pvmgs
 
35
        @echo "Installation complete."
 
36
        @echo
 
37
 
 
38
_lib:
 
39
        @echo "Compiling and installing library (C) and daemon" 
 
40
        cd src ; \
 
41
         make -f cygwin.mak
 
42
        @echo
 
43
        touch _lib
 
44
 
 
45
_tracer:
 
46
        @echo "Compiling and installing tracer"
 
47
        cd tracer ; \
 
48
         make -f cygwin.mak
 
49
        @echo
 
50
        touch _tracer
 
51
 
 
52
_console:
 
53
        @echo "Compiling and installing console"
 
54
        cd console ; \
 
55
         make -f cygwin.mak
 
56
        @echo
 
57
        touch _console
 
58
 
 
59
_pvmgs:
 
60
        @echo "Compiling and installing groupserver"
 
61
        cd pvmgs ; \
 
62
         make -f cygwin.mak
 
63
        @echo
 
64
        touch _pvmgs
 
65
 
 
66
examples: _cexamples
 
67
 
 
68
_cexamples:
 
69
        @echo "Building C examples"
 
70
        cd examples ; \
 
71
         make -f cygwin.mak c-all
 
72
        @echo
 
73
        touch _cexamples
 
74
 
 
75
tidy: clean
 
76
        @echo "Cleaning Execs and Libs ..."
 
77
        rm -f bin/win32/*.exe
 
78
        rm -f console/win32/*.exe
 
79
        rm -f tracer/win32/*.{exe,a}
 
80
        rm -f lib/win32/*.{exe,a}
 
81
        @echo
 
82
 
 
83
clean:
 
84
        @echo "Cleaning objects ..."
 
85
        rm -f _lib src/win32/*.o
 
86
        @echo "Cleaning console objects ..."
 
87
        rm -f _console console/win32/*.o
 
88
        @echo "Cleaning pvmgs objects ..."
 
89
        rm -f _pvmgs pvmgs/win32/*.o
 
90
        @echo "Cleaning tracer objects ..."
 
91
        rm -f _tracer tracer/win32/*.o
 
92
        @echo "Cleaning examples objects ..."
 
93
        rm -f _cexamples examples/win32/*.o
 
94
        @echo
 
95