File: Project

package info (click to toggle)
ncl 6.3.0-13
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 196,648 kB
  • ctags: 70,631
  • sloc: ansic: 603,601; fortran: 441,469; sed: 11,222; csh: 8,350; yacc: 4,253; xml: 1,928; sh: 1,526; lex: 1,266; python: 1,067; f90: 652; perl: 479; java: 447; objc: 291; makefile: 109
file content (681 lines) | stat: -rw-r--r-- 18,181 bytes parent folder | download
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
/*
 *      $Id: Project,v 1.125 2010-05-03 18:22:29 haley Exp $
 */

/************************************************************************
*                                                                       *
*           Copyright (C) 1993                                          *
*       University Corporation for Atmospheric Research                 *
*           All Rights Reserved                                         *
*                                                                       *
************************************************************************/

/*
 *	File:		Project
 *
 *	Author:		Jeff W. Boote
 *			National Center for Atmospheric Research
 *			PO 3000, Boulder, Colorado
 *
 *	$Date: 2010-05-03 18:22:29 $
 *
 *	Description:	This file sets up defaults for all variables specific
 *			to the ncarg project.  System defaults - ie compilers
 *			etc are in the Template file.
 */

#define NcargVersion 6.3.0
#define NclVersion 6.3.0

#ifndef	BuildNCL
#define	BuildNCL
#else
#if	!BuildNCL
#undef	BuildNCL
#endif
#endif	/* BuildNCL */

#ifndef    BuildNetCDF4
#define    BuildNetCDF4
#else
#if    !BuildNetCDF4
#undef BuildNetCDF4
#endif
#endif /* BuildNetCDF4 */

#ifndef    UseNetCDF4Features
#define    UseNetCDF4Features
#else
#if    !UseNetCDF4Features
#undef UseNetCDF4Features
#endif
#endif /* UseNetCDF4Features */

#ifndef	BuildHDF4
#define	BuildHDF4
#else
#if	!BuildHDF4
#undef	BuildHDF4
#endif
#endif	/* BuildHDF4 */

#ifndef	BuildHDFEOS
#define	BuildHDFEOS
#define	BuildHDF	/* If defined HDFEOS, then we need HDF4 as well */
#else
#if	!BuildHDFEOS
#undef	BuildHDFEOS
#endif
#endif	/* BuildHDFEOS */

#ifndef BuildHDF5
#define BuildHDF5
#else
#if     !BuildHDF5
#undef  BuildHDF5
#endif
#endif  /* BuildHDF5 */

#ifndef	BuildHDFEOS5
#define	BuildHDFEOS5
#define BuildHDF5	/* If defined HDFEOS5, then we need HDF5 as well */
#else
#if	!BuildHDFEOS5
#undef	BuildHDFEOS5
#endif
#endif	/* BuildHDFEOS5 */

#ifndef	BuildGRIB2
#define	BuildGRIB2
#else
#if	!BuildGRIB2
#undef	BuildGRIB2
#endif
#endif	/* BuildGRIB2 */

#ifndef	BuildTRIANGLE
#define	BuildTRIANGLE
#else
#if	!BuildTRIANGLE
#undef	BuildTRIANGLE
#endif
#endif	/* BuildTRIANGLE */

#ifndef	BuildUdunits
#define	BuildUdunits
#else
#if	!BuildUdunits
#undef	BuildUdunits
#endif
#endif	/* BuildUdunits */

#ifndef    BuildV5D
#undef BuildV5D
#else
#if     !BuildV5D
#undef  BuildV5D
#endif
#endif /* BuildV5D */

#ifndef BuildOpenCL
#undef BuildOpenCL
#else
#if     !BuildOpenCL
#undef  BuildOpenCL
#endif
#endif  /* BuildOpenCL */

#ifndef BuildQtEnabled
#undef BuildQtEnabled
#else
#if     !BuildQtEnabled
#undef  BuildQtEnabled
#endif
#endif  /* BuildQtEnabled */

/* No longer build the old PNG driver since we have the new cairo one. */
#if !BuildPNG
#undef	BuildPNG
#endif

/* GDAL support is not yet built by default. */
#if !BuildGDAL
#undef BuildGDAL
#endif

#if !BuildGRIDSPEC
#undef BuildGRIDSPEC
#endif

#ifndef	BuildRasterHDF
#define	BuildRasterHDF
#else
#if	!BuildRasterHDF
#undef	BuildRasterHDF
#endif
#endif	/* BuildRasterHDF */

