source: trunk/etc/src/MakefileOLD.20070913

Last change on this file was 503, checked in by lnalod, 13 years ago

CeCILL license.

File size: 3.1 KB
Line 
1#Copyright or © or Copr. Charles SORROR (2011/01/13)
2#
3#mail of the author: cslod@locean-ipsl.upmc.fr
4#
5#This software is a framework for variational data assimilation in
6#numerical models.
7#
8#This software is governed by the CeCILL license under French law and
9#abiding by the rules of distribution of free software.  You can  use,
10#modify and/ or redistribute the software under the terms of the CeCILL
11#license as circulated by CEA, CNRS and INRIA at the following URL
12#"http://www.cecill.info".
13#
14#As a counterpart to the access to the source code and  rights to copy,
15#modify and redistribute granted by the license, users are provided only
16#with a limited warranty  and the software's author,  the holder of the
17#economic rights,  and the successive licensors  have only  limited
18#liability.
19#
20#In this respect, the user's attention is drawn to the risks associated
21#with loading,  using,  modifying and/or developing or reproducing the
22#software by the user in light of its specific status of free software,
23#that may mean  that it is complicated to manipulate,  and  that  also
24#therefore means  that it is reserved for developers  and  experienced
25#professionals having in-depth computer knowledge. Users are therefore
26#encouraged to load and test the software's suitability as regards their
27#requirements in conditions enabling the security of their systems and/or
28#data to be ensured and,  more generally, to use and operate it in the
29#same conditions as regards security.
30#
31#The fact that you are presently reading this means that you have had
32#knowledge of the CeCILL license and that you accept its terms.
33
34# ------------------------------------------------------------
35# Compilation Specification File.   Use GNU make !!
36# ------------------------------------------------------------
37YCTOOL=yf2m yrms ylmodf yrcmt Ydf1
38# ------------------------------------------------------------
39CP=cp
40# ------------------------------------------------------------
41CC=gcc
42CFLAGS=-O0 -lm -g -Wall
43CPP=g++
44CPPFLAGS=-O0 -lm -g -Wall
45
46all: $(YCTOOL)
47
48install: all
49        -@echo " "
50        -@echo " --> Installation de Yao tools:"
51        -@echo " --> verification/creation du repertoire d-installation ..."
52        -@case `uname -s` in \
53             Linux) \
54                case `uname -m` in \
55                        x86_64) \
56                                mkdir ../bin/x86_64 ;; \
57                        *) \
58                                mkdir ../bin/lnx86 ;; \
59                esac;; \
60             SunOS) \
61                 mkdir ../bin/solaris ;; \
62             Darwin) \
63                 mkdir ../bin/darwin ;; \
64             *) echo "UNKNOWN LOCAL MACHINE TYPE ($(ULOCAL))";; \
65        esac
66        -@echo " --> copie les outils compiles ..."
67        @case `uname -s` in \
68             Linux) \
69                case `uname -m` in \
70                        x86_64) \
71                                echo " --> Linux 64 bits INSTALL ..."; \
72                                $(CP) $(YCTOOL) ../bin/x86_64/ ;; \
73                        *) \
74                                echo " --> Linux 32 bits INSTALL ..."; \
75                                 $(CP) $(YCTOOL) ../bin/lnx86/ ;; \
76                esac;; \
77             SunOS) \
78                 echo " --> Sun Solaris INSTALL ..."; \
79                 $(CP) $(YCTOOL) ../bin/solaris/ ;; \
80             Darwin) \
81                 echo " --> MacOS X Darwin INSTALL ..."; \
82                 $(CP) $(YCTOOL) ../bin/darwin/ ;; \
83             *) echo "UNKNOWN LOCAL MACHINE TYPE ($(ULOCAL))";; \
84        esac
85
86clean:
87        -rm -f *.o *.a $(YCTOOL)
Note: See TracBrowser for help on using the repository browser.