File: params.def

package info (click to toggle)
ivtools 0.6.7-7
  • links: PTS
  • area: main
  • in suites: slink
  • size: 10,652 kB
  • ctags: 32,354
  • sloc: ansic: 142,330; makefile: 22,434; cpp: 14,233; sh: 494
file content (1046 lines) | stat: -rw-r--r-- 23,533 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
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
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
/*
 * This is a copy of param.def as distributed with iv 3.1, except
 * for the definition of SrcRoot below, its use in defining
 * the make variable IVSRC, and the initialization of the REPOSITORY_FILES
 * make variable used by the new cmscript rules in rules.def.  
 */

/*
 * Directory for software projects
 */
#ifndef ProjectDir
#define ProjectDir /proj
#endif

   PROJECTDIR = ProjectDir


/*
 * Override SrcRoot in local.def to refer to the uninstalled iv 3.1 src tree 
 * in an absolute location.
 */
#ifndef SrcRoot
#define SrcRoot $(TOP)
#endif

/*
 * Name of the software release
 */
#ifndef Release
#define	Release ivtools-0.6
#endif

   RELEASE = Release

/*
 * VersionNumber
 */
#ifndef Version
#define	Version 0.6.7
#endif

   VERSION = Version

/* 
 * Override RepositoryFiles in local.def to change the default list of
 * files to put in the repository.  
 */
#ifndef RepositoryFiles
#define RepositoryFiles *.c *.cc *.cxx *.C *.h Imakefile *.def template \
README INSTALL VERSION MANIFEST COPYRIGHT ANNOUNCE README.ivmkcm *.patch *.bugfix.? *.script \
*.sed comutil.arg comterp.err comutil.ci comterp.arg comterp.ci site.def.SUN4 \
site.def.LINUX site.def.SGI site.def.HP800 site.def.ALPHA WishList *.defaults *.cf HOWTO Copyright *.sh CHANGES CHANGES-0.5 ivmkmf.cpp ivmkmf *.bash *.1
#endif

   REPOSITORY_FILES = RepositoryFiles

/*
 * Define which optional parts of the system should be built by default.
 * You can override these parameters in local.def if needed.
 */
#ifndef BuildGLContext
#define BuildGLContext		NO	/* default is no GL glyphs */
#endif

#ifndef BuildIV_2_6
#define BuildIV_2_6		YES	/* until we replace the old stuff */
#endif

#ifndef BuildLibTask
#define BuildLibTask		NO	/* not fully working yet */
#endif

#ifndef BuildLibgraphic
#define BuildLibgraphic		NO	/* obsoleted by libUnidraw */
#endif

#ifndef BuildRPCClasses
#define BuildRPCClasses		NO	/* requires iostreams & TCP sockets */
#endif

/*
 * Define which values platform-specific parameters should have by default.
 * You can override these parameters in local.def too if needed.
 */
#ifndef BourneShell
#define BourneShell /bin/sh		/* force shell in makefile */
#endif

#ifndef ExecableScripts
#if SystemV
#define ExecableScripts		NO
#else
#define ExecableScripts		YES	/* kernel exec() can handle #! */
#endif
#endif

#ifndef HasLargeTmp
#define HasLargeTmp		NO	/* be paranoid */
#endif

#ifndef HasRanlibCmd
#if SystemV || SystemV4
#define HasRanlibCmd		NO
#else
#define HasRanlibCmd		YES	/* Berkeleyism */
#endif
#endif

#ifndef HasDynamicSharedLibraries
#define HasDynamicSharedLibraries	NO	/* no shared libraries by default */
#endif
#if defined(UseNonShared) && defined(InObjectCodeDir)
#undef  HasDynamicSharedLibraries
#define HasDynamicSharedLibraries	NO	/* don't use them anyway */
#endif

#ifndef InstallRelative
#define InstallRelative		YES	/* install in place */
#endif
#ifdef UseInstalled
#undef  InstallRelative
#define InstallRelative		NO	/* need absolute pathnames */
#endif

#ifndef OSMajorVersion
#define OSMajorVersion          0
#endif