#ifndef	BuildRasterHPPCL
#define	BuildRasterHPPCL
#else
#if	!BuildRasterHPPCL
#undef	BuildRasterHPPCL
#endif
#endif	/* BuildRasterHPPCL */

#ifndef	BuildRasterNrif
#define	BuildRasterNrif
#else
#if	!BuildRasterNrif
#undef	BuildRasterNrif
#endif
#endif	/* BuildRasterNrif */

#ifndef	BuildRasterSun
#define	BuildRasterSun
#else
#if	!BuildRasterSun
#undef	BuildRasterSun
#endif
#endif	/* BuildRasterSun */

#ifndef	BuildRasterAVS
#define	BuildRasterAVS
#else
#if	!BuildRasterAVS
#undef	BuildRasterAVS
#endif
#endif	/* BuildRasterAVS */

#ifndef	BuildRasterSGI
#define	BuildRasterSGI
#else
#if	!BuildRasterSGI
#undef	BuildRasterSGI
#endif
#endif	/* BuildRasterSGI */

#ifndef	BuildRasterAbekas
#define	BuildRasterAbekas
#else
#if	!BuildRasterAbekas
#undef	BuildRasterAbekas
#endif
#endif	/* BuildRasterAbekas */

#ifndef	BuildRasterBinary
#define	BuildRasterBinary
#else
#if	!BuildRasterBinary
#undef	BuildRasterBinary
#endif
#endif	/* BuildRasterBinary */

#ifndef	BuildRasterYUV
#define	BuildRasterYUV
#else
#if	!BuildRasterYUV
#undef	BuildRasterYUV
#endif
#endif	/* BuildRasterYUV */

#ifndef BuildXlibDependentCode
#define BuildXlibDependentCode
#else
#if	!BuildXlibDependentCode
#undef	BuildXlibDependentCode
#endif
#endif	/* BuildXlibDependentCode */

#ifdef	BuildSunViewctrans
#if	!(BuildSunViewctrans)
#undef	BuildSunViewctrans
#endif
#endif	/* BuildSunViewctrans */

#ifndef	PNGlib
#define	PNGlib	-lpng -lz
#endif	/* PNGlib */

#ifndef CAIROlib
#define CAIROlib -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2
#endif

/* This should be same as CAIROlib except with no explicit paths */
#ifndef CAIROlibuser
#define CAIROlibuser  -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lXrender -lbz2
#endif

#ifdef	BuildHDFEOS
#ifndef	HDFEOSlib
#define	HDFEOSlib   -lhdfeos -lGctp
#endif	/* HDFEOSlib */
#else
#define	HDFEOSlib
#endif

#ifdef	BuildHDFEOS5
#ifndef	HDFEOS5lib
#define	HDFEOS5lib   -lhe5_hdfeos -lGctp
#endif	/* HDFEOS5lib */
#else
#define	HDFEOS5lib
#endif

#ifdef	BuildHDF4
#ifndef	HDFlib
#define	HDFlib	-lmfhdf -ldf -ljpeg -lz
#endif	/* HDFlib */
#else
#define	HDFlib
#endif

#ifdef BuildHDF5
#ifndef	HDF5lib
#define	HDF5lib	-lhdf5_hl -lhdf5 -lsz -lz
#endif	/* HDF5lib */
#else
#define	HDF5lib
#endif

#ifdef BuildGDAL
#ifndef	GDALlib
#define	GDALlib   -lgdal -lproj -ljpeg
#endif
#else
#define GDALlib
#endif

#ifdef BuildGRIDSPEC
#ifndef	GRIDSPEClib
#define	GRIDSPEClib   -lcf
#endif
#else
#define GRIDSPEClib
#endif

#ifndef	GRIB2lib
#define       GRIB2lib   -lgrib2c  -lpng -lz -ljpeg
#endif	/* GRIB2lib */

#ifndef	NetCDFlib
#define	NetCDFlib	-lnetcdf -lcurl
/*#define	NetCDFlib	-lnetcdf -lcurl -lssl -lidn -lrt -lldap */
/*#define	NetCDFlib	-lnetcdf -lcurl -lcrypto -lldap -lssl */
#endif	/* NetCDFlib */

#ifndef	NetCDF4lib
#define	NetCDF4lib	-lhdf5_hl -lhdf5 -lsz
#endif	/* NetCDF4lib */

