1 | #----------------------------------------------------------- |
---|
2 | # Copyright Christian Arnault LAL-Orsay CNRS |
---|
3 | # arnault@lal.in2p3.fr |
---|
4 | # See the complete license in cmt_license.txt "http://www.cecill.info". |
---|
5 | #----------------------------------------------------------- |
---|
6 | |
---|
7 | cflags = $(CFLAGS) |
---|
8 | cppflags = $(CFLAGS) |
---|
9 | fflags = $(CFLAGS) |
---|
10 | |
---|
11 | cc = cc |
---|
12 | ccomp = $(cc) -c -I$(inc) $(cflags) |
---|
13 | clink = $(cc) |
---|
14 | |
---|
15 | cpp = g++ |
---|
16 | cppcomp = $(cpp) -c -I$(inc) $(cppflags) |
---|
17 | cpplink = $(cpp) |
---|
18 | |
---|
19 | for = f77 |
---|
20 | fcomp = $(for) -c -I$(inc) $(fflags) |
---|
21 | flink = $(for) |
---|
22 | |
---|
23 | lexflags = |
---|
24 | lex = lex $(lexflags) |
---|
25 | |
---|
26 | yaccflags = |
---|
27 | yacc = yacc $(yaccflags) |
---|
28 | |
---|
29 | mkdir = mkdir |
---|
30 | |
---|
31 | comp = $(ccomp) |
---|
32 | link = $(cc) |
---|
33 | |
---|
34 | ar = ar -crl |
---|
35 | ranlib = ranlib |
---|
36 | |
---|
37 | cmtexe = $(CMTROOT)/$(CMTBIN)/cmt.exe |
---|
38 | |
---|
39 | #--------------------------------------------- |
---|
40 | # Controlling the verbosity of Make |
---|
41 | # |
---|
42 | |
---|
43 | # default settings |
---|
44 | # o print CMT messages |
---|
45 | # o do not echo Make commands |
---|
46 | cmtmsg = 1 |
---|
47 | makecmd = |
---|
48 | |
---|
49 | # parse all the switches |
---|
50 | ifdef SILENT |
---|
51 | cmtmsg = |
---|
52 | makecmd = |
---|
53 | endif |
---|
54 | |
---|
55 | ifdef ECHO |
---|
56 | cmtmsg = |
---|
57 | makecmd = 1 |
---|
58 | endif |
---|
59 | |
---|
60 | ifdef QUIET |
---|
61 | cmtmsg = 1 |
---|
62 | makecmd = |
---|
63 | endif |
---|
64 | |
---|
65 | ifdef VERBOSE |
---|
66 | cmtmsg = 1 |
---|
67 | makecmd = 1 |
---|
68 | endif |
---|
69 | |
---|
70 | # set the relevant Make variables |
---|
71 | ifndef CMTMSGPREFIX |
---|
72 | CMTMSGPREFIX = \#CMT---> |
---|
73 | export CMTMSGPREFIX |
---|
74 | endif |
---|
75 | |
---|
76 | ifdef cmtmsg |
---|
77 | export cmtmsg |
---|
78 | echo = @echo "$(CMTMSGPREFIX)" |
---|
79 | else |
---|
80 | echo = @: |
---|
81 | endif |
---|
82 | |
---|
83 | ifdef makecmd |
---|
84 | export makecmd |
---|
85 | silent = |
---|
86 | #MAKEFLAGS += --no-print-directory |
---|
87 | else |
---|
88 | silent = @ |
---|
89 | #MAKEFLAGS += --silent |
---|
90 | endif |
---|
91 | |
---|
92 | lex_echo = $(echo) building |
---|
93 | lex_silent = $(silent) |
---|
94 | yacc_echo = $(echo) building |
---|
95 | yacc_silent = $(silent) |
---|
96 | c_echo = $(echo) compiling |
---|
97 | c_silent = $(silent) |
---|
98 | cpp_echo = $(echo) compiling |
---|
99 | cpp_silent = $(silent) |
---|
100 | fortran_echo = $(echo) compiling |
---|
101 | fortran_silent = $(silent) |
---|
102 | java_echo = $(echo) building |
---|
103 | java_silent = $(silent) |
---|
104 | link_echo = $(echo) building |
---|
105 | link_silent = $(silent) |
---|
106 | lib_echo = $(echo) building |
---|
107 | lib_silent = $(silent) |
---|
108 | cleanup_echo = $(echo) removing |
---|
109 | cleanup_silent = $(silent) |
---|
110 | install_echo = $(echo) installing |
---|
111 | install_silent = $(silent) |
---|
112 | dep_echo = $(echo) generating dependencies |
---|
113 | dep_silent = $(silent) |
---|
114 | # |
---|
115 | # End of Controlling the verbosity of Make |
---|
116 | #--------------------------------------------- |
---|
117 | |
---|
118 | SHELL = /bin/sh |
---|
119 | |
---|
120 | src = ../src/ |
---|
121 | inc = ../src/ |
---|
122 | mgr = ../mgr/ |
---|
123 | cmt = ../cmt/ |
---|
124 | bin = ../$(tag)/ |
---|
125 | |
---|
126 | # |
---|
127 | #dirs :: |
---|
128 | # @if test ! -r requirements ; then echo "No requirements file" ; fi; \ |
---|
129 | # if test ! -d $(bin) ; then $(mkdir) -p $(bin) ; fi |
---|
130 | # |
---|
131 | |
---|
132 | # explicit rule not to remake |
---|
133 | #${CMTROOT}/src/Makefile.core : ; |
---|
134 | |
---|
135 | # add to the list of valid suffixes |
---|
136 | # so that nonterminal match-anything rules will not be considered |
---|
137 | .SUFFIXES: .make .in .stamp .cxx |
---|