#ifndef OSMinorVersion
#define OSMinorVersion          0
#endif

#ifndef RemoveAfterInstall
#define RemoveAfterInstall	YES	/* conserve disk space */
#endif

#ifndef StripInstalledPrograms
#define StripInstalledPrograms	YES	/* conserve disk space */
#endif

#ifndef SystemV
#define SystemV			NO	/* SYSV (R3) */
#endif

#ifndef SystemV4
#define SystemV4		NO	/* SVR4 */
#endif

#ifndef TurnOnDebugging
#define TurnOnDebugging		NO	/* no debugging by default */
#endif
#if defined(UseDebug) && defined(InObjectCodeDir)
#undef  TurnOnDebugging
#define TurnOnDebugging		YES	/* force debugging anyway */
#endif

#ifndef TurnOnOptimizing
#define TurnOnOptimizing	NO	/* no optimizing by default */
#endif
#if defined(UseDebug) && defined(InObjectCodeDir)
#undef  TurnOnOptimizing
#define TurnOnOptimizing	NO	/* disable optimizing anyway */
#endif

              SHELL = BourneShell

/*
 * Define how to regenerate Makefiles, update their dependencies, and
 * execute recursive make commands.
 */
#ifndef ImakeCmd
#define ImakeCmd imake
#endif

#ifndef ImakeFlags
#define ImakeFlags \							@@\
		      -T IMAKE_TEMPLATE\				@@\
		      ImakeIncludes\					@@\
		      $(SPECIAL_IMAKEFLAGS)
#endif

#ifndef ImakeIncludes
#ifdef UseInstalled
#define ImakeIncludes -I$(CONFIGDIR) -I$(XCONFIGDIR)
#else
#define ImakeIncludes -I$(CONFIGSRC) -I$(XCONFIGDIR)
#endif
#endif

#ifndef SpecialImakeFlags
#define SpecialImakeFlags \
 SpecialInObjectCodeDir SpecialUseDebug SpecialUseInstalled SpecialUseNonShared
#endif

#ifndef SpecialInObjectCodeDir
#ifdef InObjectCodeDir
#define SpecialInObjectCodeDir -f $(SRC)/Imakefile -DInObjectCodeDir
#else
#define SpecialInObjectCodeDir /**/
#endif
#endif

#ifndef SpecialUseDebug
#if defined(UseDebug) && defined(InObjectCodeDir)
#define SpecialUseDebug -DUseDebug
#else
#define SpecialUseDebug /**/
#endif
#endif

#ifndef SpecialUseInstalled
#ifdef UseInstalled
#define SpecialUseInstalled -DUseInstalled
#else
#define SpecialUseInstalled /**/
#endif
#endif

#ifndef SpecialUseNonShared
#if defined(UseNonShared) && defined(InObjectCodeDir)
#define SpecialUseNonShared -DUseNonShared
#else
#define SpecialUseNonShared /**/
#endif
#endif

#ifndef DependCmd
#define DependCmd makedepend
#endif

#ifndef DependCCFlags
#define DependCCFlags -DMAKEDEPEND $(CCDEFINES) $(CCINCLUDES) -I/usr/include/CC
#endif

#ifndef MakeCmd
#define MakeCmd make
#endif

#ifndef PassArch
#define PassArch ARCH="$(ARCH)" SPECIAL_IMAKEFLAGS="$(SPECIAL_IMAKEFLAGS)" CMFLAGS="$(CMFLAGS)" CMMSG="$(CMMSG)"
#endif

#ifndef ArchitectureName
#define ArchitectureName UNKNOWN
#endif

#ifndef ArchOrCPU
#ifdef InObjectCodeDir
#define ArchOrCPU ArchitectureName
#else
#define ArchOrCPU $$CPU
#endif
#endif

