[2] | 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 | |
---|
[442] | 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 = |
---|
[441] | 53 | endif |
---|
| 54 | |
---|
| 55 | ifdef ECHO |
---|
[442] | 56 | cmtmsg = |
---|
| 57 | makecmd = 1 |
---|
[441] | 58 | endif |
---|
| 59 | |
---|
[442] | 60 | ifdef QUIET |
---|
| 61 | cmtmsg = 1 |
---|
| 62 | makecmd = |
---|
[441] | 63 | endif |
---|
| 64 | |
---|
[442] | 65 | ifdef VERBOSE |
---|
| 66 | cmtmsg = 1 |
---|
| 67 | makecmd = 1 |
---|
[441] | 68 | endif |
---|
| 69 | |
---|
[442] | 70 | # set the relevant Make variables |
---|
[446] | 71 | ifndef CMTMSGPREFIX |
---|
| 72 | CMTMSGPREFIX = \#CMT---> |
---|
| 73 | export CMTMSGPREFIX |
---|
[442] | 74 | endif |
---|
| 75 | |
---|
| 76 | ifdef cmtmsg |
---|
| 77 | export cmtmsg |
---|
[535] | 78 | echo = @echo "$(CMTMSGPREFIX)" |
---|
[2] | 79 | else |
---|
[442] | 80 | echo = @: |
---|
[2] | 81 | endif |
---|
| 82 | |
---|
[442] | 83 | ifdef makecmd |
---|
| 84 | export makecmd |
---|
| 85 | silent = |
---|
[556] | 86 | MAKEFLAGS += --no-print-directory |
---|
[2] | 87 | else |
---|
[442] | 88 | silent = @ |
---|
| 89 | MAKEFLAGS += --silent |
---|
[2] | 90 | endif |
---|
| 91 | |
---|
[442] | 92 | lex_echo = $(echo) building |
---|
| 93 | lex_silent = $(silent) |
---|
[441] | 94 | yacc_echo = $(echo) building |
---|
[442] | 95 | yacc_silent = $(silent) |
---|
[441] | 96 | c_echo = $(echo) compiling |
---|
[442] | 97 | c_silent = $(silent) |
---|
[441] | 98 | cpp_echo = $(echo) compiling |
---|
[442] | 99 | cpp_silent = $(silent) |
---|
[441] | 100 | fortran_echo = $(echo) compiling |
---|
[442] | 101 | fortran_silent = $(silent) |
---|
[441] | 102 | java_echo = $(echo) building |
---|
[442] | 103 | java_silent = $(silent) |
---|
[441] | 104 | link_echo = $(echo) building |
---|
[442] | 105 | link_silent = $(silent) |
---|
[441] | 106 | lib_echo = $(echo) building |
---|
[442] | 107 | lib_silent = $(silent) |
---|
[441] | 108 | cleanup_echo = $(echo) removing |
---|
[442] | 109 | cleanup_silent = $(silent) |
---|
[441] | 110 | install_echo = $(echo) installing |
---|
[442] | 111 | install_silent = $(silent) |
---|
[483] | 112 | dep_echo = $(echo) generating dependencies |
---|
| 113 | dep_silent = $(silent) |
---|
[442] | 114 | # |
---|
| 115 | # End of Controlling the verbosity of Make |
---|
| 116 | #--------------------------------------------- |
---|
[441] | 117 | |
---|
[2] | 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 | # |
---|
[483] | 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 |
---|
[588] | 137 | .SUFFIXES: .make .in .stamp .cxx |
---|