source: CMT/HEAD/mgr/requirements @ 146

Last change on this file since 146 was 146, checked in by garonne, 18 years ago

Fill <project>_installarea_linkopts in addition to cmt_installarea_linkopts see CL#297

  • Property svn:eol-style set to native
File size: 21.6 KB
Line 
1package CMT
2
3author arnault@lal.in2p3.fr
4
5tag CMTr15 CMTr14
6tag CMTr16 CMTr14
7tag CMTr18 CMTr16
8
9#
10#  Automatic detection of some system features.
11#
12
13
14# Getting info on the hardware
15macro cmt_hardware_query_command "uname -m" \
16      Darwin "uname -p" \
17      SunOS "uname -p" \
18      HP-UX "uname -m | sed -e 's#/##g'"
19
20macro cmt_hardware `$(cmt_hardware_query_command)` WIN32 "WIN32"
21
22apply_tag $(cmt_hardware)
23
24
25# Getting info about the OS
26macro cmt_system_version_query_command "uname -r " \
27      Linux "${CMTROOT}/mgr/cmt_linux_version.sh" \
28      SunOS "uname -r | sed -e 's#^#sunos#'" \
29      OSF1  "uname -r | sed -e 's#^#OSF#'" \
30      Darwin "system_profiler -detailLevel -2 | grep 'System Version' | sed -e 's#[^.0-9 ]##g' -e 's#  *# #g' | cut -d ' ' -f2 | sed -e 's#^#mac#' " \
31      HP-UX "uname -r | sed -e 's#^#hpux#'" \
32      CYGWIN "uname -r | sed -e 's#[(].*##' -e 's#^#Cygwin#'" \
33      LynxOS "uname -r | sed -e 's#^#LynxOS#'"
34
35macro_append cmt_system_version_query_command " | ${CMTROOT}/mgr/cmt_filter_version.sh" \
36             WIN32 ""
37
38macro cmt_system_version   `$(cmt_system_version_query_command)`   WIN32 "XP"
39
40apply_tag $(cmt_system_version)
41
42
43# Getting info about the C++ compiler
44macro cmt_compiler_version_query_command "${CMTROOT}/mgr/cmt_gcc_version.sh | grep '^gcc'" \
45      Linux "${CMTROOT}/mgr/cmt_gcc_version.sh" \
46      SunOS "${CMTROOT}/mgr/cmt_CC_version.sh" \
47      OSF1  "${CMTROOT}/mgr/cmt_cxx_version.sh" \
48      Darwin "${CMTROOT}/mgr/cmt_dcc_version.sh" \
49      HP-UX "echo aCC" \
50      LynxOS "${CMTROOT}/mgr/cmt_gcc_version.sh"
51
52macro_append cmt_compiler_version_query_command " | ${CMTROOT}/mgr/cmt_filter3_version.sh" \
53             rhel3 " | ${CMTROOT}/mgr/cmt_filter3_version.sh" \
54             cel3  " | ${CMTROOT}/mgr/cmt_filter3_version.sh" \
55             WIN32 ""
56
57macro cmt_compiler_version `$(cmt_compiler_version_query_command)` WIN32 "cl"
58
59apply_tag $(cmt_compiler_version)
60
61tag OSF1           Unix
62tag Linux          Unix
63tag HP-UX          Unix
64tag Darwin         Unix
65tag LynxOS         Unix
66tag AIX            Unix
67tag SunOS          Unix
68
69tag CYGWIN_NT-5.1  Unix CYGWIN
70
71tag alpha          OSF1
72tag alpha_dux40    alpha
73tag alpha-debug    alpha debug
74
75tag LynxOS-VGPW2   LynxOS
76tag LynxOS-PowerPC LynxOS
77tag RIO806X        LynxOS
78tag VMTR2X         LynxOS
79
80tag hp9000s780     HP-UX
81tag hp9000s700     HP-UX
82tag hp700_ux101    HP-UX
83tag hp_ux102       HP-UX
84
85tag Linux-i686     Linux
86tag i386_redhat51  Linux
87tag i386_linux22   Linux
88
89tag rs_aix42       AIX
90
91tag sun4u          SunOS
92tag sun4x_57       SunOS
93
94tag rhel3          Linux
95tag cel3           Linux
96tag slc3           Linux
97
98# Alternate possible tags for VisualC
99tag VisualC        WIN32
100tag VisualC        Win32
101tag WIN32          VisualC
102
103# Some alternate definitions for debug on VisualC
104tag VisualCdbg     WIN32 windebug
105tag VisualD        WIN32 windebug
106tag VisualDbg      WIN32 windebug
107tag VisualDebug    WIN32 windebug
108tag VisualD        VisualC windebug
109tag VisualDbg      VisualC windebug
110tag Win32Debug     VisualC windebug
111
112# VSNET tags #
113tag VC7            vsnet
114tag VC7debug       vsnet windebug
115
116tag_exclude WIN32 Unix
117tag_exclude Win32 Unix
118
119#
120#  Global PATH variables management
121#
122
123path_remove  PATH      "CMT/v" \
124             WIN32     "CMT\v"
125
126path_prepend PATH      "${CMTROOT}/${CMTBIN}" \
127             WIN32     "%CMTROOT%\%CMTBIN%"
128
129path_remove  CLASSPATH  "CMT"
130path_append  CLASSPATH  "${CMTROOT}/java" \
131             WIN32      "%CMTROOT%\java"
132
133path_append include    ""
134path_append lib        ""
135
136macro debug_option "-g" \
137      SunOS        "-G" \
138      WIN32        "/G"
139
140#
141#  C environment
142#
143
144macro cc              "gcc" \
145      insure          "insure" \
146      alpha           "cc" \
147      alphat          "cc" \
148      HP-UX           "aCC" \
149      hp700_ux101     "gcc" \
150      AIX             "xlc" \
151      SunOS           "cc" \
152      VisualC         "cl.exe" \
153      Darwin          "cc"
154
155macro cdebugflags     "" \
156      debug           "$(debug_option)"
157
158macro cflags          "" \
159      LynxOS-VGPW2    "-X" \
160      insure          "-std1" \
161      HP-UX           "+Z" \
162      hp700_ux101     "-fpic -ansi" \
163      alpha           "-std1" \
164      alphat          "-std1" \
165      SunOS           "-KPIC" \
166      VisualC         '/nologo /DWIN32 /MD /W3 $(includes) /c'
167
168macro pp_cflags       "" \
169      LynxOS-VGPW2    "-DVGPW2" \
170      HP-UX           "-D_HPUX_SOURCE" \
171      alphat          "-DCTHREADS" \
172      AIX             "-D_ALL_SOURCE -D_BSD"
173
174macro ccomp           "$(cc) -c $(includes) $(cdebugflags) $(cflags) $(pp_cflags)" \
175      VisualC         "cl.exe $(cdebugflags) $(cflags) $(pp_cflags)"
176
177macro clinkflags      ""
178
179macro clink           "$(cc) $(clinkflags) $(cdebugflags)" \
180      VisualC         "link.exe /nologo /machine:IX86 "
181
182
183#
184#  Developper Studio environment
185#
186
187macro msdevdll          "" \
188      VisualC           "/dll"
189
190macro msdevdllflags   "" \
191      VisualC         '/MT /D "_USRDLL" /D "WDLL_EXPORTS"' \
192      VisualD         '/MTd /D "_USRDLL" /D "WDLL_EXPORTS"'
193
194macro vsCONFIG        "" \
195      VC7             "Release" \
196      VC7debug        "Debug"
197
198macro vsOptimize      "" \
199      VC7             "2" \
200      VC7debug        "0"
201
202
203#
204#  C++ environment
205#
206
207macro ppcmd           "-I" \
208      rs_aix41        "-WF,-I" \
209      VisualC         "/I "
210
211macro preproc         "g++ -MD -c " \
212      insure          "insure" \
213      alpha           "cxx" \
214      OSF1            "g++" \
215      HP-UX           "aCC" \
216      hp700_ux101     "g++" \
217      hp_ux102        "aCC" \
218      AIX             "xlC" \
219      Linux           "c++ -MD -c " \
220      SunOS           "CC" \
221      VisualC         "cl.exe" \
222      Darwin          "c++"
223
224macro cpp             "g++" \
225      insure          "insure" \
226      alpha           "cxx" \
227      OSF1            "g++" \
228      HP-UX           "aCC" \
229      hp700_ux101     "g++" \
230      hp_ux102        "aCC" \
231      AIX             "xlC" \
232      Linux           "c++" \
233      SunOS           "CC" \
234      VisualC         "cl.exe" \
235      Darwin          "c++"
236
237macro cppdebugflags   "" \
238      debug           "$(debug_option)"
239
240macro cppflags        "" \
241      alpha           "-nocompress -std arm -msg_quiet" \
242      OSF1            "-fpic" \
243      hp9000s780      "+Z" \
244      hp700_ux101     "-fpic" \
245      HP-UX           "+Z -Wc,-ansi_for_scope,on" \
246      hp_ux102        "-z +p -Wc,-ansi_for_scope,on +O2 +Onoinitcheck" \
247      Linux           "-pipe -ansi -pedantic -W -Wall -Wwrite-strings -Wpointer-arith -Woverloaded-virtual " \
248      SunOS           "-KPIC" \
249      VisualC         '/nologo /DWIN32 /MD /W3 $(includes) /c /EHsc'
250
251macro pp_cppflags     "" \
252      HP-UX           "-D_HPUX_SOURCE" \
253      Linux           "-D_GNU_SOURCE"
254
255macro cppcomp         "$(cpp) -c $(includes) $(cppdebugflags) $(cppflags) $(pp_cppflags)" \
256      VisualC         "cl.exe $(cppdebugflags) $(cppflags) $(pp_cppflags)"
257
258macro cpplinkflags    ""
259
260macro cpplink         "$(cpp) $(cpplinkflags) $(cppdebugflags)" \
261      VisualC         "link.exe /nologo /machine:I386"
262
263macro cpp_linkopts    "" \
264      OSF1            " -lstdc++ " \
265      alpha           " /usr/lib/cmplrs/cxx/libcxx.a -lcxxstd -lexc -lm " \
266      alphat          " /usr/lib/cmplrs/cxx/libcxx.a -lcxxstd -lexc -lm "
267
268#
269#  Fortran environment
270#
271
272macro for             "f77" \
273      HP-UX           "fort77" \
274      rs_aix41        "xlf" \
275      Linux           "g77"
276
277macro fflags          "$(debug_option)" \
278      VisualC         ""
279
280macro fcomp           "$(for) -c $(fincludes) $(fflags) $(pp_fflags)" \
281      VisualC         ""
282
283macro flink           "$(for) $(flinkflags)"
284
285#
286#  Java environment
287#
288
289macro javacomp        "javac -classpath $(src):$(CLASSPATH) "
290macro javacopy        "cp"    VisualC "copy"
291macro jar             "jar"
292
293#
294#  X11 environment
295#
296
297macro X11_cflags      "-I/usr/include" \
298      HP-UX           "-I/usr/include/X11R5" \
299      SunOS           "-I/usr/motif/usr/include" \
300      VisualC         ""
301
302macro Xm_cflags       "-I/usr/include" \
303      HP-UX           "-I/usr/include/Motif1.2" \
304      SunOS           "-I/usr/motif/usr/include" \
305      VisualC         ""
306
307####      hp9000s700      "/usr/lib/Motif1.2/libXm.sl /usr/lib/X11R5/libXt.sl /usr/lib/X11R5/libX11.sl"
308
309macro X_linkopts      ""\
310      alpha           "-lXm -lXmu -lXt -lXext -lX11 -ldnet_stub -lm -lots"\
311      OSF1            "-lXm -lXmu -lXt -lXext -lX11 -ldnet_stub -lm -lots"\
312      insure          "-lXm -lXmu -lXt -lXext -lX11 -ldnet_stub -lm -lots"\
313      HP-UX           "-L/usr/lib -lXm -L/usr/contrib/X11R6/lib -lXmu -lXt -lXext -lX11" \
314      SunOS           "-L/usr/motif/usr/lib -lXm -lXt -lX11 -lm"\
315      LynxOS          "-lXt -lX11 -lm"\
316      Linux           "-L/usr/X11R6/lib -lXm -lXt -lXext -lX11 -lm"\
317      RIO806X         "-lXm -lXt -lXext -lX11 -lm"\
318      VGPW2           "-lXm -lXt -lXext -lX11 -lm"\
319      m68k            "-lXm -lXt -lXext -lX11 -lm"\
320      IRIX            "/usr/lib/libXm.so /usr/lib/libXt.so /usr/lib/libX11.so -lm -lPW"\
321      AIX             "/usr/lib/libXm.a /usr/lib/libXt.a /usr/lib/libX11.a -lm" \
322      VisualC         ""
323
324#
325# Lex environment
326#
327
328macro lexflags        ""
329macro lex             "lex $(lexflags)" \
330      i686            "flex $(lexflags)"
331
332#
333# Yacc environment
334#
335
336macro yaccflags       " -l -d " \
337      VisualC         ""
338
339macro yacc            "yacc $(yaccflags)"
340
341#
342#  Archive environment
343#
344
345macro ar              "ar -clr" \
346      SunOS           "ar clr" \
347      VGPW2           "ar clr" \
348      m68k            "ar clr" \
349      LynxOS          "ar clr" \
350      RIO806X         "ar clr" \
351      Linux           "ar r" \
352      VisualC         "lib.exe /nologo "
353
354macro ranlib          "ranlib" \
355      SunOS           "ar ts" \
356      VGPW2           "ar ts" \
357      m68k            "ranlib" \
358      RIO806X         "ranlib" \
359      LynxOS          "ar ts" \
360      IRIX            "ar ts"
361
362macro make_shlib    "echo" \
363      HP-UX         "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
364      OSF1          "${CMTROOT}/mgr/cmt_make_shlib_common.sh noextract" \
365      Linux         "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
366      CYGWIN        "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
367      SunOS         "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
368      Darwin        "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
369      VisualC       "%CMTROOT%\mgr\cmt_make_shlib.bat"
370
371macro shlibsuffix   "" \
372      HP-UX         "sl" \
373      OSF1          "so" \
374      SunOS         "so" \
375      Linux         "so" \
376      CYGWIN        "dll" \
377      Darwin        "dylib" \
378      WIN32         "dll"
379
380macro shlibbuilder  "" \
381      HP-UX         "aCC" \
382      OSF1          "ld" \
383      SunOS         "CC" \
384      Linux         "g++" \
385      CYGWIN        "g++" \
386      Darwin        "c++"
387
388macro shlibflags    "" \
389      HP-UX         "-Wl,-a,shared -b +Z -q -Wl,+s -Wl,+vallcompatwarnings" \
390      OSF1          "-shared -expect_unresolved '*'" \
391      Linux         "-shared" \
392      CYGWIN        "-shared" \
393      SunOS         "$(debug_option)" \
394      VisualC       "" \
395      Darwin        "-dynamiclib -flat_namespace -undefined suppress "
396
397macro symlink       "/bin/ln -fs " \
398      VisualC       ""
399
400macro symunlink     "/bin/rm -f " \
401      VisualC       ""
402
403macro library_install_command "${symlink}" \
404      VisualC                 "copy "
405
406macro build_library_links  "$(cmtexe) build library_links -quiet -tag=$(tags)"
407macro remove_library_links "$(cmtexe) remove library_links -quiet -tag=$(tags)"
408
409#
410# Prototype and dependency generation
411#
412
413macro cmtexe             "${CMTROOT}/${CMTBIN}/cmt.exe" \
414      WIN32              "%CMTROOT%\%CMTBIN%\cmt.exe"
415
416##macro tags               "$(CMTEXTRATAGS)"
417
418macro build_prototype    "$(cmtexe) build prototype"
419macro build_dependencies "$(cmtexe) -quiet -tag=$(tags) build dependencies"
420macro build_triggers     "$(cmtexe) build triggers"
421
422macro implied_library_prefix "-l" \
423      LynxOS                 "$(<PACKAGE>ROOT)/$(bin)/lib"
424
425macro implied_library_suffix "" \
426      VisualC                ".lib" \
427      LynxOS                 ".a"
428
429#
430# Generic environments
431#
432
433macro SHELL           "/bin/sh" WIN32 "cmd"
434
435macro q               '"'
436macro src             "../src/" WIN32 "..\src\"
437macro doc             "../doc/" WIN32 "..\doc\"
438macro inc             "../src/" WIN32 "..\src\"
439macro mgr             "../mgr/" WIN32 "..\mgr\"
440##macro javabin         "../classes/"
441
442macro application_suffix ".exe"
443macro library_prefix "lib" WIN32 "" CYGWIN ""
444macro library_suffix ""
445
446macro lock_command "chmod -R a-w ../*" \   
447      VisualC      "attrib /S /D +R ..\*"
448
449macro unlock_command "chmod -R g+w ../*" \   
450      VisualC      "attrib /S /D -R ..\*"
451
452macro preprocessor_command "" \
453      VisualC              ""
454
455macro_append MAKEFLAGS " --no-print-directory "
456
457#macro_prepend constituents " configclean "
458
459#
460# Remote definitions
461#
462
463macro gmake_hosts "lx1 rsplus lxtest as7 dxplus ax7 hp2 aleph hp1 hpplus papou1-fe atlas"
464
465macro make_hosts  "virgo-control1 rio0a vmpc38a"
466
467macro everywhere  "hosts" \
468      LAL         "as7 lx1 virgo-control1 papou1-fe hp2 aleph hp1" \
469      LHCb        "lxtest hpplus dxplus rsplus" \
470      Atlas       "lxplus sundev" \
471      Cascina     "ax7 vmpc38a rio0a"
472
473
474#
475#  Fragments
476#
477
478make_fragment make_header
479make_fragment library_header
480make_fragment application_header
481make_fragment document_header
482make_fragment java_header
483make_fragment jar_header
484make_fragment protos_header
485make_fragment buildproto
486make_fragment library
487make_fragment library_no_share
488make_fragment application
489make_fragment jar
490make_fragment java
491make_fragment java_copy
492make_fragment cleanup_header
493make_fragment cleanup
494make_fragment cleanup_library
495make_fragment cleanup_application
496make_fragment cleanup_java
497make_fragment cleanup_objects
498
499make_fragment fortran
500make_fragment c
501make_fragment cpp
502make_fragment lex
503make_fragment yacc
504
505make_fragment fortran_library
506make_fragment c_library
507make_fragment cpp_library
508make_fragment lex_library
509make_fragment yacc_library
510
511make_fragment dsw_header
512make_fragment dsw_project
513make_fragment dsw_trailer
514make_fragment dsw_all_project_header
515make_fragment dsw_all_project_dependency
516make_fragment dsw_all_project_trailer
517
518make_fragment dsp_library_header
519make_fragment dsp_shared_library_header
520make_fragment dsp_application_header
521make_fragment dsp_windows_header
522make_fragment dsp_contents
523make_fragment dsp_trailer
524make_fragment dsp_all
525
526# vsnet fragments
527make_fragment vcproj_library_header
528make_fragment vcproj_application_header
529make_fragment vcproj_all
530make_fragment vcproj_trailer
531make_fragment vcproj_contents
532make_fragment vcproj_directory_header
533make_fragment vcproj_directory_trailer
534
535make_fragment sln_header
536make_fragment sln_project
537make_fragment sln_trailer
538make_fragment sln_project_config
539make_fragment sln_dependency_project
540
541make_fragment sln_dependency_header
542make_fragment sln_dependency_trailer
543
544#### all packages have same GUID, and the "all" project as well
545
546macro GUID_all     "" vsnet {DD1EDB1B-B098-44F8-8012-3039B5A56FEF}
547macro package_GUID "" vsnet {8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}
548
549make_fragment make_setup
550make_fragment make_setup_header
551
552make_fragment constituents_header
553make_fragment group
554make_fragment constituent
555make_fragment constituents_trailer
556
557make_fragment dependencies
558make_fragment dependencies_and_triggers
559
560make_fragment readme_header
561make_fragment readme
562make_fragment readme_doc
563make_fragment readme_use
564make_fragment readme_trailer
565
566make_fragment tex -header=tex_header -suffix=ps
567
568make_fragment check_application
569make_fragment check_java
570make_fragment check_application_header
571
572make_fragment application_launcher -header=application_launcher_header
573
574make_fragment install_includes -header=install_includes_header
575
576macro install_command "cp " \
577      WIN32           "xcopy /S /E /Y "
578
579macro uninstall_command "/bin/rm -f " \
580      WIN32             "del "
581
582macro cmt_installarea_command "ln -fs " \
583      WIN32                   "xcopy /S /E /Y "
584
585macro cmt_uninstallarea_command "/bin/rm -f " \
586      WIN32                     "del "
587
588macro cmt_install_area_command "$(cmt_installarea_command)"
589macro cmt_uninstall_area_command "$(cmt_uninstallarea_command)"
590
591macro cmt_install_action       "$(CMTROOT)/mgr/cmt_install_action.sh" \
592      WIN32                    "$(CMTROOT)\mgr\cmt_install_action.bat"
593
594macro cmt_installdir_action    "$(CMTROOT)/mgr/cmt_installdir_action.sh" \
595      WIN32                    "$(CMTROOT)\mgr\cmt_installdir_action.bat"
596
597macro cmt_uninstall_action     "$(CMTROOT)/mgr/cmt_uninstall_action.sh" \
598      WIN32                    "$(CMTROOT)\mgr\cmt_uninstall_action.bat"
599
600macro cmt_uninstalldir_action  "$(CMTROOT)/mgr/cmt_uninstalldir_action.sh" \
601      WIN32                    "$(CMTROOT)\mgr\cmt_uninstalldir_action.bat"
602
603macro cmt_installdir_excludes  "" WIN32 "$(CMTROOT)\mgr\cmt_installdir_excludes.txt"
604
605
606action make "gmake $(cmt_args)" CYGWIN "make $(cmt_args)" WIN32 "nmake /f nmake $(cmt_args)"
607
608
609
610macro mkdir  "mkdir" \
611      LynxOS "mkdir -f"
612
613#-----------------------------------------------------------------
614# Generic copy facility
615#   It is customized through the parameter:
616#     install_dir="<path where to install the sources>"
617#
618make_fragment installer -header=installer_header
619
620
621#-----------------------------------------------------------------
622# Generic usage of the cmt expand model facility
623#   the fragment is customized through the following parameters:
624#    model="<model text string>"
625#    out="<output file name>"
626#
627make_fragment generator -header=generator_header
628
629#-----------------------------------------------------------------
630# Generic action runner
631#
632make_fragment cmt_action_runner -header=cmt_action_runner_header
633
634#
635# The supported languages
636#
637
638language fortran -suffix=f -suffix=F -preprocessor_command=$(ppcmd) -linker=$(flink)
639language c       -suffix=c -prototypes -linker=$(clink)
640language c++     -suffix=C -suffix=cc -suffix=cxx -suffix=cpp -fragment=cpp -linker=$(cpplink)
641language java    -suffix=java -linker=java
642language yacc    -suffix=y -prototypes -linker=$(clink)
643language lex     -suffix=l -prototypes -linker=$(clink)
644
645#
646# Protocol level for the CVS pluggin
647#
648
649macro cmt_cvs_protocol_level "v1r1"
650
651#
652# The CMTPATH patterns for installation areas
653#
654
655macro cmt_installarea_prefix "InstallArea"
656
657cmtpath_pattern \
658  macro cmt_installarea_paths        " $(cmt_installarea_prefix)/$(CMTCONFIG)/bin" ; \
659  macro_prepend use_linkopts         " $(cmt_installarea_linkopts) " ; \
660  macro_append shlibbuilder          " $(cmt_installarea_linkopts) "
661
662cmtpath_pattern \
663  macro_append cmt_installarea_paths "" <project>_with_installarea " $(<project>_installarea_prefix)/$(CMTCONFIG)/lib" ; \
664  macro_append cmt_installarea_paths "" <project>_with_installarea " $(<project>_installarea_prefix)/share/lib" ; \
665  macro_append cmt_installarea_paths "" <project>_with_installarea " $(<project>_installarea_prefix)/share/bin"
666 
667macro CMT_PATH_remove_regexp "/[^/]*/" WIN32 "\\[^\\]*\\"
668macro CMT_PATH_remove_share_regexp "/share/" WIN32 "\\share\\"
669
670cmtpath_pattern \
671  macro <project>_installarea_prefix "$(cmt_installarea_prefix)" ; \
672  macro <project>_installarea_prefix_remove "$(<project>_installarea_prefix)" ; \
673  path_remove_regexp PATH "" <project>_with_installarea "$(<project>_installarea_prefix_remove)$(CMT_PATH_remove_regexp)bin$" ; \
674  path_remove_regexp PATH "" <project>_with_installarea "$(<project>_installarea_prefix_remove)$(CMT_PATH_remove_regexp)lib$" ; \
675  path_remove_regexp LD_LIBRARY_PATH "" <project>_with_installarea "$(<project>_installarea_prefix_remove)/[^/]*/lib$"  ; \
676  path_remove_regexp CLASSPATH "" <project>_with_installarea "$(<project>_installarea_prefix_remove)$(CMT_PATH_remove_share_regexp)lib$" ; \
677  path_remove_regexp CLASSPATH "" <project>_with_installarea "$(<project>_installarea_prefix_remove)$(CMT_PATH_remove_share_regexp)bin$"
678
679cmtpath_pattern \
680  path_prepend PATH "" \
681               <project>_with_installarea&WIN32 "<path>/$(<project>_installarea_prefix)/${CMTCONFIG}/bin" \
682               <project>_with_installarea&Unix "<path>/$(<project>_installarea_prefix)/${CMTCONFIG}/bin" ; \
683  path_prepend PATH "" \
684               <project>_with_installarea&WIN32 "<path>/$(<project>_installarea_prefix)/${CMTCONFIG}/lib" \
685               <project>_with_installarea&CYGWIN "<path>/$(<project>_installarea_prefix)/${CMTCONFIG}/lib" ; \
686  path_prepend LD_LIBRARY_PATH "" \
687               <project>_with_installarea&Unix "<path>/$(<project>_installarea_prefix)/${CMTCONFIG}/lib" ; \
688  path_prepend CLASSPATH "" <project>_with_installarea "<path>/$(<project>_installarea_prefix)/share/lib" ; \
689  path_prepend CLASSPATH "" <project>_with_installarea "<path>/$(<project>_installarea_prefix)/share/bin" ; \
690  macro_prepend cmt_installarea_linkopts "" \
691                <project>_without_installarea "" \
692                <project>_with_installarea&Unix " -L<path>/$(<project>_installarea_prefix)/$(CMTCONFIG)/lib " \
693                <project>_with_installarea&WIN32 " /LIBPATH:<path>\$(<project>_installarea_prefix)\$(CMTCONFIG)\lib "                 
694   
695set NEWCMTCONFIG "${cmt_hardware}-${cmt_system_version}-${cmt_compiler_version}"
696
697#
698# The cmt constituent
699#
700
701application cmt -s=../source cmt.cxx \
702cmt_awk.cxx \
703cmt_branch.cxx \
704cmt_constituent.cxx \
705cmt_deps_builder.cxx \
706cmt_fragment.cxx \
707cmt_generator.cxx \
708cmt_include.cxx \
709cmt_parser.cxx \
710cmt_script.cxx \
711cmt_string.cxx \
712cmt_system.cxx \
713cmt_tag.cxx \
714cmt_use.cxx \
715cmt_symbol.cxx \
716cmt_error.cxx \
717cmt_pattern.cxx \
718cmt_language.cxx \
719cmt_cvs.cxx \
720cmt_group.cxx \
721cmt_database.cxx \
722cmt_lock.cxx \
723cmt_triggers.cxx \
724cmt_regexp.cxx \
725cmt_model.cxx \
726cmt_project.cxx \
727cmt_syntax.cxx \
728cmt_install_area.cxx \
729cmt_cmtpath_pattern.cxx \
730cmt_sequence.cxx \
731cmt_generators.cxx \
732cmt_scope_section.cxx \
733cmt_log.cxx \
734cmt_commands.cxx
735
736private
737
738macro all_constituents cmt
739
740macro_append cpplink "" VisualC " advapi32.lib "
741
Note: See TracBrowser for help on using the repository browser.