File: Template

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 (1020 lines) | stat: -rw-r--r-- 22,401 bytes parent folder | download | duplicates (2)
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
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
/*
 *      $Id: Template,v 1.52 2009-09-06 18:10:18 haley Exp $
 */
/************************************************************************
*									*
*			     Copyright (C)  1993			*
*	     University Corporation for Atmospheric Research		*
*			     All Rights Reserved			*
*									*
************************************************************************/
/*
 *	File:		Template
 *
 *	Author:		Jeff W. Boote
 *			National Center for Atmospheric Research
 *			PO 3000, Boulder, Colorado
 *
 *	Date:		Fri Apr 30 15:25:19 MDT 1993
 *
 *	Description:	Template file for ymake
 */

NGCOMM########################################################################
NGCOMM
NGCOMM In main Template
NGCOMM
NGCOMM########################################################################

#define YES 1
#define NO 0

SYSTEM_INCLUDE		= SystemIncludesName
DATE                    = $(shell date +%d%b%Y_%H%M)

/*
 *OS1_DEF		=	_OpSysDef -framework OpenCL
 */
OS1_DEF		=	_OpSysDef
OS2_DEF		=	_OpSys2Def
OS_DEF		=	$(OS1_DEF) $(OS2_DEF)
ARCH_DEF	=	_ArchDef
VENDOR_DEF	=	_VendorDef

#define	MAJOR		_Major
#define	MINOR		_Minor

MAJOR_DEF	=	-DMAJOR=_Major
MINOR_DEF	=	-DMINOR=_Minor
#ifdef	_SubMinor
#define	SUBMINOR	_SubMinor
SUBMINOR_DEF	=	-DSUBMINOR=_SubMinor
#else
SUBMINOR_DEF	=
#endif

NGCOMM########################################################################
NGCOMM
NGCOMM Including Site - first time
NGCOMM
NGCOMM########################################################################
#define FirstSite
#include SiteFile
#undef FirstSite
NGCOMM########################################################################
NGCOMM
NGCOMM After Including Site - first time
NGCOMM
NGCOMM########################################################################

NGCOMM########################################################################
NGCOMM
NGCOMM Including SystemIncludesName
NGCOMM
NGCOMM########################################################################
#include SystemIncludes
NGCOMM########################################################################
NGCOMM
NGCOMM After Including SystemIncludesName
NGCOMM
NGCOMM########################################################################

NGCOMM########################################################################
NGCOMM
NGCOMM Including Site - second time
NGCOMM
NGCOMM########################################################################
#define SecondSite
#include SiteFile
#undef SecondSite
NGCOMM########################################################################
NGCOMM
NGCOMM After Including Site - second time
NGCOMM
NGCOMM########################################################################

/*
 * This allows developers to over-ride the values of any of the pre-defined
 * make symbols on a project bases - even if they are using the installed
 * version of ymake. These values can be over-ridden from the YMAKEDEVFILE
 */
#ifdef	_LOCAL_CONF
NGCOMM########################################################################
NGCOMM
NGCOMM Including _LOCAL_CONF
NGCOMM
NGCOMM########################################################################
#include _LOCAL_CONF
NGCOMM########################################################################
NGCOMM
NGCOMM After Including _LOCAL_CONF
NGCOMM
NGCOMM########################################################################
#endif
/*
 * This allows developers to over-ride the values of any of the pre-defined
 * make symbols on a global bases - even if they are using the installed
 * version of ymake.
 */
#ifdef	YMAKEDEVFILE
NGCOMM########################################################################
NGCOMM
NGCOMM Including YMAKEDEVFILE
NGCOMM
NGCOMM########################################################################
#include YMAKEDEVFILE
NGCOMM########################################################################
NGCOMM
NGCOMM After Including YMAKEDEVFILE
NGCOMM
NGCOMM########################################################################
#endif

/************************************************************************
*									*
*	Now set up generic defaults					*
*									*
************************************************************************/