#ifndef SpecialArch
#if defined(UseDebug) && defined(InObjectCodeDir)
#define SpecialArch .debug
#else
#if defined(UseNonShared) && defined(InObjectCodeDir)
#define SpecialArch .noshared
#else
#define SpecialArch /**/
#endif
#endif
#endif

              IMAKE = ImakeCmd
         IMAKEFLAGS = ImakeFlags
 SPECIAL_IMAKEFLAGS = SpecialImakeFlags
             DEPEND = DependCmd
     DEPEND_CCFLAGS = DependCCFlags
               MAKE = MakeCmd
           PASSARCH = PassArch
          ARCHORCPU = ArchOrCPU
               ARCH = $(ARCHORCPU)$(SPECIAL_ARCH)
       SPECIAL_ARCH = SpecialArch

/*
 * Define how to compile a C++ file with the CC driver.
 * Always use +p ("pure") to flag anachronisms as errors.
 */
#ifndef CCDriver
#define CCDriver CC +p			/* might want an absolute path, etc. */
#endif

#ifndef CCSuffix
#define CCSuffix c			/* might want cc, cxx, C, etc. */
#endif

#ifndef CDriver
#define CDriver CCDriver
#endif

#ifndef CSuffix
#define CSuffix c
#endif

#ifndef SrcDir
#ifdef InObjectCodeDir
#define SrcDir ..
#else
#define SrcDir .
#endif
#endif

#ifndef SrcsList
#define SrcsList $(SRC)$(SLASH)*.$(CCSUFFIX)
#endif

#ifndef ObjsList
#define ObjsList *.o
#endif

#ifndef AoutName
#define AoutName a.out
#endif

	   CDRIVER = CDriver
	   CSUFFIX = CSuffix
           CCDRIVER = CCDriver
           CCSUFFIX = CCSuffix
                SRC = CURDIR/SrcDir
              SLASH = /
               SRCS = SrcsList
               OBJS = ObjsList
               AOUT = AoutName

/*
 * Define all the flags passed to the CC driver when we compile a C++ file.
 */
#ifndef CCFlags
#define CCFlags $(APP_CCFLAGS) $(IV_CCFLAGS) $(OTHER_CCFLAGS) $(EXTRA_CCFLAGS)
#endif


#ifndef IvCCFlags
#define IvCCFlags \							@@\
		      DefaultDebugCCFlags\				@@\
		      DefaultOptimizeCCFlags\				@@\
		      $(SHARED_CCFLAGS)\				@@\
		      $(CCDEFINES)\					@@\
		      $(CCINCLUDES)
#endif

#ifndef DefaultDebugCCFlags
#if TurnOnDebugging
#define DefaultDebugCCFlags $(DEBUG_CCFLAGS)
#else
#define DefaultDebugCCFlags /**/
#endif
#endif

#ifndef DefaultOptimizeCCFlags
#if TurnOnOptimizing
#define DefaultOptimizeCCFlags $(OPTIMIZE_CCFLAGS)
#else
#define DefaultOptimizeCCFlags /**/
#endif
#endif

#ifndef DebugCCFlags
#if TurnOnOptimizing && !TurnOnDebugging
#define DebugCCFlags /**/
#else
#define DebugCCFlags -g
#endif
#endif

#ifndef OptimizeCCFlags
#if TurnOnDebugging && !TurnOnOptimizing
#define OptimizeCCFlags /**/
#else
#define OptimizeCCFlags -O
#endif
#endif

#ifndef SharedCCFlags
#if HasDynamicSharedLibraries
#define SharedCCFlags -PIC
#else
#define SharedCCFlags /**/
#endif
#endif

#ifndef ExtraCCFlags
#define ExtraCCFlags /**/
#endif

#ifndef OtherCCFlags
#define OtherCCFlags /**/
#endif

            CCFLAGS = CCFlags
            CFLAGS = CCFlags
         IV_CCFLAGS = IvCCFlags
      DEBUG_CCFLAGS = DebugCCFlags
   OPTIMIZE_CCFLAGS = OptimizeCCFlags
     SHARED_CCFLAGS = /* defined when MakeLibrary() is used in Imakefile */
      EXTRA_CCFLAGS = ExtraCCFlags
      OTHER_CCFLAGS = OtherCCFlags

/*
 * Define the defines passed to the CC driver when we compile a C++ file.
 */
#ifndef CCDefines
#define CCDefines $(APP_CCDEFINES) $(IV_CCDEFINES) $(OTHER_CCDEFINES) $(EXTRA_CCDEFINES) 
#endif

