source: CMT/v1r10p20011126/mgr/requirements @ 1

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

Import all tags

File size: 13.4 KB
Line 
1package CMT
2
3author arnault@lal.in2p3.fr
4
5tag alpha          OSF1
6tag alpha_dux40    alpha
7tag alpha-debug    alpha debug
8
9tag LynxOS-VGPW2   LynxOS
10tag LynxOS-PowerPC LynxOS
11tag RIO806X        LynxOS
12tag VMTR2X         LynxOS
13
14tag hp9000s780     HP-UX
15tag hp9000s700     HP-UX
16tag hp700_ux101    HP-UX
17tag hp_ux102       HP-UX
18
19tag Linux-i686     Linux
20tag i386_redhat51  Linux
21tag i386_linux22   Linux
22
23tag rs_aix42       AIX
24
25tag sun4u          SunOS
26tag sun4x_57       SunOS
27
28# Alternate possible tags for VisualC
29tag VisualC        WIN32
30tag VisualC        Win32
31tag WIN32          VisualC
32
33# Some alternate definitions for debug on VisualC
34tag VisualCdbg     WIN32 windebug
35tag VisualD        WIN32 windebug
36tag VisualDbg      WIN32 windebug
37tag VisualDebug    WIN32 windebug
38tag VisualD        VisualC windebug
39tag VisualDbg      VisualC windebug
40tag Win32Debug     VisualC windebug
41
42
43path_remove  PATH      "CMT"
44path_prepend PATH      "${CMTROOT}/${CMTBIN}" \
45             WIN32     "%CMTROOT%\%CMTBIN%"
46
47path_remove  CLASSPATH  "CMT"
48path_append  CLASSPATH  "${CMTROOT}/java" \
49             WIN32      "%CMTROOT%\java"
50
51path_append include    ""
52path_append lib        ""
53
54#
55#  C environment
56#
57
58macro cc              "gcc" \
59      insure          "insure" \
60      alpha           "cc" \
61      alphat          "cc" \
62      HP-UX           "aCC" \
63      hp700_ux101     "gcc" \
64      AIX             "xlc" \
65      SunOS           "cc" \
66      VisualC         "cl.exe"
67
68macro cdebugflags     "" \
69      debug           "-g"
70
71macro cflags          "" \
72      LynxOS-VGPW2    "-X" \
73      insure          "-std1" \
74      HP-UX           "+Z" \
75      hp700_ux101     "-fpic -ansi" \
76      alpha           "-std1" \
77      alphat          "-std1" \
78      SunOS           "-KPIC" \
79      VisualC         '/nologo /DWIN32 /MD /W3 $(includes) /c'
80
81macro pp_cflags       "" \
82      LynxOS-VGPW2    "-DVGPW2" \
83      HP-UX           "-D_HPUX_SOURCE" \
84      alphat          "-DCTHREADS" \
85      AIX             "-D_ALL_SOURCE -D_BSD" \
86      Linux           "-Di586"
87
88macro ccomp           "$(cc) -c -I$(inc) $(includes) $(cdebugflags) $(cflags) $(pp_cflags)" \
89      VisualC         "cl.exe $(cdebugflags) $(cflags) $(pp_cflags)"
90
91macro clinkflags      ""
92
93macro clink           "$(cc) $(clinkflags)" \
94      VisualC         "link.exe /nologo /machine:IX86 "
95
96
97#
98#  Developper Studio environment
99#
100
101macro msdevdll          "" \
102      VisualC           "/dll"
103
104macro msdevdllflags   "" \
105      VisualC         '/MT /D "_USRDLL" /D "WDLL_EXPORTS"' \
106      VisualD         '/MTd /D "_USRDLL" /D "WDLL_EXPORTS"'
107
108
109#
110#  C++ environment
111#
112
113macro ppcmd           "-I" \
114      rs_aix41        "-WF,-I" \
115      VisualC         "/I "
116
117macro cpp             "g++" \
118      insure          "insure" \
119      alpha           "cxx" \
120      OSF1            "g++" \
121      HP-UX           "aCC" \
122      hp700_ux101     "g++" \
123      hp_ux102        "aCC" \
124      AIX             "xlC" \
125      Linux           "c++" \
126      SunOS           "CC" \
127      VisualC         "cl.exe"
128
129macro cppdebugflags   "" \
130      debug           "-g"
131
132macro cppflags        "" \
133      alpha           "-nocompress -std arm -msg_quiet" \
134      OSF1            "-fpic" \
135      hp9000s780      "+Z" \
136      hp700_ux101     "-fpic" \
137      HP-UX           "+Z -Wc,-ansi_for_scope,on" \
138      hp_ux102        "-z +p -Wc,-ansi_for_scope,on +O2 +Onoinitcheck" \
139      Linux           "-pipe -ansi -pedantic -W -Wall -Wwrite-strings -Wpointer-arith -Wnested-externs -Woverloaded-virtual -Wbad-function-cast -fnonnull-objects " \
140      SunOS           "-KPIC" \
141      VisualC         '/nologo /DWIN32 /MD /W3 $(includes) /c'
142
143macro pp_cppflags     "" \
144      HP-UX           "-D_HPUX_SOURCE" \
145      Linux           "-D_GNU_SOURCE"
146
147macro cppcomp         "$(cpp) -c $(includes) $(cppdebugflags) $(cppflags) $(pp_cppflags)" \
148      VisualC         "cl.exe $(cppdebugflags) $(cppflags) $(pp_cppflags)"
149
150macro cpplinkflags    ""
151
152macro cpplink         "$(cpp) $(cpplinkflags)" \
153      VisualC         "link.exe /nologo /machine:I386"
154
155macro cpp_linkopts    "" \
156      OSF1            " -lstdc++ " \
157      alpha           " /usr/lib/cmplrs/cxx/libcxx.a -lcxxstd -lexc -lm " \
158      alphat          " /usr/lib/cmplrs/cxx/libcxx.a -lcxxstd -lexc -lm "
159
160#
161#  Fortran environment
162#
163
164macro for             "f77" \
165      HP-UX           "fort77" \
166      rs_aix41        "xlf" \
167      Linux           "g77"
168
169macro fflags          "-g" \
170      VisualC         ""
171
172macro fcomp           "$(for) -c $(fincludes) $(fflags) $(pp_fflags)" \
173      VisualC         ""
174
175macro flink           "$(for) $(flinkflags)"
176
177#
178#  Java environment
179#
180
181macro javacomp        "javac"
182macro javacopy        "cp"    VisualC "copy"
183macro jar             "jar"
184
185#
186#  X11 environment
187#
188
189macro X11_cflags      "-I/usr/include" \
190      HP-UX           "-I/usr/include/X11R5" \
191      SunOS           "-I/usr/motif/usr/include" \
192      VisualC         ""
193
194macro Xm_cflags       "-I/usr/include" \
195      HP-UX           "-I/usr/include/Motif1.2" \
196      SunOS           "-I/usr/motif/usr/include" \
197      VisualC         ""
198
199####      hp9000s700      "/usr/lib/Motif1.2/libXm.sl /usr/lib/X11R5/libXt.sl /usr/lib/X11R5/libX11.sl"
200
201macro X_linkopts      ""\
202      alpha           "-lXm -lXmu -lXt -lXext -lX11 -ldnet_stub -lm -lots"\
203      OSF1            "-lXm -lXmu -lXt -lXext -lX11 -ldnet_stub -lm -lots"\
204      insure          "-lXm -lXmu -lXt -lXext -lX11 -ldnet_stub -lm -lots"\
205      HP-UX           "-L/usr/lib -lXm -L/usr/contrib/X11R6/lib -lXmu -lXt -lXext -lX11" \
206      SunOS           "-L/usr/motif/usr/lib -lXm -lXt -lX11 -lm"\
207      LynxOS          "-lXt -lX11 -lm"\
208      Linux           "-L/usr/X11R6/lib -lXm -lXt -lXext -lX11 -lm"\
209      RIO806X         "-lXm -lXt -lXext -lX11 -lm"\
210      VGPW2           "-lXm -lXt -lXext -lX11 -lm"\
211      m68k            "-lXm -lXt -lXext -lX11 -lm"\
212      IRIX            "/usr/lib/libXm.so /usr/lib/libXt.so /usr/lib/libX11.so -lm -lPW"\
213      AIX             "/usr/lib/libXm.a /usr/lib/libXt.a /usr/lib/libX11.a -lm" \
214      VisualC         ""
215
216#
217# Lex environment
218#
219
220macro lexflags        ""
221macro lex             "lex $(lexflags)" \
222      i686            "flex $(lexflags)"
223
224#
225# Yacc environment
226#
227
228macro yaccflags       " -l -d " \
229      VisualC         ""
230
231macro yacc            "yacc $(yaccflags)"
232
233#
234#  Archive environment
235#
236
237macro ar              "ar -clr" \
238      SunOS           "ar clr" \
239      VGPW2           "ar clr" \
240      m68k            "ar clr" \
241      LynxOS          "ar clr" \
242      RIO806X         "ar clr" \
243      Linux           "ar r" \
244      VisualC         "lib.exe /nologo "
245
246macro ranlib          "ranlib" \
247      SunOS           "ar ts" \
248      VGPW2           "ar ts" \
249      m68k            "ranlib" \
250      RIO806X         "ranlib" \
251      LynxOS          "ar ts" \
252      IRIX            "ar ts"
253
254macro make_shlib    "echo" \
255      HP-UX         "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
256      OSF1          "${CMTROOT}/mgr/cmt_make_shlib_common.sh noextract" \
257      Linux         "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
258      SunOS         "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
259      VisualC       "%CMTROOT%\mgr\cmt_make_shlib.bat"
260
261macro shlibsuffix   "" \
262      HP-UX         "sl" \
263      OSF1          "so" \
264      SunOS         "so" \
265      Linux         "so"
266
267macro shlibbuilder  "" \
268      HP-UX         "aCC" \
269      OSF1          "ld" \
270      SunOS         "CC" \
271      Linux         "g++"
272
273macro shlibflags    "" \
274      HP-UX         "-Wl,-a,shared -b +Z -q -Wl,+s -Wl,+vallcompatwarnings" \
275      OSF1          "-shared -expect_unresolved '*'" \
276      Linux         "-shared" \
277      SunOS         "-G" \
278      VisualC       ""
279
280macro symlink       "/bin/ln -fs " \
281      VisualC       ""
282
283macro symunlink     "/bin/rm -f " \
284      VisualC       ""
285
286macro build_library_links "$(cmtexe) build library_links -quiet -tag=$(tags)"
287macro remove_library_links "$(cmtexe) remove library_links -quiet -tag=$(tags)"
288
289#
290# Prototype and dependency generation
291#
292
293macro cmtexe             "${CMTROOT}/${CMTBIN}/cmt.exe" \
294      WIN32              "%CMTROOT%\%CMTBIN%\cmt.exe"
295
296macro tags               "${CMTEXTRATAGS}"
297
298macro build_prototype    "$(cmtexe) build prototype"
299macro build_dependencies "$(cmtexe) -quiet -tag=$(tags) build dependencies"
300macro build_triggers     "$(cmtexe) build triggers"
301
302macro implied_library_prefix "-l" \
303      VisualC                "$(<PACKAGE>ROOT)/$(bin)/" \
304      LynxOS                 "$(<PACKAGE>ROOT)/$(bin)/lib"
305
306macro implied_library_suffix "" \
307      VisualC                ".lib" \
308      LynxOS                 ".a"
309
310#
311# Generic environments
312#
313
314macro SHELL           "/bin/sh"
315
316macro src             "../src/"
317macro doc             "../doc/"
318macro inc             "../src/"
319macro mgr             "../mgr/"
320##macro javabin         "../classes/"
321
322macro application_suffix ".exe"
323
324macro lock_command "chmod -R a-w ../*" \   
325      VisualC      "attrib /S /D +R ..\*"
326
327macro unlock_command "chmod -R g+w ../*" \   
328      VisualC      "attrib /S /D -R ..\*"
329
330macro preprocessor_command "" \
331      try                  "gcc -M" \
332      VisualC              ""
333
334macro_append MAKEFLAGS " --no-print-directory "
335
336#macro_prepend constituents " configclean "
337
338#
339# Remote definitions
340#
341
342macro gmake_hosts "lx1 rsplus lxtest as7 dxplus ax7 hp2 aleph hp1 hpplus papou1-fe atlas"
343
344macro make_hosts  "virgo-control1 rio0a vmpc38a"
345
346macro everywhere  "hosts" \
347      LAL         "as7 lx1 virgo-control1 papou1-fe hp2 aleph hp1" \
348      LHCb        "lxtest hpplus dxplus rsplus" \
349      Atlas       "lxtest rsplus atlas dxplus" \
350      Cascina     "ax7 vmpc38a rio0a"
351
352
353#
354#  Fragments
355#
356
357make_fragment make_header
358make_fragment library_header
359make_fragment application_header
360make_fragment document_header
361make_fragment java_header
362make_fragment jar_header
363make_fragment protos_header
364make_fragment buildproto
365make_fragment library
366make_fragment library_no_share
367make_fragment application
368make_fragment jar
369make_fragment java
370make_fragment java_copy
371make_fragment cleanup_header
372make_fragment cleanup
373make_fragment cleanup_library
374make_fragment cleanup_application
375make_fragment cleanup_java
376make_fragment cleanup_objects
377
378make_fragment fortran
379make_fragment c
380make_fragment cpp
381make_fragment lex
382make_fragment yacc
383
384make_fragment fortran_library
385make_fragment c_library
386make_fragment cpp_library
387make_fragment lex_library
388make_fragment yacc_library
389
390make_fragment dsw_header
391make_fragment dsw_project
392make_fragment dsw_trailer
393make_fragment dsw_all_project_header
394make_fragment dsw_all_project_dependency
395make_fragment dsw_all_project_trailer
396
397make_fragment dsp_library_header
398make_fragment dsp_shared_library_header
399make_fragment dsp_application_header
400make_fragment dsp_windows_header
401make_fragment dsp_contents
402make_fragment dsp_trailer
403make_fragment dsp_all
404
405make_fragment make_setup
406make_fragment make_setup_header
407
408make_fragment constituents_header
409make_fragment constituent
410
411make_fragment dependencies
412make_fragment dependencies_and_triggers
413
414make_fragment readme_header
415make_fragment readme
416make_fragment readme_doc
417make_fragment readme_use
418make_fragment readme_trailer
419
420make_fragment tex -header=tex_header -suffix=ps
421
422make_fragment check_application
423make_fragment check_java
424make_fragment check_application_header
425
426make_fragment application_launcher -header=application_launcher_header
427
428
429
430macro install_command "cp " \
431      VisualC         "copy /Y "
432
433macro uninstall_command "/bin/rm -f " \
434      VisualC           "del "
435
436macro mkdir  "mkdir" \
437      LynxOS "mkdir -f"
438
439#-----------------------------------------------------------------
440# Generic copy facility
441#   It is customized through the parameter:
442#     install_dir="<path where to install the sources>"
443#
444make_fragment installer -header=installer_header
445
446
447#-----------------------------------------------------------------
448# Generic usage of the cmt expand model facility
449#   the fragment is customized through the following parameters:
450#    model="<model text string>"
451#    out="<output file name>"
452#
453make_fragment generator -header=generator_header
454
455
456#
457# The supported languages
458#
459
460language fortran -suffix=f -suffix=F -preprocessor_command=$(ppcmd) -linker=$(flink)
461language c       -suffix=c -prototypes -linker=$(clink)
462language c++     -suffix=C -suffix=cc -suffix=cxx -suffix=cpp -fragment=cpp -linker=$(cpplink)
463language java    -suffix=java -linker=java
464language yacc    -suffix=y -prototypes -linker=$(clink)
465language lex     -suffix=l -prototypes -linker=$(clink)
466
467#
468# The cmt constituent
469#
470
471application cmt cmt.cxx \
472cmt_awk.cxx \
473cmt_branch.cxx \
474cmt_constituent.cxx \
475cmt_deps_builder.cxx \
476cmt_fragment.cxx \
477cmt_generator.cxx \
478cmt_include.cxx \
479cmt_parser.cxx \
480cmt_script.cxx \
481cmt_string.cxx \
482cmt_system.cxx \
483cmt_tag.cxx \
484cmt_use.cxx \
485cmt_symbol.cxx \
486cmt_error.cxx \
487cmt_pattern.cxx \
488cmt_language.cxx \
489cmt_cvs.cxx \
490cmt_group.cxx \
491cmt_database.cxx \
492cmt_lock.cxx \
493cmt_triggers.cxx \
494cmt_regexp.cxx \
495cmt_model.cxx
496
497private
498
499macro all_constituents cmt
500
501macro_append cpplink "" VisualC " advapi32.lib "
502
503
Note: See TracBrowser for help on using the repository browser.