blob: 1296455c1f734a3d28e7314c00196291fa6bb421 (
plain) (
blame)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
/*
* Imake template and rules for X11IRAF.
*
* Mike Fitzpatrick, National Optical Astronomy Observatories, IRAF project.
* Aug 19 1996
*/
#include <Library.tmpl>
/* CONFIGURE: You may edit the symbol definitions below as you see fit,
* e.g. change the definition of "InstallLibraries" and "InstallIncludes"
* to "YES" if you want to have the libraries and include files installed,
* see below for *where* they will be installed.
*/
#ifndef InstallBinaries
#define InstallBinaries YES
#endif
#ifndef InstallManuals
#define InstallManuals YES
#endif
#ifndef InstallAppdefs
#define InstallAppdefs YES
#endif
#ifndef InstallLibraries
#define InstallLibraries YES
#endif
#ifndef InstallIncludes
#define InstallIncludes YES
#endif
/* CONFIGURE: Where to install X11IRAF (defaults to the X11IRAF directories).
*/
#ifndef X11irafDir /* defaults to nothing */
#define X11irafDir
#endif
#ifndef X11irafBinDir
#define X11irafBinDir $(X11IRAFDIR)/bin
#endif
#ifndef X11irafManDir
#define X11irafManDir $(X11IRAFDIR)/man
#endif
#ifndef X11irafLibDir
#define X11irafLibDir $(X11IRAFDIR)/lib
#endif
#ifndef X11irafIncDir
#define X11irafIncDir $(X11IRAFDIR)/include
#endif
#ifndef X11irafAppDir
#define X11irafAppDir $(X11IRAFDIR)/app-defaults
#endif
/******************************************************************************/
/********************** End of configurable definitions. **********************/
/******************************************************************************/
/* Subdirectories: */
#ifndef XGtermDir
#define XGtermDir $(X11IRAFDIR)/xgterm
#endif
#ifndef XImtoolDir
#define XImtoolDir $(X11IRAFDIR)/ximtool
#endif
#ifndef XTapemonDir
#define XTapemonDir $(X11IRAFDIR)/xtapemon
#endif
#ifndef ObmshDir
#define ObmshDir $(X11IRAFDIR)/obmsh
#endif
#ifndef ObmDir
#define ObmDir $(X11IRAFDIR)/obm
#endif
#ifndef Xaw3dDir
#define Xaw3dDir $(X11IRAFDIR)/xaw3d
#endif
#ifndef XpmDir
#define XpmDir $(X11IRAFDIR)/xpm
#endif
#ifndef CDLDir
#define CDLDir $(X11IRAFDIR)/cdl
#endif
/* Libraries: */
#ifndef LibObm
#define LibObm -lobm
#endif
#ifndef LibXpm
#define LibXpm -lXpm
#endif
#ifndef LibXaw3d
#define LibXaw3d -lXaw3d
#endif
#ifndef LibCDL
#define LibCDL -lcdl
#endif
/* Dependency libraries: */
#ifndef DepLibObm
#define DepLibObm $(OBMDIR)/libobm.a
#endif
#ifndef DepLibXpm
#define DepLibXpm $(XPMDIR)/libXpm.a
#endif
#ifndef DepLibXaw3d
#define DepLibXaw3d $(XAW3DDIR)/libXaw3d.a
#endif
#ifndef DepLibCDL
#define DepLibCDL $(CDLDIR)/libcdl.a
#endif
X11IRAFBINDIR = X11irafBinDir
X11IRAFMANDIR = X11irafManDir
X11IRAFLIBDIR = X11irafLibDir
X11IRAFINCDIR = X11irafIncDir
XGTERMDIR = XGtermDir
XIMTOOLDIR = XImtoolDir
XTAPEMONDIR = XTapemonDir
OBMSHDIR = ObmshDir
OBMDIR = ObmDir
XPMDIR = XpmDir
XAW3DDIR = Xaw3dDir
CDLDIR = CDLDir
DEPLIBOBM = DepLibObm
LIBOBM = LibObm
DEPLIBXPM = DepLibXpm
LIBXPM = LibXpm
DEPLIBXAW3D = DepLibXaw3d
LIBXAW3D = LibXaw3d
LIBCDL = LibCDL
X11IRAF_LDFLAGS = -L$(X11IRAFDIR)/lib -L../lib
X11IRAF_INCLUDES = -I$(X11IRAFDIR)/include -I../include
/******************************************************************************/
/******************** Architecture specific definitions. **********************/
/******************************************************************************/
/* Redefine $(CP) to preserve the filedate so we don't recompile unnecessarily
* after a 'make install'.
*/
CP = cp -p
/* For Solaris x86 check to see whether the SUNPro compilers are actually
* installed, if not assume we have GCC available and use it instead.
*/
#if defined(i386Architecture) && defined(SunArchitecture)
CC:sh = if test /opt/SUNWspro/bin/cc ; \
then \
echo gcc ; \
fi
#if CC == gcc
#define UseGCC YES
CCOPTIONS =
EXTRA_LDOPTIONS =
#endif
#endif
/* Hack to compile under SunPRO V4 on Sun Solaris */
#if !defined(UseGCC)
#if defined (SunArchitecture) && HasSunC && OSMajorVersion >= 5
#if OSMinorVersion <= 5
CCOPTIONS = -Xs
EXTRA_LDOPTIONS = -xildoff
#else
CCOPTIONS =
EXTRA_LDOPTIONS = -xildoff
#endif
#endif
#endif
/* Set needed flags for the HP. */
#if defined (HPArchitecture)
CCOPTIONS = -DHPUX
#endif
/* Set needed flags for the DECStations. */
#if defined (UltrixArchitecture)
CCOPTIONS = -DULTRIX
#endif
/* Set needed flags for the Alpha. */
#if defined (OSF1Architecture) && OSMajorVersion >= 4
CCOPTIONS = -DOSF1
#endif
/* Hack needed so binaries built on NOAO Alpha use patched Xt library */
#if defined (OSF1Architecture) && OSMajorVersion >= 4
XTOOLONLYLIB = -no_so -lXt -so_archive
#endif
/* Set needed flags for the OS X. Shut off the endless -Wall warnings.*/
#if defined (DarwinArchitecture)
CCOPTIONS = -w
#endif
|