/*
 * DEFINE dirs for default install
 */

/*
 * For backwards compatibility - set YmakeRoot to NcargRoot if it is defined.
 */
#if	defined(NcargRoot) && !defined(YmakeRoot)
#define	YmakeRoot	NcargRoot
#endif

#ifndef	YmakeRoot
#ifdef	UseInstalled
#define	YmakeRoot	_InstRoot
#define	_IgnoreYmakeRoot
#else
#define	YmakeRoot	/usr/local/ncarg
#endif	/* UseInstalled	*/
#endif	/* YmakeRoot */

#ifndef	BinRoot
#ifndef	_IgnoreYmakeRoot
#define	BinRoot	YmakeRoot/bin
#else
#define	BinRoot	_InstBin
#endif	/* _IgnoreYmakeRoot */
#endif	/* BinRoot */

#ifndef	LibRoot
#ifndef	_IgnoreYmakeRoot
#define LibRoot YmakeRoot/lib
#else
#define	LibRoot	_InstLib
#endif	/* _IgnoreYmakeRoot */
#endif	/* LibRoot */

#ifndef	IncRoot
#ifndef	_IgnoreYmakeRoot
#define	IncRoot	YmakeRoot/include
#else
#define	IncRoot	_InstInc
#endif	/* _IgnoreYmakeRoot */
#endif	/* IncRoot */

#ifndef	ManRoot
#ifndef	_IgnoreYmakeRoot
#define	ManRoot	YmakeRoot/man
#else
#define	ManRoot	_InstMan
#endif	/* _IgnoreYmakeRoot */
#endif	/* ManRoot */

#ifndef	TmpRoot
#ifdef	UseInstalled
#define	TmpRoot	_InstTmp
#else
#define	TmpRoot	/tmp
#endif
#endif	/* TmpRoot */

/*
 * Define Actual Install directories.
 */

#ifdef	RootPath
#define	_UseRootPath
#else
#define	RootPath	YmakeRoot
#endif

#ifndef	BinPath
#ifdef	_UseRootPath
#define	BinPath	RootPath/bin
#else
#define	BinPath	BinRoot
#endif
#endif

#ifndef	LibPath
#ifdef	_UseRootPath
#define	LibPath	RootPath/lib
#else
#define	_LibRootEqualPath
#define	LibPath	LibRoot
#endif
#endif

#ifndef	IncPath
#ifdef	_UseRootPath
#define	IncPath	RootPath/include
#else
#define	_IncRootEqualPath
#define	IncPath	IncRoot
#endif
#endif

#ifndef	ManPath
#ifdef	_UseRootPath
#define	ManPath	RootPath/man
#else
#define	ManPath	ManRoot
#endif
#endif

#ifndef	BuildShared

#if	defined(SGI) && ((MAJOR >= 6) || ((MAJOR == 5) && (MINOR >= 3)))
#define	BuildShared
#elif	defined(Linux)
#define	BuildShared
#endif

#else

#if	!BuildShared
#undef	BuildShared
#endif	/* !BuildShared */

#endif	/* BuildShared */

#ifdef	BuildShared
#ifndef	_LIB_FILE

#if	defined(SGI)
#define	_LIB_FILE	"SGILib"
#elif	defined(Linux)
#define	_LIB_FILE	"LinuxLib"
#endif

#else

#if	!_LIB_FILE
#undef	_LIB_FILE
#endif
#endif	/* _LIB_FILE */

#else
#ifdef	_LIB_FILE
#undef	_LIB_FILE
#endif
#endif	/* BuildShared */


#ifndef	XLibrary
#define	XLibrary -lX11
#endif	/* XLibrary */

#ifndef	XextLibrary
#define	XextLibrary	-lXext
#endif	/* XextLibrary */

#ifndef	XToolLibrary
#define	XToolLibrary	-lXt
#endif	/* XToolLibrary */

#ifndef	XMutilLibrary
#define	XMutilLibrary	-lXmu
#endif	/* XMutilLibrary */