#ifndef IvCCDefines
#define IvCCDefines $(LANGUAGE_CCDEFINES) $(BACKWARD_CCDEFINES)
#endif

#ifndef LanguageCCDefines
#define LanguageCCDefines -Dcplusplus_2_1
#endif

#ifndef BackwardCompatibilityCCDefines
#define BackwardCompatibilityCCDefines -Div2_6_compatible
#endif

#ifndef ExtraCCDefines
#if SystemV
#define ExtraCCDefines -DSYSV
#else
#if SystemV4
#define ExtraCCDefines -DSVR4
#else
#define ExtraCCDefines /**/
#endif
#endif
#endif

#ifndef ClipPolyCCDefines
#ifdef ClipPolyDir
#define ClipPolyCCDefines -DCLIPPOLY
#else
#define ClipPolyCCDefines /**/
#endif
#endif

#ifndef AceCCDefines
#ifdef AceDir
#define AceCCDefines -DHAVE_ACE
#else
#define AceCCDefines /**/
#endif
#endif

#ifndef OtherCCDefines
#define OtherCCDefines $(CLIPPOLY_CCDEFINES) $(ACE_CCDEFINES)
#endif

          CCDEFINES = CCDefines
       IV_CCDEFINES = IvCCDefines
 LANGUAGE_CCDEFINES = LanguageCCDefines
 BACKWARD_CCDEFINES = /* defined when Use_2_6() is used in Imakefile */
    EXTRA_CCDEFINES = ExtraCCDefines
    OTHER_CCDEFINES = OtherCCDefines

 CLIPPOLY_CCDEFINES = ClipPolyCCDefines
      ACE_CCDEFINES = AceCCDefines

/*
 * Define the includes passed to the CC driver when we compile a C++ file.
 * Ensure TopCCIncludes and XCCIncludes don't pass -I/usr/include to the CC
 * driver since it could override /usr/include/CC, messing up system headers.
 */
#ifndef CCIncludes
#define CCIncludes $(APP_CCINCLUDES) $(OTHER_CCINCLUDES) $(EXTRA_CCINCLUDES) 
#endif

#ifndef BackwardCompatibilityCCIncludes
#ifdef UseInstalled
#define BackwardCompatibilityCCIncludes -I$(INCDIR)/IV-2_6
#else
#define BackwardCompatibilityCCIncludes -I$(INCSRC)/IV-2_6
#endif
#endif

#ifndef TopCCIncludes
#ifdef UseInstalled
#define TopCCIncludes -I$(INCDIR)
#else
#define TopCCIncludes -I$(INCSRC)
#endif
#endif

#ifndef XCCIncludes
#ifdef XIncDir
#define XCCIncludes -I$(XINCDIR)
#else
#define XCCIncludes /**/
#endif
#endif

#ifndef ExtraCCIncludes
#define ExtraCCIncludes /**/
#endif

#ifndef ClipPolyCCIncludes
#ifdef ClipPolyDir
#define ClipPolyCCIncludes -I$(CLIPPOLYDIR)
#else
#define ClipPolyCCIncludes /**/
#endif
#endif

#ifndef AceCCIncludes
#ifdef AceDir
#define AceCCIncludes -I$(ACEDIR)
#else
#define AceCCIncludes /**/
#endif
#endif

#ifndef OtherCCIncludes
#define OtherCCIncludes $(CLIPPOLY_CCINCLUDES) $(ACE_CCINCLUDES)
#endif

         CCINCLUDES = CCIncludes
      IV_CCINCLUDES = IvCCIncludes
BACKWARD_CCINCLUDES = /* defined when Use_2_6() is used in Imakefile */
     TOP_CCINCLUDES = TopCCIncludes
       X_CCINCLUDES = XCCIncludes
   EXTRA_CCINCLUDES = ExtraCCIncludes
   OTHER_CCINCLUDES = OtherCCIncludes

CLIPPOLY_CCINCLUDES = ClipPolyCCIncludes
     ACE_CCINCLUDES = AceCCIncludes
        CLIPPOLYDIR = ClipPolyDir
             ACEDIR = AceDir

