[1] | 1 | |
---|
| 2 | cflags = $(CFLAGS) |
---|
| 3 | cppflags = $(CFLAGS) |
---|
| 4 | fflags = $(CFLAGS) |
---|
| 5 | |
---|
| 6 | cc = cl.exe |
---|
| 7 | ccomp = $(cc) /nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /Fo"$(bin)\\" /Fd"$(bin)\\" /FD /c |
---|
| 8 | 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 |
---|
| 9 | |
---|
| 10 | cpp = cl.exe |
---|
| 11 | cppcomp = $(cpp) /nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /c |
---|
| 12 | 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 |
---|
| 13 | |
---|
| 14 | ####for = f77 |
---|
| 15 | ####fcomp = $(for) -c -I$(inc) $(fflags) |
---|
| 16 | ####flink = $(for) |
---|
| 17 | |
---|
| 18 | ####lexflags = |
---|
| 19 | ####lex = lex $(lexflags) |
---|
| 20 | |
---|
| 21 | ####yaccflags = |
---|
| 22 | ####yacc = yacc $(yaccflags) |
---|
| 23 | |
---|
| 24 | ar = link.exe -lib |
---|
| 25 | ranlib = ranlib |
---|
| 26 | |
---|
| 27 | !if defined (tag) |
---|
| 28 | !else |
---|
| 29 | !if defined (CMTCONFIG) |
---|
| 30 | tag = $(CMTCONFIG) |
---|
| 31 | !else |
---|
| 32 | tag = VisualC |
---|
| 33 | !endif |
---|
| 34 | !endif |
---|
| 35 | |
---|
| 36 | cmt_extra_tags = $(CMTEXTRATAGS) |
---|
| 37 | tags = $(tag) -tag_add=$(cmt_extra_tags) |
---|
| 38 | |
---|
| 39 | src = ../src/ |
---|
| 40 | inc = ../src/ |
---|
| 41 | mgr = ../mgr/ |
---|
| 42 | cmt = ../cmt/ |
---|
| 43 | bin = ..\$(tag)\ |
---|
| 44 | shortbin = ..\$(tag) |
---|
| 45 | |
---|
| 46 | build_strategy = rebuild_makefiles |
---|
| 47 | build_dependencies = echo |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | #--------------------------------------------- |
---|
| 51 | # Controlling the verbosity of Make |
---|
| 52 | # |
---|
| 53 | |
---|
| 54 | !if defined (QUIET) |
---|
| 55 | LEX_QUIET = 1 |
---|
| 56 | YACC_QUIET = 1 |
---|
| 57 | C_QUIET = 1 |
---|
| 58 | CPP_QUIET = 1 |
---|
| 59 | FORTRAN_QUIET = 1 |
---|
| 60 | JAVA_QUIET = 1 |
---|
| 61 | LINK_QUIET = 1 |
---|
| 62 | LIB_QUIET = 1 |
---|
| 63 | CLEANUP_QUIET = 1 |
---|
| 64 | silent = @ |
---|
| 65 | echo = @echo |
---|
| 66 | !else |
---|
| 67 | silent = |
---|
| 68 | echo = echo |
---|
| 69 | !endif |
---|
| 70 | |
---|
| 71 | !if defined (LEX_QUIET) |
---|
| 72 | lex_silent = @ |
---|
| 73 | lex_echo = @echo rebuilding |
---|
| 74 | !else |
---|
| 75 | lex_silent = |
---|
| 76 | lex_echo = -@ $(echo) |
---|
| 77 | !endif |
---|
| 78 | |
---|
| 79 | !if defined (YACC_QUIET) |
---|
| 80 | yacc_silent = @ |
---|
| 81 | yacc_echo = @echo rebuilding |
---|
| 82 | !else |
---|
| 83 | yacc_silent = |
---|
| 84 | yacc_echo = -@ $(echo) |
---|
| 85 | !endif |
---|
| 86 | |
---|
| 87 | !if defined (C_QUIET) |
---|
| 88 | c_silent = @ |
---|
| 89 | c_echo = @echo rebuilding |
---|
| 90 | !else |
---|
| 91 | c_silent = |
---|
| 92 | c_echo = -@ $(echo) |
---|
| 93 | !endif |
---|
| 94 | |
---|
| 95 | !if defined (CPP_QUIET) |
---|
| 96 | cpp_silent = @ |
---|
| 97 | cpp_echo = @echo rebuilding |
---|
| 98 | !else |
---|
| 99 | cpp_silent = |
---|
| 100 | cpp_echo = -@ $(echo) |
---|
| 101 | !endif |
---|
| 102 | |
---|
| 103 | !if defined (FORTRAN_QUIET) |
---|
| 104 | fortran_silent = @ |
---|
| 105 | fortran_echo = @echo rebuilding |
---|
| 106 | !else |
---|
| 107 | fortran_silent = |
---|
| 108 | fortran_echo = -@ $(echo) |
---|
| 109 | !endif |
---|
| 110 | |
---|
| 111 | !if defined (JAVA_QUIET) |
---|
| 112 | java_silent = @ |
---|
| 113 | java_echo = @echo rebuilding |
---|
| 114 | !else |
---|
| 115 | java_silent = |
---|
| 116 | java_echo = -@ $(echo) |
---|
| 117 | !endif |
---|
| 118 | |
---|
| 119 | !if defined (LINK_QUIET) |
---|
| 120 | link_silent = @ |
---|
| 121 | link_echo = @echo rebuilding |
---|
| 122 | !else |
---|
| 123 | link_silent = |
---|
| 124 | link_echo = -@ $(echo) |
---|
| 125 | !endif |
---|
| 126 | |
---|
| 127 | !if defined (LIB_QUIET) |
---|
| 128 | lib_silent = @ |
---|
| 129 | lib_echo = @echo rebuilding |
---|
| 130 | !else |
---|
| 131 | lib_silent = |
---|
| 132 | lib_echo = -@ $(echo) |
---|
| 133 | !endif |
---|
| 134 | |
---|
| 135 | !if defined (CLEANUP_QUIET) |
---|
| 136 | cleanup_silent = @ |
---|
| 137 | cleanup_echo = @echo removing |
---|
| 138 | !else |
---|
| 139 | cleanup_silent = |
---|
| 140 | cleanup_echo = @ $(echo) |
---|
| 141 | !endif |
---|
| 142 | |
---|
| 143 | cmtexe = $(CMTROOT)\$(CMTBIN)\cmt.exe |
---|
| 144 | |
---|
| 145 | !if exist ("$(cmtexe)") |
---|
| 146 | !if [$(cmtexe) -quiet show macro package >package.nmake] == 0 |
---|
| 147 | !endif |
---|
| 148 | !endif |
---|
| 149 | |
---|
| 150 | !if exist ("$(cmtexe)") |
---|
| 151 | !if [cmt -quiet build tag_makefile -tag=$(tags) >tag.nmake] == 0 |
---|
| 152 | !endif |
---|
| 153 | !endif |
---|
| 154 | |
---|
| 155 | !if exist ("$(cmtexe)") |
---|
| 156 | !if [cmt -quiet -tag=$(tags) filter tag.nmake $(tag).nmake] == 0 |
---|
| 157 | !endif |
---|
| 158 | !endif |
---|
| 159 | |
---|
| 160 | !if exist ("$(cmtexe)") |
---|
| 161 | !if [cmt -quiet -tag=$(tags) show uses >uses.log] == 0 |
---|
| 162 | !endif |
---|
| 163 | !endif |
---|
| 164 | |
---|
| 165 | !include package.nmake |
---|
| 166 | |
---|
| 167 | !include $(tag).nmake |
---|
| 168 | |
---|
| 169 | all :: checkuses |
---|
| 170 | |
---|
| 171 | checkuses :: |
---|
| 172 | !if exist ("$(cmtexe)") |
---|
| 173 | @$(cmtexe) check configuration |
---|
| 174 | !endif |
---|
| 175 | @echo "" >checkuses |
---|
| 176 | |
---|
| 177 | dirs :: checkuses |
---|
| 178 | @if not exist requirements echo "No requirements file" |
---|
| 179 | @if not exist $(bin) mkdir $(bin) |
---|
| 180 | @del checkuses |
---|
| 181 | |
---|
| 182 | javadirs :: checkuses |
---|
| 183 | @if not exist requirements echo "No requirements file" |
---|
| 184 | @if not exist $(javabin) mkdir $(javabin) |
---|
| 185 | @del checkuses |
---|
| 186 | |
---|
| 187 | config :: |
---|
| 188 | |
---|
| 189 | configclean :: |
---|
| 190 | del *nmake* setup.* cleanup.* |
---|
| 191 | |
---|
| 192 | help :: dirs |
---|
| 193 | @echo -------------------------------------------------------------------------- |
---|
| 194 | @echo You may select one of the following make targets : |
---|
| 195 | @echo |
---|
| 196 | @echo help : this help |
---|
| 197 | @echo all : rebuild everything according to the $$(constituents) macro |
---|
| 198 | @echo (this is the default target) |
---|
| 199 | @echo clean : remove everything that can be rebuilt |
---|
| 200 | @echo configclean : remove configuration files (*.nmake) |
---|
| 201 | @echo |
---|
| 202 | @echo check : |
---|
| 203 | @echo run all applications defined with the -check option |
---|
| 204 | @echo |
---|
| 205 | @echo everywhere [target=...] : |
---|
| 206 | @echo o Rebuild on all plateforms specified in the $$(everywhere) macro |
---|
| 207 | @echo o Use "cmt show macro everywhere -tag=<site>" to check it |
---|
| 208 | @echo o The "target" option permits to transmit a target to the remote site |
---|
| 209 | |
---|
| 210 | always :: |
---|
| 211 | |
---|
| 212 | |
---|