#ifndef	XawLibrary
#define	XawLibrary	-lXaw
#endif	/* XawLibrary */

#ifndef XmotifLibrary
#define	XmotifLibrary	-lXm
#endif	/* XmotifLibrary */

#ifndef UseCatDirs
#define	UseCatDirs	NO
#endif	/* UseCatDirs */

#ifndef	MakeProgram
#define	MakeProgram	make
#endif	/* MakeProgram */

#ifndef	CCompiler
#define	CCompiler	cc
#endif	/* CCompiler */

#ifndef	CxxCompiler
#define	CxxCompiler	c++
#endif	/* CCompiler */

#ifndef CLoader
#define	CLoader	CCompiler
#endif	/* CLoader */

#ifndef	ArchRecLibSearch
#define	ArchRecLibSearch	/**/
#endif

#ifndef	LibSearch
#define LibSearch	ArchRecLibSearch
#endif	/* LibSearch */

#ifndef	LibSearchUser
#define LibSearchUser	/**/
#endif	/* LibSearchUser */

#ifndef	PythonVersion
#define PythonVersion	/**/
#endif	/* PythonVersion */

#ifndef	PythonDir
#define PythonDir	/**/
#endif	/* PythonDir */

#ifndef	PythonBinDir
#define PythonBinDir	/**/
#endif	/* PythonBinDir */

#ifndef	PythonLibSearch
#define PythonLibSearch	/**/
#endif	/* PythonLibSearch */

#ifndef	PythonPkgsDir
#define PythonPkgsDir	/**/
#endif	/* PythonPkgsDir */

#ifndef	PythonIncSearch
#define PythonIncSearch	/**/
#endif	/* PythonIncSearch */

#ifndef	ArchRecIncSearch
#define	ArchRecIncSearch	/**/
#endif

#ifndef	IncSearch
#define IncSearch	ArchRecIncSearch
#endif	/* IncSearch */

#ifndef	Incsearchuser
#define Incsearchuser	/**/
#endif	/* Incsearchuser */

#ifndef	ExtraLibSearch
#define	ExtraLibSearch	/**/
#endif	/* ExtraLibSearch */

#ifndef	ExtraIncSearch
#define	ExtraIncSearch	/**/
#endif	/* ExtraIncSearch */

#ifndef CtoFLibraries
#define CtoFLibraries	/**/
#endif	/* CtoFLibraries */

#ifndef CtoFLibrariesUser
#define CtoFLibrariesUser	/**/
#endif	/* CtoFLibrariesUser */

#ifndef	StdDefines
#define	StdDefines	/**/
#endif	/* StdDefines */

#ifndef	Cdynamic
#define	Cdynamic	/**/
#endif	/* Cdynamic */

#ifndef	Cstatic
#define	Cstatic	/**/
#endif	/* Cstatic */

#ifndef COptimizeFlag
#define COptimizeFlag	-O
#endif	/* COptimizeFlag */

#ifndef	CDebugFlag
#define	CDebugFlag	-g
#endif	/* CDebugFlag */

#ifndef	CcOptions
#define	CcOptions	/**/
#endif	/* CcOptions */

#ifndef	MakeDepend
#define	MakeDepend	makedepend
#endif	/* MakeDepend */

#ifndef	CppCommand
#define	CppCommand	/lib/cpp
#endif	/* CppCommand */

#ifndef	FCppCommand
#define	FCppCommand	$(CONFIG_DIR)/fcpp $(CPP)
#endif	/* FCppCommand */

#ifndef	FCompiler
#define	FCompiler	f77
#endif	/* FCompiler */

#ifndef	FLoader
#define	FLoader	FCompiler
#endif	/* FLoader */

#ifndef FOptimizeFlag
#define FOptimizeFlag	-O
#endif	/* FOptimizeFlag */

#ifndef	FDebugFlag
#define	FDebugFlag	-g
#endif	/* FDebugFlag */