/*
 * Define the flags passed to the CC driver when we link a C++ program.
 */
#ifndef CCLdFlags
#define CCLdFlags $(APP_CCLDFLAGS) $(IV_CCLDFLAGS) $(OTHER_CCLDFLAGS) $(EXTRA_CCLDFLAGS) 
#endif

#ifndef IvCCLdFlags
#define IvCCLdFlags \							@@\
		      DefaultDebugCCFlags\				@@\
		      DefaultOptimizeCCFlags\				@@\
		      $(NONSHARED_CCLDFLAGS)
#endif

/*
 * Flags that are specific to the link line to build a shared library.
 * These should be defined in the platform-specific config file.
 */
#ifndef SharedCCLdFlags
#define SharedCCLdFlags /**/
#endif

#ifndef NonSharedCCLdFlags
#if defined(UseNonShared) && defined(InObjectCodeDir)
#define NonSharedCCLdFlags -Bstatic
#else
#define NonSharedCCLdFlags /**/
#endif
#endif

#ifndef ExtraCCLdFlags
#define ExtraCCLdFlags /**/
#endif

#ifndef OtherCCLdFlags
#define OtherCCLdFlags /**/
#endif

          CCLDFLAGS = CCLdFlags
       IV_CCLDFLAGS = IvCCLdFlags
NONSHARED_CCLDFLAGS = NonSharedCCLdFlags
   SHARED_CCLDFLAGS = SharedCCLdFlags
    EXTRA_CCLDFLAGS = ExtraCCLdFlags
    OTHER_CCLDFLAGS = OtherCCLdFlags

/*
 * Define all the dependencies a C++ program can have on its libraries.
 */
#ifndef CCDepLibs
#define CCDepLibs $(APP_CCDEPLIBS) $(IV_CCDEPLIBS) $(OTHER_CCDEPLIBS) $(EXTRA_CCDEPLIBS) $(_CCDEPLIBS)
#endif

#ifndef IvCCDepLibs
#define IvCCDepLibs \							@@\
		      $(DEPLIBUNIDRAW)\					@@\
		      $(DEPLIBGRAPHIC)\					@@\
		      $(DEPLIBIV)\					@@\
		      $(DEPLIBXEXT)\					@@\
		      $(DEPLIBX11)\					@@\
		      $(DEPLIBM)
#endif

#ifndef DepPath
#if HasDynamicSharedLibraries || defined(UseInstalled)
#define DepPath(name) /* as nothing */
#else
#define DepPath(name) Concat($(LIBSRC)/name/$(ARCH)/lib,name.a)
#endif
#endif

#ifndef Dep_libUnidraw
#define Dep_libUnidraw DepPath(Unidraw)
#endif
#ifndef Dep_libgraphic
#define Dep_libgraphic DepPath(graphic)
#endif
#ifndef Dep_libIV
#define Dep_libIV DepPath(IV)
#endif
#ifndef Dep_libXext
#define Dep_libXext /* as nothing */
#endif
#ifndef Dep_libX11
#define Dep_libX11 /* as nothing */
#endif
#ifndef Dep_libm
#define Dep_libm /* as nothing */
#endif

#ifndef ExtraCCDepLibs
#define ExtraCCDepLibs /**/
#endif

#ifndef OtherCCDepLibs
#define OtherCCDepLibs /**/
#endif

          CCDEPLIBS = CCDepLibs
       IV_CCDEPLIBS = IvCCDepLibs
    EXTRA_CCDEPLIBS = ExtraCCDepLibs
    OTHER_CCDEPLIBS = OtherCCDepLibs

/*
 * Define all the libraries a C++ program can be linked with.
 */
#ifndef CCLdLibs
#define CCLdLibs $(APP_CCLDLIBS) $(IV_CCLDLIBS) $(OTHER_CCLDLIBS) $(EXTRA_CCLDLIBS) 
#endif