#ifndef	UdUnitslib
#define	UdUnitslib	-ludunits2 -lexpat
#endif	/* UdUnitslib */

#ifdef BuildV5D
#ifndef    V5Dlib
#define    V5Dlib  -lv5d
#endif /* V5Dlib */
#endif

#ifdef BuildOpenCL
#ifndef	OpenCLlib
#define	OpenCLlib -framework OpenCL
#endif	/* OpenCLlib */
#endif

#ifndef	XdrLibrary
#define	XdrLibrary	/**/
#endif	/* XdrLibrary */

#ifndef	ProjectDefines
#define	ProjectDefines	-DNeedFuncProto
#endif

#ifndef	GksBufferSize
#define GksBufferSize 0
#endif	/* GksBufferSize */

#ifdef BETA
NGVERSION       = NcargVersion-BETA
NCLVERSION      = NclVersion-BETA
#else
#ifdef DEVEL
NGVERSION       = NcargVersion-$(DATE)
NCLVERSION      = NclVersion-$(DATE)
#else
NGVERSION       = NcargVersion
NCLVERSION      = NclVersion
#endif
#endif

NCARGDIR		= ncarg
HLUDIR			= hlu
HLUEXDIR		= hluex
NCLDIR			= ncl
NCLEXDIR		= nclex
PYNGLEXDIR		= pynglex
PYNGLDIR		= PyNGL
NGODIR			= ngo
NFPDIR			= nfp
NFPFORTDIR		= nfpfort
DATADIR			= data
GRIB2CODETABLEDIR	= grib2_codetables
DBDIR			= database
FONTCAPDIR		= fontcaps
GRAPHCAPDIR		= graphcaps
EXAMPLESDIR		= examples
TUTORIALDIR		= tutorial
TESTSDIR		= tests
RESDIR			= resfiles
ROBJDIR			= robj
WWWDIR			= ngwww
XAPPDIR			= xapp

LIBNCARGROOT		= $(LIBROOT)/$(NCARGDIR)
CONFIGROOT		= $(LIBNCARGROOT)/$(CONFIGDIR)
DBROOT			= $(LIBNCARGROOT)/$(DBDIR)
FONTCAPROOT		= $(LIBNCARGROOT)/$(FONTCAPDIR)
GRAPHCAPROOT		= $(LIBNCARGROOT)/$(GRAPHCAPDIR)
DATAROOT		= $(LIBNCARGROOT)/$(DATADIR)
DOCROOT			= $(LIBNCARGROOT)/$(DOCDIR)
EXAMPLESROOT		= $(LIBNCARGROOT)/$(EXAMPLESDIR)
ROBJROOT		= $(LIBNCARGROOT)/$(ROBJDIR)
TESTSROOT		= $(LIBNCARGROOT)/$(TESTSDIR)
TUTORIALROOT		= $(LIBNCARGROOT)/$(TUTORIALDIR)
WWWROOT			= $(LIBNCARGROOT)/$(WWWDIR)
XAPPROOT		= $(LIBNCARGROOT)/$(XAPPDIR)
HLUEXROOT		= $(LIBNCARGROOT)/$(HLUEXDIR)
RESFILEROOT		= $(LIBNCARGROOT)/$(RESDIR)
NCLEXROOT		= $(LIBNCARGROOT)/$(NCLEXDIR)
GRIB2CODETABLEROOT	= $(LIBNCARGROOT)/$(GRIB2CODETABLEDIR)
LIBNCARGPATH		= $(LIBPATH)/$(NCARGDIR)
CONFIGPATH		= $(LIBNCARGPATH)/$(CONFIGDIR)
DBPATH			= $(LIBNCARGPATH)/$(DBDIR)
FONTCAPPATH		= $(LIBNCARGPATH)/$(FONTCAPDIR)
GRAPHCAPPATH		= $(LIBNCARGPATH)/$(GRAPHCAPDIR)
DATAPATH		= $(LIBNCARGPATH)/$(DATADIR)
DOCPATH			= $(LIBNCARGPATH)/$(DOCDIR)
EXAMPLESPATH		= $(LIBNCARGPATH)/$(EXAMPLESDIR)
ROBJPATH		= $(LIBNCARGPATH)/$(ROBJDIR)
TESTSPATH		= $(LIBNCARGPATH)/$(TESTSDIR)
TUTORIALPATH		= $(LIBNCARGPATH)/$(TUTORIALDIR)
WWWPATH			= $(LIBNCARGPATH)/$(WWWDIR)
XAPPPATH		= $(LIBNCARGPATH)/$(XAPPDIR)
LIBNCLPATH		= $(LIBNCARGPATH)/$(NCLDIR)
HLUEXPATH		= $(LIBNCARGPATH)/$(HLUEXDIR)
RESFILEPATH		= $(LIBNCARGPATH)/$(RESDIR)
NCLEXPATH		= $(LIBNCARGPATH)/$(NCLEXDIR)
NCARGINCPATH		= $(INCPATH)/$(NCARGDIR)
HLUINCPATH		= $(NCARGINCPATH)/$(HLUDIR)
NCLINCPATH		= $(NCARGINCPATH)/$(NCLDIR)
NGOINCPATH		= $(NCARGINCPATH)/$(NGODIR)
PYNGLDOCPATH		= webdoc/pyngl
PYNGLBINPATH		= $(PYTHONBINDIR)
PYNGLNCARGPATH		= $(PYTHONPKGSDIR)/$(PYNGLDIR)/$(NCARGDIR)
USRRESFILE		= "~/.hluresfile"
NCARGURL		= "ngurl"
NCARGSITEFILE   = "ncargsite"