#ifndef FcOptions
#define	FcOptions	/**/
#endif	/* FcOptions */

#ifndef	ExeSuffix
#define	ExeSuffix	/**/
#endif	/* ExeSuffix */

#ifndef	LdCommand
#define	LdCommand	ld
#endif	/* LdCommand */

#ifndef	LdRelCommand
#define	LdRelCommand	LdCommand
#endif	/* LdRelCommand */

#ifndef	RpathFlag
#define	RpathFlag	-Wl,-rpath,
#endif

#ifndef	SysSharedLibFlags
#define	SysSharedLibFlags	/**/
#endif

#ifndef	ExtraSysLibraries
#define	ExtraSysLibraries	/**/
#endif	/* ExtraSysLibraries */

#ifndef	ExtraExportFlags
#define	ExtraExportFlags	/**/
#endif	/* ExtraExportFlags */

#ifndef	NgCallF
#define	NgCallF reg\#\#_
#endif	/* NgCallF */

#ifndef	ArCommand
#define	ArCommand	ar
#endif	/* ArCommand */

#ifndef	ArSrcCommand
#define	ArSrcCommand	ar
#endif	/* ArCommand */

#ifndef ArRegOpt
#define	ArRegOpt	vru
#endif	/* ArRegOpt */

#ifndef	ArQuickOpt
#define	ArQuickOpt	q
#endif	/* ArQuickOpt */

#ifndef	LexCommand
#define	LexCommand	flex
#endif	/* LexCommand */

#ifndef	LexLibrary
#define	LexLibrary	-ll
#endif	/* LexLibrary */

#ifndef	YaccCommand
#define	YaccCommand	yacc
#endif	/* YaccCommand */

#ifndef	RmCommand
#define	RmCommand	rm -f
#endif	/* RmCommand */

#ifndef CatCommand
#define	CatCommand	cat
#endif	/* CatCommand */

#ifndef	CopyCommand
#define	CopyCommand	cp
#endif	/* CopyCommand */

#ifndef	MoveCommand
#define	MoveCommand	mv -f
#endif	/* MoveCommand */

#ifndef	LinkCommand
#define	LinkCommand	ln -s
#endif	/* LinkCommand */

#ifndef	TblCommand
#define	TblCommand	tbl
#endif	/* TblCommand */

#ifndef	NroffCommand
#define	NroffCommand	nroff -man
#endif	/* NroffCommand */

#ifndef	ColCommand
#define	ColCommand	col
#endif	/* ColCommand */

#ifndef	DoesRanlib
#define	DoesRanlib	YES
#endif	/* DoesRanlib */

#if	DoesRanlib
#ifndef	RanLib
#define	RanLib	ranlib
#endif	/* RanLib */
#else	/* DoesRanlib */
#ifndef	RanLib
#define	RanLib	touch -c
#endif	/* RanLib */
#endif	/* DoesRanlib */

#ifndef	NoOptCommand
#define	NoOptCommand	touch -c
#endif	/* NoOptCommand */

#ifndef LintCommand
#define	LintCommand	lint
#endif	/* LintCommand */

#ifndef InstallCommand
#define	InstallCommand	$(CONFIG_DIR)/ymake-install -c
#endif	/* InstallCommand */

#ifndef	InstallRm
#define	InstallRm	$(RM)
#endif	/* InstallRm */

#ifndef	BuildMFLAGS
#define	BuildMFLAGS	NO
#endif

#ifndef	TOPDIR
#define	TOPDIR	.
#endif	/* TOPDIR */

#ifndef CURDIR
#define CURDIR	.
#endif	/* CURDIR */

#ifndef	_YmakeArg1
#define	_YmakeArg1 /**/
#endif	/* _YmakeArg1 */

#ifndef _YmakeArg2
#define _YmakeArg2 /**/
#endif /* _YmakeArg2 */