#ifndef IvCCLdLibs
#define IvCCLdLibs \							@@\
		      $(LIBDIRPATH)\					@@\
		      $(LDLIBUNIDRAW)\					@@\
		      $(LDLIBGRAPHIC)\					@@\
		      $(LDLIBIV)\					@@\
		      $(XLIBDIRPATH)\					@@\
		      $(LDLIBXEXT)\					@@\
		      $(LDLIBX11)\					@@\
		      $(ABSLIBDIRPATH)
#endif

#ifndef LibDirPath
#ifdef UseInstalled
#define LibDirPath -L$(LIBDIR)
#else
#define LibDirPath /* as nothing */
#endif
#endif

#ifndef XLibDirPath
#ifdef XLibDir
#define XLibDirPath -L$(XLIBDIR)
#else
#define XLibDirPath /* as nothing */
#endif
#endif

#ifndef AbsLibDirPath
#if HasDynamicSharedLibraries && !defined(UseInstalled)
#define AbsLibDirPath -L$(ABSLIBDIR)
#else
#define AbsLibDirPath /* as nothing */
#endif
#endif

#ifndef LdPath
#if !UseRpath
#ifdef UseInstalled
#define LdPath(libname) Concat(-l,libname)
#else
#define LdPath(libname) -L$(LIBSRC)/libname/$(ARCH) Concat(-l,libname)
#endif
#else
#ifdef UseInstalled
#define LdPath(libname) -Wl,-rpath,$(LIBSRC)/libname/$(ARCH) Concat(-l,libname)
#else
#define LdPath(libname) -Wl,-rpath,$(LIBSRC)/libname/$(ARCH) -L$(LIBSRC)/libname/$(ARCH) Concat(-l,libname)
#endif
#endif
#endif

#ifndef Ld_libUnidraw
#define Ld_libUnidraw LdPath(Unidraw)
#endif
#ifndef Ld_libgraphic
#define Ld_libgraphic LdPath(graphic)
#endif
#ifndef Ld_libIV
#define Ld_libIV LdPath(IV)
#endif
#ifndef Ld_libXext
#define Ld_libXext -lXext
#endif
#ifndef Ld_libX11
#define Ld_libX11 -lX11
#endif
#ifndef Ld_libm
#define Ld_libm -lm
#endif

#ifndef ExtraCCLdLibs
#define ExtraCCLdLibs Ld_libm
#endif

#ifndef ClipPolyCCLdLibs
#ifdef ClipPolyDir
#define ClipPolyCCLdLibs -L$(CLIPPOLYLIBDIR) -lclippoly
#else
#define ClipPolyCCLdLibs /**/
#endif
#endif

#ifndef ClipPolyLibDir
#ifdef ClipPolyDir
#define ClipPolyLibDir ClipPolyDir
#else
#define ClipPolyLibDir /**/
#endif
#endif

#ifndef ClipPolyLibBase 
#define ClipPolyLibBase libclipoly.so  /* only for installing symbolic link */
#endif

#ifndef AceCCLdLibs
#ifdef AceDir
#define AceCCLdLibs -L$(ACEDIR)/ace -lACE
#else
#define AceCCLdLibs /**/
#endif
#endif

#ifndef AceLibDir
#ifdef AceDir
#define AceLibDir AceDir/ace
#else
#define AceLibDir /**/
#endif
#endif

#ifndef AceLibBase 
#define AceLibBase libACE.so  /* only for installing symbolic link */
#endif

#ifndef OtherCCLdLibs
#define OtherCCLdLibs $(CLIPPOLY_CCLDLIBS) $(ACE_CCLDLIBS)
#endif

#ifndef SharedCCLdLibs
#define SharedCCLdLibs /**/
#endif

#ifndef UseRpath
#define UseRpath NO
#endif

           CCLDLIBS = CCLdLibs
        IV_CCLDLIBS = IvCCLdLibs
    SHARED_CCLDLIBS = SharedCCLdLibs
     EXTRA_CCLDLIBS = ExtraCCLdLibs
     OTHER_CCLDLIBS = OtherCCLdLibs

  CLIPPOLY_CCLDLIBS = ClipPolyCCLdLibs
     CLIPPOLYLIBDIR = ClipPolyLibDir
    CLIPPOLYLIBBASE = ClipPolyLibBase
       ACE_CCLDLIBS = AceCCLdLibs
          ACELIBDIR = AceLibDir
         ACELIBBASE = AceLibBase
	