ROOTPATHCHECK		= "/lib/ncarg/fontcaps/font1"

/*
 * This huge define is used to define all the Environment variables
 * that NCAR Graphics uses.  Each env var is specified by a single
 * line, with the list being terminated with a NULL.
 *
 * Field 1)	The name that the env var is reference by when ncargpath
 *		is called from the shell.  Or the name sent in as the
 *		parameter to the libncarg_c functions GetNCARGPath and
 *		_NGGetNCARGEnv.
 *
 * Field 2)	The actual Environment variable that will contain the value.
 *		If this field is NULL, then it is assumed that the name
 *		of the env var is NCARG_{CAPS(Field 1)} - the prefix
 *		NCARG_ with Field one capitolized and concatinated.
 *
 * Field 3)	If the current env var is a subdirectory of one of the other
 *		env vars, then that name is placed here.  If the current
 *		env var is not set, then the parent env var is retrieved
 *		and VAL(Field 3)/(Field 1) is returned.  If field 3 is
 *		set, then field 4 and 5 are not used.
 *
 * Field 4)	This specifies a default value for the env var if it is not
 *		set, and it is not a subdirectory of another env var.
 *
 * Field 5)	If Field 4 is used, then Field 5 is a file/directory that
 *		can be concatenated to Field 4 and stat'd to determine if
 *		Field 4 is valid or not.  If (Field 4)/(Field 5) exists
 *		then a warning message is printed out that (Field 4) is
 *		being used as a default.  If it doesn't exist, then
 *		an error message is reported and NULL is returned from the
 *		functions and ncargpath reports the error.
 */