#ifndef _YmakeArg3
#define _YmakeArg3 /**/
#endif /* _YmakeArg3 */

#ifndef _YmakeArg4
#define _YmakeArg4 /**/
#endif /* _YmakeArg4 */

#ifndef _YmakeArg5
#define _YmakeArg5 /**/
#endif /* _YmakeArg5 */

YMAKEROOT		= YmakeRoot
BINROOT			= BinRoot
LIBROOT			= LibRoot
INCROOT			= IncRoot
MANROOT			= ManRoot
TMPROOT			= TmpRoot

ROOTPATH		= RootPath
BINPATH			= BinPath
LIBPATH			= LibPath
INCPATH			= IncPath
MANPATH			= ManPath

LIBSEARCH		= LibSearch
INCSEARCH		= IncSearch
LIBSEARCHUSER		= LibSearchUser
INCSEARCHUSER		= IncSearchUser
PYTHONVERSION		= PythonVersion
PYTHONLIBSEARCH		= PythonLibSearch
PYTHONINCSEARCH		= PythonIncSearch
PYTHONPKGSDIR           = PythonPkgsDir
PYTHONBINDIR            = PythonBinDir

LIB_SEARCH		= $(LIBSEARCH) ExtraLibSearch
INC_SEARCH		= $(INCSEARCH) ExtraIncSearch

TOP			= TOPDIR
CURRENT_DIR		= CURDIR

BINDIR			= bin
LIBDIR			= lib
INCDIR			= include
MANDIR			= man
DOCDIR			= doc
NGTMPDIR		= tmp
CONFIGDIR		= config

#ifdef	InstallManToLocal
#if	UseCatDirs
MANLPATH		= $(MANPATH)/catl
#else
MANLPATH		= $(MANPATH)/manl
#endif	/* UseCatDirs */

MAN1PATH		= $(MANLPATH)
MAN3PATH		= $(MANLPATH)
MAN5PATH		= $(MANLPATH)
MAN6PATH		= $(MANLPATH)
MAN8PATH		= $(MANLPATH)

MANL_SECTION		= l
MAN1_SECTION		= $(MANL_SECTION)
MAN3_SECTION		= $(MANL_SECTION)
MAN5_SECTION		= $(MANL_SECTION)
MAN6_SECTION		= $(MANL_SECTION)
MAN8_SECTION		= $(MANL_SECTION)

#else	/* InstallManToLocal */

#if	UseCatDirs
MANLPATH		= $(MANPATH)/catl
MAN1PATH		= $(MANPATH)/cat1
MAN3PATH		= $(MANPATH)/cat3
MAN5PATH		= $(MANPATH)/cat5
MAN6PATH		= $(MANPATH)/cat6
MAN8PATH		= $(MANPATH)/cat8
#else	/* UseCatDirs */
MANLPATH		= $(MANPATH)/manl
MAN1PATH		= $(MANPATH)/man1
MAN3PATH		= $(MANPATH)/man3
MAN5PATH		= $(MANPATH)/man5
MAN6PATH		= $(MANPATH)/man6
MAN8PATH		= $(MANPATH)/man8
#endif	/* UseCatDirs */

MANL_SECTION		= l
MAN1_SECTION		= 1
MAN3_SECTION		= 3
MAN5_SECTION		= 5
MAN6_SECTION		= 6
MAN8_SECTION		= 8

#endif	/* InstallManToLocal */

#ifdef	UseInstalled
CONFIG_DIR		= _InstConfig
#else
CONFIG_DIR		= $(CONFIGSRC)
#endif

XLIB			= XLibrary
EXTENSIONLIB		= XextLibrary
XTOOLLIB		= XToolLibrary
XMULIB			= XMutilLibrary
XAWLIB			= XawLibrary
XMOTIFLIB		= XmotifLibrary

XMOTIFCLIENTLIBS	= $(XMOTIFLIB) $(XTOOLLIB) $(XLIB)
XATHENACLIENTLIBS	= $(XAWLIB) $(XTOOLLIB) $(EXTENSIONLIB) $(XLIB)
XMUATHENACLIENTLIBS	= $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(EXTENSIONLIB) $(XLIB)

