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

Last change on this file since 616 was 616, checked in by rybkin, 12 years ago

See C.L. 491

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