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