CTOFLIBS	= CtoFLibraries
CTOFLIBSUSER	= CtoFLibrariesUser
MAKE		= MakeProgram
#if	BuildMFLAGS
MFLAGS		= -$(MAKEFLAGS)
#endif
CC		= CCompiler
CC_LD		= CLoader
CDYNAMIC	= Cdynamic
CSTATIC		= Cstatic
/*
 *CCOPTIONS	= CcOptions $(EXTRA_CCOPTIONS) -framework OpenCL
 */
CCOPTIONS	= CcOptions $(EXTRA_CCOPTIONS)

BUILDINCDIR	= $(TOP)/include
/*
 * $(TOP) relative to $(BUILDINCDIR)
 */
BUILDINCTOP	= ./..

/*
 * If not useinstalled then -L(libroot) needs to be after the libraries
 * if use installed then it needs to be before the libraries.
 */

#ifdef	_LibRootEqualPath
_LIBROOTSEARCH	=	-L$(LIBROOT)
_EXECLIBSEARCH	=
_SHLIBSEARCH	=
#else
_LIBROOTSEARCH	=	-L$(LIBPATH) -L$(LIBROOT)
_EXECLIBSEARCH	=
_SHLIBSEARCH	=
#endif

#ifdef	_IncRootEqualPath
_INCROOTSEARCH	=	-I$(INCROOT)
#else
_INCROOTSEARCH	=	-I$(INCPATH) -I$(INCROOT)
#endif

#ifdef	BuildShared
SYSSHAREDLIBFLAGS =	SysSharedLibFlags
SHAREDLIBSEARCH	=	-L$(TOP)/shared
SHAREDLIBFLAGS	=	$(SYSSHAREDLIBFLAGS) $(_EXECLIBSEARCH) $(SHAREDLIBSEARCH)
SHAREDLDLIBSEARCH = $(DEV_LIB_SEARCH) $(SHAREDLIBSEARCH) $(_LIBROOTSEARCH) $(LIB_SEARCH)
#else
SHAREDLIBFLAGS =
#endif

#ifndef	UseInstalled
TOP_INCLUDES	= -I$(BUILDINCDIR)
LDLIBS		= $(_LIBROOTSEARCH) $(LIB_SEARCH) $(EXTRA_LIBS)
CC_LDOPTIONS	= $(CCOPTIONS) $(COPT) $(XTRA_CLDFLAGS) $(SHAREDLIBFLAGS)
FC_LDOPTIONS	= $(FCOPTIONS) $(FOPT) $(XTRA_FLDFLAGS) $(SHAREDLIBFLAGS)
#else
TOP_INCLUDES	= -I$(BUILDINCDIR) $(DEV_INCLUDES) $(_INCROOTSEARCH)
LDLIBS		= $(LIB_SEARCH) $(EXTRA_LIBS)
CC_LDOPTIONS	= $(CCOPTIONS) $(COPT) $(XTRA_CLDFLAGS) $(DEV_LIB_SEARCH) $(SHAREDLIBFLAGS) $(_LIBROOTSEARCH)
FC_LDOPTIONS	= $(FCOPTIONS) $(FOPT) $(XTRA_FLDFLAGS) $(DEV_LIB_SEARCH) $(SHAREDLIBFLAGS) $(_LIBROOTSEARCH)
#endif
EXTRA_LDLIBS	= $(SYS_LIBS) $(EXTRA_SYS_LIBS) $(DEV_SYS_LIBS)