NGENV_DESCRIPT	= \
		{"tmp","TMPDIR",NULL,"$(TMPROOT)",NULL,	\
		"fontcap","FONTCAP",NULL,"/usr/share/ncarg/fontcaps",NULL,		\
		"graphcap","GRAPHCAP",NULL,"/usr/share/ncarg/graphcaps",NULL,		\
		"root",NULL,NULL,"/usr",NULL,\
		"usrresfile",NULL,NULL,$(USRRESFILE),NULL,	\
		"gks_output",NULL,NULL,"gmeta",NULL,		\
		"bin",NULL,"root","/usr/bin",NULL,			\
		"lib",NULL,NULL,"/usr/lib/@ARCH@/ncarg",NULL,			\
		"include",NULL,"root","/usr/include/ncarg",NULL,		\
		"man",NULL,"root","/usr/share/man",NULL,			\
		"ncarg",NULL,NULL,"/usr/share/ncarg",NULL,			\
		"config",NULL,"ncarg",NULL,NULL,		\
		"data",NULL,"ncarg","/usr/share/ncarg/data",NULL,			\
		"database",NULL,"ncarg","/usr/share/ncarg/database",NULL,		\
		"doc",NULL,"ncarg","/usr/share/doc/libncarg-data",NULL,			\
		"fontcaps",NULL,"ncarg","/usr/share/ncarg/fontcaps",NULL,		\
		"graphcaps",NULL,"ncarg","/usr/share/ncarg/graphcaps",NULL,		\
		"colormaps",NULL,"ncarg","/usr/share/ncarg/colormaps",NULL,		\
		"rangs","NCARG_RANGS","database","/usr/share/rangs",NULL,	\
		"udunits","NCARG_UDUNITS",NULL,"/usr/share/xml/udunits",NULL,	\
		"psadilookup","PSADILOOKUP_PATH",NULL,NULL,NULL,\
		"examples",NULL,"ncarg","/usr/share/doc/libncarg-dev/examples",NULL,		\
		"hluex",NULL,"ncarg","/usr/share/ncarg/hluex",NULL,			\
		"nclex",NULL,"ncarg","/usr/share/ncarg/nclex",NULL,			\
		"pynglex",NULL,"ncarg",NULL,NULL,		\
		"resfiles",NULL,"ncarg","/usr/share/ncarg/resfiles",NULL,		\
		"tests",NULL,"ncarg","/usr/share/ncarg/tests",NULL,			\
		"tutorial",NULL,"ncarg","/usr/share/doc/libncarg-dev/tutorial",NULL,		\
		"xapp",NULL,"ncarg",NULL,NULL,			\
		"ngwww",NULL,"ncarg","/usr/share/ncarg/ngwww",NULL,			\
		"ngurl",NULL,"ngwww","/usr/share/ncarg/ngwww/ngurl",NULL,			\
		"sysresfile",NULL,"ncarg","/usr/share/ncarg/sysresfile",NULL,		\
		"sysappres",NULL,"ncarg","/usr/share/ncarg/sysappres",NULL,		\
		"grib2_codetables","NIO_GRIB2_CODETABLES","ncarg","/usr/share/ncarg/grib2_codetables",NULL, \
		"ftfonts",NULL,"database","/usr/share/fonts/truetype/ncl",NULL,            \
		NULL}

NGENVDEF	=	-DENV_DEFS=$(NGENV_DESCRIPT)

#ifdef	UseInstalled
#define _UseLib(a,b) b
#define	_DepLib(a,b,c) b/c
#define	_UseProg(a,b) b
#else
#define _UseLib(a,b) a b
#define	_DepLib(a,b,c) a/c
#define	_UseProg(a,b) a/b
#endif

COMMONSRC	= $(TOP)/common/src
NCARG2DSRC	= $(TOP)/ncarg2d/src
NGMATHSRC	= $(TOP)/ngmath/src
NGMATHLIBSRC= $(NGMATHSRC)/lib
NVIEWSRC	= $(TOP)/ncarview/src
NVIEWBINSRC	= $(NVIEWSRC)/bin
NVIEWLIBSRC	= $(NVIEWSRC)/lib
NISRC		= $(TOP)/ni/src
NIBINSRC	= $(NISRC)/bin
NILIBSRC	= $(NISRC)/lib
EXTERNALSRC	= $(TOP)/external
PYNIOSRC        = $(TOP)/pynio
NCARGCLIBSRC	= $(COMMONSRC)/libncarg_c
NCARGLIBSRC	= $(NCARG2DSRC)/libncarg
NCARGGKSLIBSRC	= $(NCARG2DSRC)/libncarg_gks
NCARGOPTLIBSRC	= $(NCARG2DSRC)/liboptional
CGMLIBSRC	= $(NVIEWLIBSRC)/libcgm
CTRANSLIBSRC	= $(NVIEWLIBSRC)/libctrans
ICTRANSLIBSRC	= $(NVIEWLIBSRC)/libictrans
NCARGRASLIBSRC	= $(NVIEWLIBSRC)/libncarg_ras
HLULIBSRC	= $(NILIBSRC)/hlu
BLASSRC	        = $(EXTERNALSRC)/blas
LAPACKSRC       = $(EXTERNALSRC)/lapack
SPHERESRC	= $(EXTERNALSRC)/sphere3.1_dp
FFTPACK5SRC	= $(EXTERNALSRC)/fftpack5_dp
NGOLIBSRC	= $(NILIBSRC)/ngo
XCBLIBSRC	= $(NILIBSRC)/xcb
NFPLIBSRC	= $(NILIBSRC)/nfp
NFPFORTLIBSRC	= $(NILIBSRC)/nfpfort
NCLLIBSRC	= $(NISRC)/ncl
NIOLIBSRC	= $(NILIBSRC)/nio

