File: mkmf

package info (click to toggle)
plplot 5.3.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 26,248 kB
  • ctags: 11,687
  • sloc: ansic: 86,045; xml: 17,249; sh: 12,400; tcl: 8,113; cpp: 6,824; perl: 4,383; python: 3,915; makefile: 2,899; java: 2,788; fortran: 290; sed: 5; awk: 1
file content (105 lines) | stat: -rwxr-xr-x 2,634 bytes parent folder | download | duplicates (4)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/sh --
# --------------------------------------------------------------------
# mkmf - a Makefile build script for DOS
# it *must* be run from the emx directory
#
# NB: none of the names in ./cf should have mixed case
# --------------------------------------------------------------------

enable_f77="no"
plcf="../../../cf"

# --------------------------------------------------------------------
if [ ! -f mkmf ]
then
    echo " ERROR: mkmk *must* be run from the emx directory"
    exit
fi
# make certain that "tmp" directory exists
if [ ! -d ./tmp ]; then mkdir ./tmp; fi

# Makefile initialization
echo "creating tmp/makefile"

cat cf/init.in		>tmp/makefile

# Default target, core source and object file lists

cat $plcf/dist.in	>>tmp/makefile

# Copy source file lists and add compiler specific source to makefile

cat cf/emx.in		>>tmp/makefile

# Optional packages

if [ $enable_f77 = "yes" ]; then cat $plcf/pkg_f77.in	>>tmp/makefile; fi

# Library targets

cat cf/initlib.in	>>tmp/makefile
cat cf/lib.in		>>tmp/makefile

# Program and demo file dependencies, targets

cat $plcf/exes.in	>>tmp/makefile
cat $plcf/demos.in	>>tmp/makefile

# Installation and miscellaneous.

cat cf/install.in	>>tmp/makefile
if [ -f cf/Misc.in ]
then
    cat cf/Misc.in		>>tmp/makefile
elif [ -f cf/misc.in ]		# no mixed case ?
then
    cat cf/misc.in		>>tmp/makefile
fi

#  Object file dependencies

cat $plcf/objs.in	>>tmp/makefile

# make list of objects for the response file

echo "creating tmp/libfiles.tmp"

cat cf/all_o.rsp >tmp/libfiles.tmp
if [ $enable_f77 = "yes" ]; then cat cf/fstubs_o.rsp >>tmp/libfiles.tmp; fi

# --------------------------------------------------------------------
# Now build Makedemo.in.
# Makedemo is a stand-alone makefile for the demo programs.
# Note: it links against the installed PLplot library.
# --------------------------------------------------------------------

echo "creating tmp/Makedemo"

cat cf/init.in		>tmp/makedemo
cat cf/initdemo.in	>>tmp/makedemo

cat $plcf/demos.in	>>tmp/makedemo
if [ -f cf/Miscdemo.in ]
then
    cat cf/Miscdemo.in		>>tmp/makedemo
elif [ -f cf/miscdemo.in ]		# no mixed case ?
then
    cat cf/miscdemo.in		>>tmp/makedemo
fi
 
# give some reminders of what is to be done
echo "done"
echo ""
echo ""
echo "unix% ./link main stubs NFS	(an NFS mounted drive  -- only done once)"
echo "dos$  .\link main stubs		(ordinary installation -- only done once)"
echo ""
echo "To Compile:"
echo ""
echo "dos$ cd tmp"
echo "dos$ make"
echo "dos$ make install"

# unset local variables
unset enable_f77 plcf
# -------------------------------------------------------- end of file