ALLINCLUDES	= $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(INC_SEARCH)
STD_DEFINES	= StdDefines
XTRA_CDEFINES	= $(EXTRA_CDEFINES) $(EXTRA_DEFINES)
ALLDEFINES	= $(ALLINCLUDES) $(DEV_DEFINES) $(XTRA_CDEFINES) $(STD_DEFINES) $(PROJECTDEFINES) $(DEFINES)
CFLAGS		= $(CCOPTIONS) $(COPT) $(ALLDEFINES)
XTRA_CLDFLAGS	= $(EXTRA_CLDFLAGS) $(EXTRA_LDFLAGS)
EXTRA_SYS_LIBS	= ExtraSysLibraries
EXTRA_EXPORT_FLAGS = ExtraExportFlags

DEPEND		= MakeDepend
CPP		= CppCommand
FCPP		= FCppCommand

F77		= FCompiler
F77_LD		= FLoader
FCOPTIONS	= FcOptions $(EXTRA_FCOPTIONS)
NGCALLF = NgCallF

EXE_SUFFIX	= ExeSuffix

XTRA_FDEFINES	= $(EXTRA_FDEFINES) $(EXTRA_DEFINES)
FFLAGS	= $(FCOPTIONS) $(FOPT) $(XTRA_FDEFINES)
XTRA_FLDFLAGS	= $(EXTRA_FLDFLAGS) $(EXTRA_LDFLAGS)

LD		= LdCommand
LD_REL		= LdRelCommand
RPATHFLAG	= RpathFlag
AR		= ArCommand
AR_SRC		= ArSrcCommand
AR_SRC_QUICK	= $(AR_SRC) ArQuickOpt
AR_SRC_CHECK	= $(AR_SRC) ArRegOpt
AR_REG		= $(AR) ArRegOpt
AR_QUICK	= $(AR) ArQuickOpt

RM		= RmCommand
LEX		= LexCommand
YACC		= YaccCommand
LEXLIB		= LexLibrary
CAT		= CatCommand
CP		= CopyCommand
MV		= MoveCommand
LN		= LinkCommand
RANLIB		= RanLib
NO_OPT		= NoOptCommand
TBL		= TblCommand
NROFF		= NroffCommand
COL		= ColCommand

LINT		= LintCommand
INSTALL		= InstallCommand
INSTALL_RM	= InstallRm

INSTALL_BIN	= 0755
INSTALL_MAN	= 0644
INSTALL_DOC	= 0644
INSTALL_APP	= 0644
INSTALL_LIB	= 0644
INSTALL_DB	= 0644
INSTALL_INC	= 0644

CONFIGSRC	= $(TOP)/$(CONFIGDIR)
NEWCONFIGSRC	= ../$(CONFIGSRC)

_YMAKE_EXTRA	= _YmakeArg1 _YmakeArg2 _YmakeArg3 _YmakeArg4 _YmakeArg5

#ifdef	UseInstalled
YMAKE		= ymake $(_YMAKE_EXTRA)
NEWYMAKE	= $(YMAKE)
YMAKEDEP	=
#else
YMAKE		= $(CONFIGSRC)/ymake -config $(CONFIGSRC) $(_YMAKE_EXTRA)
NEWYMAKE	= $(NEWCONFIGSRC)/ymake -config $(NEWCONFIGSRC) $(_YMAKE_EXTRA)
YMAKEDEP	= $(CONFIGSRC)/ymake-filter
#endif
SHELL		= /bin/sh
CALLCONV	= $(CONFIG_DIR)/callconv
MKDIRHIER	= mkdir -p

#ifdef	_NO_PROJECT_FILE
NGCOMM########################################################################
NGCOMM
NGCOMM Not Including a Project file : -noproject was specified to ymake.
NGCOMM
NGCOMM########################################################################
#else
#ifdef	_PROJECT_FILE
NGCOMM########################################################################
NGCOMM
NGCOMM Including _PROJECT_FILE file
NGCOMM
NGCOMM########################################################################
#include _PROJECT_FILE
NGCOMM########################################################################
NGCOMM
NGCOMM After Including _PROJECT_FILE file
NGCOMM
NGCOMM########################################################################
#else
NGCOMM########################################################################
NGCOMM
NGCOMM Including Project file
NGCOMM
NGCOMM########################################################################
#include "Project"
NGCOMM########################################################################
NGCOMM
NGCOMM After Including Project file
NGCOMM
NGCOMM########################################################################
#endif
#endif	/* _NO_PROJECT_FILE */

