source: CMT/HEAD/src/Makefile.core @ 693

Last change on this file since 693 was 663, checked in by rybkin, 10 years ago

See C.L. 522

  • Property svn:eol-style set to native
File size: 2.6 KB
RevLine 
[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
8cflags    = $(CFLAGS)
9cppflags  = $(CFLAGS)
10fflags    = $(CFLAGS)
11
12cc        = cc
13ccomp     = $(cc)  -c -I$(inc) $(cflags)
14clink     = $(cc)
15
16cpp       = g++
17cppcomp   = $(cpp) -c -I$(inc) $(cppflags)
18cpplink   = $(cpp)
19
20for       = f77
21fcomp     = $(for) -c -I$(inc) $(fflags)
22flink     = $(for)
23
24lexflags  =
25lex       = lex $(lexflags)
26
27yaccflags =
28yacc      = yacc $(yaccflags)
29
30mkdir     = mkdir
31
32comp      = $(ccomp)
33link      = $(cc)
34
35ar        = ar -crl
36ranlib    = ranlib
37
38cmtexe = $(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
47cmtmsg = 1
48makecmd =
49
50# parse all the switches
51ifdef SILENT
52cmtmsg =
53makecmd =
[441]54endif
55
56ifdef ECHO
[442]57cmtmsg =
58makecmd = 1
[441]59endif
60
[442]61ifdef QUIET
62cmtmsg = 1
63makecmd =
[441]64endif
65
[442]66ifdef VERBOSE
67cmtmsg = 1
68makecmd = 1
[441]69endif
70
[442]71# set the relevant Make variables
[446]72ifndef CMTMSGPREFIX
73CMTMSGPREFIX = \#CMT--->
74export CMTMSGPREFIX
[442]75endif
76
77ifdef cmtmsg
78export cmtmsg
[535]79echo = @echo "$(CMTMSGPREFIX)"
[2]80else
[442]81echo = @:
[2]82endif
83
[442]84ifdef makecmd
85export makecmd
86silent =
[616]87#MAKEFLAGS += --no-print-directory
[2]88else
[442]89silent = @
[616]90#MAKEFLAGS += --silent
[2]91endif
92
[442]93lex_echo = $(echo) building
94lex_silent = $(silent)
[441]95yacc_echo = $(echo) building
[442]96yacc_silent = $(silent)
[441]97c_echo = $(echo) compiling
[442]98c_silent = $(silent)
[441]99cpp_echo = $(echo) compiling
[442]100cpp_silent = $(silent)
[441]101fortran_echo = $(echo) compiling
[442]102fortran_silent = $(silent)
[441]103java_echo = $(echo) building
[442]104java_silent = $(silent)
[441]105link_echo = $(echo) building
[442]106link_silent = $(silent)
[441]107lib_echo = $(echo) building
[442]108lib_silent = $(silent)
[441]109cleanup_echo = $(echo) removing
[442]110cleanup_silent = $(silent)
[441]111install_echo = $(echo) installing
[442]112install_silent = $(silent)
[483]113dep_echo = $(echo) generating dependencies
114dep_silent = $(silent)
[442]115#
116# End of Controlling the verbosity of Make
117#---------------------------------------------
[441]118
[2]119SHELL     = /bin/sh
120
121src       = ../src/
122inc       = ../src/
123mgr       = ../mgr/
124cmt       = ../cmt/
125bin       = ../$(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
Note: See TracBrowser for help on using the repository browser.