/*
 * Define how to install a program, library, header, man page, or data file.
 */
#ifndef InstallCmd
#if SystemV || SystemV4
#ifdef UseInstalled
#define InstallCmd bsdinst
#else
#define InstallCmd $(SHELL) $(SCRIPTSRC)/bsdinst.sh
#endif
#else
#define InstallCmd install
#endif
#endif

#ifndef InstPgmFlags
#if StripInstalledPrograms
#define InstPgmFlags -s
#else
#define InstPgmFlags /**/
#endif
#endif
#ifndef InstBinFlags
#define InstBinFlags -m 0755
#endif
#ifndef InstUidFlags
#define InstUidFlags -m 4755
#endif
#ifndef InstLibFlags
#define InstLibFlags -m 0644
#endif
#ifndef InstIncFlags
#define InstIncFlags -m 0444
#endif
#ifndef InstManFlags
#define InstManFlags -m 0444
#endif
#ifndef InstDatFlags
#define InstDatFlags -m 0444
#endif
#ifndef InstKmemFlags
#define InstKmemFlags InstUidFlags    /* put -g kmem -m 2755 in local.def */
#endif

            INSTALL = InstallCmd
       INSTPGMFLAGS = InstPgmFlags      /* for stripping installed pgms */
       INSTBINFLAGS = InstBinFlags      /* install flags for binaries */
       INSTUIDFLAGS = InstUidFlags      /* install flags for setuid programs */
       INSTLIBFLAGS = InstLibFlags      /* install flags for libraries */
       INSTINCFLAGS = InstIncFlags      /* install flags for headers */
       INSTMANFLAGS = InstManFlags      /* install flags for man pages */
       INSTDATFLAGS = InstDatFlags      /* install flags for data files */
      INSTKMEMFLAGS = InstKmemFlags     /* install flags for /dev/kmem progs */

/*
 * Define other commands that Imakefiles may want to use.
 */
#ifndef ArCmd
#if HasLargeTmp || SystemV4
#define ArCmd ar cq			/* do nothing special */
#else
#define ArCmd ar clq			/* use local dir for temp files */
#endif
#endif

#ifndef AsCmd
#define AsCmd as
#endif

#ifndef CpCmd
#define CpCmd cp
#endif

#ifndef CppCmd
#define CppCmd /lib/cpp
#endif

#ifndef PreProcessCmd
#define PreProcessCmd $(CCDRIVER) -E
#endif

#ifndef LdCmd
#define LdCmd ld
#endif

#ifndef LnCmd
#if SystemV
#define LnCmd ln /* or even cp */
#else
#define LnCmd ln -s
#endif
#endif

#ifndef MkdirhierCmd
#ifdef UseInstalled
#define MkdirhierCmd mkdirhier
#else
#define MkdirhierCmd $(SHELL) $(SCRIPTSRC)/mkdirhier.sh
#endif
#endif

#ifndef MvCmd
#define MvCmd mv
#endif

#ifndef RanlibCmd
#define RanlibCmd ranlib
#endif

#ifndef RanlibInstFlags
#define RanlibInstFlags /**/
#endif

#ifndef RmCmd
#define RmCmd rm -f
#endif

#ifndef RmDirCmd
#define RmDirCmd rm -rf
#endif

#ifndef FilesToClean
#define FilesToClean ,* .emacs_* *..c *.BAK *.CKP *.a *.bak *.ln *.o\
 a.out core errs make.log make.out tags TAGS
#endif

#ifndef TroffCmd
#define TroffCmd psroff
#endif

                 AR = ArCmd
                 AS = AsCmd
                 CP = CpCmd
                CPP = CppCmd $(EXTRA_CCDEFINES) $(OTHER_CCDEFINES)
      PREPROCESSCMD = PreProcessCmd $(EXTRA_CCDEFINES) $(OTHER_CCDEFINES)
                 LD = LdCmd
                 LN = LnCmd
          MKDIRHIER = MkdirhierCmd
                 MV = MvCmd
             RANLIB = RanlibCmd
    RANLIBINSTFLAGS = RanlibInstFlags
                 RM = RmCmd
              RMDIR = RmDirCmd
             RM_CMD = $(RM) FilesToClean
              TROFF = TroffCmd