#ifdef	_LIB_FILE
NGCOMM########################################################################
NGCOMM
NGCOMM Including Lib file
NGCOMM
NGCOMM########################################################################
#include _LIB_FILE
NGCOMM########################################################################
NGCOMM
NGCOMM After Including Lib file
NGCOMM
NGCOMM########################################################################
#endif

NGCOMM########################################################################
NGCOMM
NGCOMM Including Rules file
NGCOMM
NGCOMM########################################################################
#include "Rules"
NGCOMM########################################################################
NGCOMM
NGCOMM After Including Rules file
NGCOMM
NGCOMM########################################################################

.SUFFIXES: .f.sed .xml .shtml

.f.sed.o:
	@$(FCPP) $< $*.f
	$(F77) $(FFLAGS) -c $*.f
	@$(RM) $*.f

NGCOMM########################################################################
NGCOMM
NGCOMM	local y(mM)akefile is included HERE.
NGCOMM
NGCOMM########################################################################
#include YMAKEFILE
NGCOMM########################################################################
NGCOMM
NGCOMM	after local y(mM)akefile included.
NGCOMM
NGCOMM########################################################################

NGCOMM########################################################################
NGCOMM
NGCOMM	The Rest of this file is generated from the Template file.
NGCOMM
NGCOMM########################################################################

/*
 * Disable Optimization for a given yMakefile
 */
#ifdef	DisableOptimize
#ifdef	COptimizeFlag
#undef	COptimizeFlag
#endif	/* COptimizeFlag */
#define	COptimizeFlag	/**/
#ifdef	FOptimizeFlag
#undef	FOptimizeFlag
#endif	/* FOptimizeFlag */
#define	FOptimizeFlag	/**/
#endif	/* DisableOptimize */

/*
 * Turn on/off Debuging in a given yMakefile
 */

#ifndef COptOrDebugFlag
#ifdef	DEBUG
#define COptOrDebugFlag CDebugFlag
#else
#define COptOrDebugFlag COptimizeFlag
#endif	/* DEBUG */
#endif	/* COptOrDebugFlag */

#ifndef FOptOrDebugFlag
#ifdef	DEBUG
#define FOptOrDebugFlag FDebugFlag
#else
#define FOptOrDebugFlag FOptimizeFlag
#endif	/* DEBUG */
#endif	/* FOptOrDebugFlag */

COPT	= COptOrDebugFlag
FOPT	= FOptOrDebugFlag


#ifdef	IHaveSubdirs
InternalMakeSubdirs($(SUBDIRS))
#else
all:: all-local
#endif


clean-local::
	@echo "cleaning in $(CURRENT_DIR)"

CleanFilesTarget(core Makefile.bak)

InternalMakefileTarget

all-local::

install-local::
	@echo "installing in $(CURRENT_DIR)"

depend-local::

includes-local::

preformatted-local::

#ifdef	IHaveSubdirs

InternalInstallSubdirs($(SUBDIRS))
InternalMakefilesSubdirs($(SUBDIRS))
InternalCleanSubdirs($(SUBDIRS))
InternalDistCleanSubdirs($(SUBDIRS))
InternalDependSubdirs($(SUBDIRS))
InternalIncludesSubdirs($(SUBDIRS))
FormatManPagesSubdirs($(SUBDIRS))

#else	/* IHaveSubdirs */

install:: install-local

Makefiles::

includes:: includes-local

depend:: depend-local

clean:: clean-local

dist-clean:: clean-local
	@$(RM) Makefile
	@echo "dist-clean in $(CURRENT_DIR)"

preformatted:: preformatted-local

#endif	/* IHaveSubdirs */