#ifdef	BuildShared
NCARGCLIB	= -lNGc
NCARGLIB	= -lNGllu
CNCARGLIB	= -lNGlluC
NCARGGKSLIB	= -lNGgks -lcairo
NGMATHLIB	= -lNGmath
CGMLIB		= -lNGcgm
NCARGRASLIB	= -lNGras
HLULIB		= -lNGhlu
NGOLIB		= -lNGgo
XCBLIB		= -lXcb
NFPLIB		= -lnfp
NFPFORTLIB	= -lnfpfort
NIOLIB		= -lnio
NCLLIB		=
NCLAPILIB	= -lNGncl
BLASLIB	        =  -lblas
LAPACKLIB       = -llapack
SPHERELIB	= -lsphere3.1_dp
FFTPACK5LIB	= -lfftpack5_dp

CTRANSLIB	= -lNGctrans
ICTRANS_LIB	= -lNGictrans

DEPNCARGCLIB	=
DEPNCARGLIB	=
DEPNCARGGKSLIB	=
DEPNGMATHLIB	=
DEPCGMLIB	=
DEPNCARGRASLIB	=
DEPHLULIB	=
DEPNGOLIB	=
DEPNCLLIB	=
DEPNCLAPILIB	=
DEPNFPLIB	=
DEPNIOLIB	=
DEPNFPFORTLIB	= 
DEPBLASLIB	=
DEPLAPACKLIB	=
DEPSPHERELIB	=
DEPFFTPACK5LIB	=

DEPCTRANSLIB	=
DEPICTRANS_LIB	=

#else	/* BuildShared */
NCARGCLIB	= _UseLib(-L$(NCARGCLIBSRC),-lncarg_c)
NCARGLIB	= _UseLib(-L$(NCARGLIBSRC),-lncarg)
NCARGGKSLIB	= _UseLib(-L$(NCARGGKSLIBSRC),-lncarg_gks)
NCARGGKSXQFLIB	= _UseLib(-L$(NCARGGKSLIBSRC),-lncarg_gks_xq_fix)
NGMATHLIB	= _UseLib(-L$(NGMATHLIBSRC),-lngmath)
CGMLIB		= _UseLib(-L$(CGMLIBSRC),-lcgm)
NCARGRASLIB	= _UseLib(-L$(NCARGRASLIBSRC),-lncarg_ras)
HLULIB		= _UseLib(-L$(HLULIBSRC),-lhlu)
NGOLIB		= _UseLib(-L$(NGOLIBSRC),-lngo)
NFPLIB		= _UseLib(-L$(NFPLIBSRC),-lnfp)
NFPFORTLIB	= _UseLib(-L$(NFPFORTLIBSRC),-lnfpfort)
NIOLIB		= _UseLib(-L$(NIOLIBSRC),-lnio)
XCBLIB		= _UseLib(-L$(XCBLIBSRC),-lXcb)
NCLLIB		= _UseLib(-L$(NCLLIBSRC),-lncl)
NCLAPILIB	= _UseLib(-L$(NCLLIBSRC),-lnclapi)
BLASLIB         = _UseLib(-L/usr/lib/atlas-base,-lblas)
LAPACKLIB       = _UseLib(-L/usr/lib/atlas-base,-llapack )
SPHERELIB	= _UseLib(-L$(SPHERESRC),-lsphere3.1_dp)
FFTPACK5LIB	= _UseLib(-L$(FFTPACK5SRC),-lfftpack5_dp)

CTRANSLIB	= _DepLib($(CTRANSLIBSRC),$(ROBJROOT),libctrans.o)
ICTRANS_LIB	= _DepLib($(ICTRANSLIBSRC),$(ROBJROOT),libictrans_.o)

DEPNCARGCLIB	= _DepLib($(NCARGCLIBSRC),$(LIBROOT),libncarg_c.a)
DEPNCARGLIB	= _DepLib($(NCARGLIBSRC),$(LIBROOT),libncarg.a)
DEPNCARGGKSLIB	= _DepLib($(NCARGGKSLIBSRC),$(LIBROOT),libncarg_gks.a)
DEPNCARGGKSXQFLIB= _DepLib($(NCARGGKSLIBSRC),$(LIBROOT),libncarg_gks_xq_fix.a)
DEPNGMATHLIB	= _DepLib($(NGMATHLIBSRC),$(LIBROOT),libngmath.a)
DEPCGMLIB	= _DepLib($(CGMLIBSRC),$(LIBROOT),libcgm.a)
DEPNCARGRASLIB	= _DepLib($(NCARGRASLIBSRC),$(LIBROOT),libncarg_ras.a)
DEPHLULIB	= _DepLib($(HLULIBSRC),$(LIBROOT),libhlu.a)
DEPNGOLIB	= _DepLib($(NGOLIBSRC),$(LIBROOT),libngo.a)
DEPNFPLIB	= _DepLib($(NFPLIBSRC),$(LIBROOT),libnfp.a)
DEPNFPFORTLIB	= _DepLib($(NFPFORTLIBSRC),$(LIBROOT),libnfpfort.a)
DEPNIOLIB	= _DepLib($(NIOLIBSRC),$(LIBROOT),libnio.a)
DEPNCLLIB	= _DepLib($(NCLLIBSRC),$(LIBROOT),libncl.a)
DEPNCLAPILIB	= _DepLib($(NCLLIBSRC),$(LIBROOT),libnclapi.a)

