1 | #----------------------------------------------------------- |
---|
2 | # Copyright Christian Arnault LAL-Orsay CNRS |
---|
3 | # arnault@lal.in2p3.fr |
---|
4 | # Modified by Grigory Rybkin |
---|
5 | # See the complete license in cmt_license.txt "http://www.cecill.info". |
---|
6 | #----------------------------------------------------------- |
---|
7 | |
---|
8 | cflags = $(CFLAGS) |
---|
9 | cppflags = $(CFLAGS) |
---|
10 | fflags = $(CFLAGS) |
---|
11 | |
---|
12 | cc = cl.exe |
---|
13 | ccomp = $(cc) /nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /Fo"$(bin)\\" /Fd"$(bin)\\" /FD /c |
---|
14 | clink = link.exe kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 |
---|
15 | |
---|
16 | cpp = cl.exe |
---|
17 | cppcomp = $(cpp) /nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /c |
---|
18 | cpplink = link.exe kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 |
---|
19 | |
---|
20 | ####for = f77 |
---|
21 | ####fcomp = $(for) -c -I$(inc) $(fflags) |
---|
22 | ####flink = $(for) |
---|
23 | |
---|
24 | ####lexflags = |
---|
25 | ####lex = lex $(lexflags) |
---|
26 | |
---|
27 | ####yaccflags = |
---|
28 | ####yacc = yacc $(yaccflags) |
---|
29 | |
---|
30 | ar = link.exe -lib |
---|
31 | ranlib = ranlib |
---|
32 | |
---|
33 | src = ../src/ |
---|
34 | inc = ../src/ |
---|
35 | mgr = ../mgr/ |
---|
36 | cmt = ../cmt/ |
---|
37 | bin = ..\$(tag)\ |
---|
38 | shortbin = ..\$(tag) |
---|
39 | |
---|
40 | #--------------------------------------------- |
---|
41 | # Controlling the verbosity of Make |
---|
42 | # |
---|
43 | |
---|
44 | # default settings |
---|
45 | # o print CMT messages |
---|
46 | # o do not echo Make commands |
---|
47 | cmtmsg = 1 |
---|
48 | !undef makecmd |
---|
49 | |
---|
50 | # parse all the switches |
---|
51 | !ifdef SILENT |
---|
52 | !undef cmtmsg |
---|
53 | !undef makecmd |
---|
54 | !endif |
---|
55 | |
---|
56 | !ifdef ECHO |
---|
57 | !undef cmtmsg |
---|
58 | makecmd = 1 |
---|
59 | !endif |
---|
60 | |
---|
61 | !ifdef QUIET |
---|
62 | cmtmsg = 1 |
---|
63 | !undef makecmd |
---|
64 | !endif |
---|
65 | |
---|
66 | !ifdef VERBOSE |
---|
67 | cmtmsg = 1 |
---|
68 | makecmd = 1 |
---|
69 | !endif |
---|
70 | |
---|
71 | # set the relevant Make variables |
---|
72 | !ifndef CMTMSGPREFIX |
---|
73 | CMTMSGPREFIX = ^#CMT---> |
---|
74 | #export CMTMSGPREFIX |
---|
75 | !endif |
---|
76 | |
---|
77 | !ifdef cmtmsg |
---|
78 | #export cmtmsg |
---|
79 | echo = @ echo "$(CMTMSGPREFIX)" |
---|
80 | !else |
---|
81 | #echo = @: |
---|
82 | echo = @rem |
---|
83 | !endif |
---|
84 | |
---|
85 | !ifdef makecmd |
---|
86 | silent = |
---|
87 | !else |
---|
88 | silent = @ |
---|
89 | #MAKEFLAGS += --silent |
---|
90 | !CMDSWITCHES +S |
---|
91 | !endif |
---|
92 | |
---|
93 | lex_echo = $(echo) building |
---|
94 | lex_silent = $(silent) |
---|
95 | yacc_echo = $(echo) building |
---|
96 | yacc_silent = $(silent) |
---|
97 | c_echo = $(echo) compiling |
---|
98 | c_silent = $(silent) |
---|
99 | cpp_echo = $(echo) compiling |
---|
100 | cpp_silent = $(silent) |
---|
101 | fortran_echo = $(echo) compiling |
---|
102 | fortran_silent = $(silent) |
---|
103 | java_echo = $(echo) building |
---|
104 | java_silent = $(silent) |
---|
105 | link_echo = $(echo) building |
---|
106 | link_silent = $(silent) |
---|
107 | lib_echo = $(echo) building |
---|
108 | lib_silent = $(silent) |
---|
109 | cleanup_echo = $(echo) removing |
---|
110 | cleanup_silent = $(silent) |
---|
111 | install_echo = $(echo) installing |
---|
112 | install_silent = $(silent) |
---|
113 | dep_echo = $(echo) generating dependencies |
---|
114 | dep_silent = $(silent) |
---|
115 | # |
---|
116 | # End of Controlling the verbosity of Make |
---|
117 | #--------------------------------------------- |
---|
118 | |
---|
119 | #!if defined (LEX_QUIET) |
---|
120 | #lex_silent = @ |
---|
121 | #lex_echo = @echo rebuilding |
---|
122 | #!else |
---|
123 | #lex_silent = |
---|
124 | #lex_echo = -@ $(echo) |
---|
125 | #!endif |
---|
126 | |
---|
127 | cmtexe = $(CMTROOT)\$(CMTBIN)\cmt.exe |
---|
128 | |
---|
129 | # add to the list of valid suffixes |
---|
130 | # so that nonterminal match-anything rules will not be considered |
---|
131 | .SUFFIXES: .nmake .in .stamp |
---|