/*
 * Define where make should find uninstalled binaries, config files,
 * includes, libraries, and man pages.
 */
#ifndef TOPDIR
#define TOPDIR .
#endif

#ifndef RELTOPDIR
#define RELTOPDIR .
#endif

#ifndef CURDIR
#define CURDIR .
#endif

                TOP = TOPDIR
             RELTOP = RELTOPDIR
        CURRENT_DIR = CURDIR
#ifndef UseInstalled
              IVSRC = IvToolsSrcRoot/src
             BINSRC = $(IVSRC)/bin
          CONFIGSRC = $(RELTOP)/config
             INCSRC = $(IVSRC)/include
             LIBSRC = $(IVSRC)
             MANSRC = $(IVSRC)/man
          SCRIPTSRC = $(RELTOP)/src/scripts
#endif

/*
 * Define where make should find installed binaries, config files,
 * includes, libraries, application-specific data, and man pages.
 */
#ifndef InstalledRoot
#define InstalledRoot /usr/local
#endif

#ifndef BinDir
#define BinDir InstalledRoot/bin
#endif
#ifndef RelativeBinDir
#define RelativeBinDir $(TOP)/bin/$(ARCH)
#endif

#ifndef ConfigDir
#define ConfigDir InstalledRoot/lib/ivtools
#endif
#ifndef RelativeConfigDir
#define RelativeConfigDir $(TOP)/config
#endif

#ifndef IncDir
#define IncDir InstalledRoot/include
#endif
#ifndef RelativeIncDir
#define RelativeIncDir $(TOP)/include
#endif

#ifndef LibDir
#define LibDir InstalledRoot/lib
#endif
#ifndef RelativeLibDir
#define RelativeLibDir $(RELTOP)/lib/$(ARCH)
#endif

#ifndef LibAllDir
#define LibAllDir InstalledRoot/lib/ivtools
#endif
#ifndef RelativeLibAllDir
#define RelativeLibAllDir $(TOP)/lib/ivtools
#endif

#ifndef ManDir
#define ManDir InstalledRoot/man
#endif
#ifndef RelativeManDir
#define RelativeManDir $(TOP)/man
#endif

#ifndef XConfigDir
#define XConfigDir /usr/lib/X11/config
#endif

#ifndef XIncDir
#define XIncDir /usr/include
#endif

#ifndef XLibDir
#define XLibDir /usr/lib
#endif

#ifndef PSFontDir
#define PSFontDir /usr/lib/ps
#endif

#if InstallRelative
             BINDIR = RelativeBinDir    /* installed binaries */
          CONFIGDIR = RelativeConfigDir /* installed config files */
             INCDIR = RelativeIncDir    /* installed includes */
             LIBDIR = RelativeLibDir    /* installed libraries */
          LIBALLDIR = RelativeLibAllDir /* installed app-specific data */
             MANDIR = RelativeManDir    /* installed man pages */
#else
             BINDIR = BinDir            /* installed binaries */
          CONFIGDIR = ConfigDir         /* installed config files */
             INCDIR = IncDir            /* installed includes */
             LIBDIR = LibDir            /* installed libraries */
          LIBALLDIR = LibAllDir         /* installed app-specific data */
             MANDIR = ManDir            /* installed man pages */
#endif
       ABSCONFIGDIR = ConfigDir         /* installed config files */
          ABSLIBDIR = LibDir            /* installed libraries */
       ABSLIBALLDIR = LibAllDir         /* installed app-specific data */
       RELLIBALLDIR = RelativeLibAllDir /* installed app-specific data */
         XCONFIGDIR = XConfigDir        /* installed X config files */
            XINCDIR = XIncDir           /* installed X includes */
            XLIBDIR = XLibDir           /* installed X libraries */
          PSFONTDIR = PSFontDir         /* installed PS font metrics (afm) */