DEPCTRANSLIB	= $(CTRANSLIB)
DEPICTRANS_LIB	= $(ICTRANS_LIB)
#endif	/* BuildShared */

ICTRANSLIB	= _DepLib($(ICTRANSLIBSRC),$(ROBJROOT),libictrans.o)
DEPICTRANSLIB	= $(ICTRANSLIB)

NCARGLIBS      = $(NCARGLIB) $(NCARGGKSLIB) $(NCARGCLIB) $(NFPFORTLIB) -lNGmp -lNGlluC -lNGllu -lNGff -lNGmisc -lNGcn -lpng -lz
NCARGXQFLIBS	= $(NCARGLIB) $(NCARGGKSXQFLIB) $(NCARGCLIB)
NGMATHLIBS	= $(NGMATHLIB)
HLULIBS		= $(HLULIB)
NCLLIBS		= $(NCLAPILIB)
NFPLIBS		= $(NFPLIB) $(NFPFORTLIB)
NIOLIBS		= $(NIOLIB)
EXTERNALLIBS    = $(SPHERELIB) $(FFTPACK5LIB) $(LAPACKLIB) $(BLASLIB)

DEPNCARGLIBS	= $(DEPNCARGLIB) $(DEPNCARGGKSLIB) $(DEPNCARGCLIB)
DEPNCARGXQFLIBS	= $(DEPNCARGLIB) $(DEPNCARGGKSXQFLIB) $(DEPNCARGCLIB)
DEPHLULIBS	= $(DEPHLULIB)
DEPNCLLIBS	= $(DEPHLULIB) $(DEPNCLAPILIB)
DEPNFPLIBS	= $(DEPNFPLIB) $(DEPNFPFORTLIB)
DEPNIOLIBS	= $(DEPNIOLIB)

GRAPHCSRC	= $(COMMONSRC)/graphcap
FONTCSRC	= $(COMMONSRC)/fontcap

GRAPHC		= _UseProg($(GRAPHCSRC),graphc)
FONTC		= _UseProg($(FONTCSRC),fontc)
IFTRAN      = $(NCARGLIBSRC)/Iftran/Iftran
FSPLIT      = $(NCARGLIBSRC)/Iftran/Fsplit
NYACC      = $(NISRC)/nyacc/nyacc

#ifdef	BuildRasterNetcdf
NETCDFLIB	= $(NCDFLIBS) $(XDRLIB)
#else
NETCDFLIB	=
#endif

NCDFLIBS	= NetCDFlib
PNGLIB		= PNGlib
CAIROLIB	= CAIROlib
CAIROLIBUSER	= CAIROlibuser
HDFLIB		= HDFlib
NETCDF4LIB      = NetCDF4lib
HDFEOSLIB	= HDFEOSlib
HDFEOS5LIB	= HDFEOS5lib
HDF5LIB		= HDF5lib
GDALLIB		= GDALlib
GRIB2LIB	= GRIB2lib
UDUNITSLIB	= UdUnitslib
V5DLIB      	= V5Dlib
OpenCLLIB	= OpenCLlib
GRIDSPECLIB     = GRIDSPEClib
XDRLIB		= XdrLibrary
HDFDEFINES	= HdfDefines
VDEFINE		= -DNGVERSION='"$(NGVERSION)"'  -DNCLVERSION='"$(NCLVERSION)"'
PROJECTDEFINES	= ProjectDefines
GKS_BUFFER_SIZE	= GksBufferSize
PERL = /bin/perl
NCLWEBROOT      = /web/ncl
PYNGLWEBROOT      = /web/pyngl