source: CMT/v1r19/mgr/requirements @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

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