#/*-----------------------------------------------------------------*/
#/*! 
#  \file Makefile.mingw
#  \brief Makefile for mingw (windows)
#  \author  M. Gastineau 
#           Astronomie et Systemes Dynamiques, IMCCE, CNRS, Observatoire de Paris. 
#
#   Copyright, 2008-2019, CNRS
#   email of the author : Mickael.Gastineau@obspm.fr
#  
#*/
#/*-----------------------------------------------------------------*/
#
#/*-----------------------------------------------------------------*/
#/* License  of this file :
#  This file is "triple-licensed", you have to choose one  of the three licenses 
#  below to apply on this file.
#  
#     CeCILL-C
#     	The CeCILL-C license is close to the GNU LGPL.
#     	( http://www.cecill.info/licences/Licence_CeCILL-C_V1-en.html )
#  
#  or CeCILL-B
#        The CeCILL-B license is close to the BSD.
#        (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt)
#  
#  or CeCILL v2.1
#       The CeCILL license is compatible with the GNU GPL.
#       ( http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html )
#  
# 
# This library is governed by the CeCILL-C, CeCILL-B or the CeCILL license under 
# French law and abiding by the rules of distribution of free software.  
# You can  use, modify and/ or redistribute the software under the terms 
# of the CeCILL-C,CeCILL-B or CeCILL license as circulated by CEA, CNRS and INRIA  
# at the following URL "http://www.cecill.info". 
#
# As a counterpart to the access to the source code and  rights to copy,
# modify and redistribute granted by the license, users are provided only
# with a limited warranty  and the software's author,  the holder of the
# economic rights,  and the successive licensors  have only  limited
# liability. 
#
# In this respect, the user's attention is drawn to the risks associated
# with loading,  using,  modifying and/or developing or reproducing the
# software by the user in light of its specific status of free software,
# that may mean  that it is complicated to manipulate,  and  that  also
# therefore means  that it is reserved for developers  and  experienced
# professionals having in-depth computer knowledge. Users are therefore
# encouraged to load and test the software's suitability as regards their
# requirements in conditions enabling the security of their systems and/or 
# data to be ensured and,  more generally, to use and operate it in the 
# same conditions as regards security. 
#
# The fact that you are presently reading this means that you have had
# knowledge of the CeCILL-C,CeCILL-B or CeCILL license and that you accept its terms.
# */
# /*-----------------------------------------------------------------*/

#
CALCEPHLIBS= -L../src -lcalceph
CALCEPHINCLUDE= -I../src

CC=$(CCC)
CFLAGS = $(CCFLAGS) $(CALCEPHINCLUDE) -DHAVE_CONFIG_H=1
FC=$(FFC)
FFLAGS=$(FFFLAGS) $(CALCEPHINCLUDE)
FLINKFLAGS = $(FFLINKFLAGS) $(CALCEPHINCLUDE)

CP=cp.exe
DOTPATH=./
ifeq (,$(shell where cp.exe))
CP=copy
DOTPATH=
endif
RM=rm.exe -f
ifeq (,$(shell where rm.exe))
RM=del
endif

ifeq ("$(ENABLEF2003)", "1")
F2003CHECK=f2003check
F2003EXE=f2003exe
else
F2003CHECK=
F2003EXE=
endif

ifeq ("$(ENABLEF77)", "1")
F77CHECK=f77check
F77EXE= f77exe
else
F77CHECK=
F77EXE=
endif

EXTOBJ=o

all : exec $(F2003EXE)  $(F77EXE)

check  : all checkc $(F2003CHECK)  $(F77CHECK) 
	@echo --------------------------------------
	@echo  All tests passed 
	@echo --------------------------------------



EXECUTABLE1 = csopenfail.exe
CPPOBJECTS1 = csopenfail.$(EXTOBJ) openfiles.$(EXTOBJ)             

EXECUTABLE2 = cmopenfail.exe
CPPOBJECTS2 = cmopenfail.$(EXTOBJ) openfiles.$(EXTOBJ)            

EXECUTABLE3 = csopen.exe
CPPOBJECTS3 = csopen.$(EXTOBJ) openfiles.$(EXTOBJ)         

EXECUTABLE4 = cmopen.exe
CPPOBJECTS4 = cmopen.$(EXTOBJ) openfiles.$(EXTOBJ)              

EXECUTABLE5 = cmgetconstant.exe
CPPOBJECTS5 = cmgetconstant.$(EXTOBJ) openfiles.$(EXTOBJ)              

EXECUTABLE6 = csgetconstant.exe
CPPOBJECTS6 = csgetconstant.$(EXTOBJ) openfiles.$(EXTOBJ)          

EXECUTABLE7 = cscheck.exe
CPPOBJECTS7 = cscheck.$(EXTOBJ) openfiles.$(EXTOBJ)             

EXECUTABLE8 = csgetconstantindex.exe
CPPOBJECTS8 = csgetconstantindex.$(EXTOBJ) openfiles.$(EXTOBJ)          

EXECUTABLE9 = cmgetconstantindex.exe
CPPOBJECTS9 = cmgetconstantindex.$(EXTOBJ) openfiles.$(EXTOBJ)      

EXECUTABLE10 = cmcomputeunitfail.exe
CPPOBJECTS10 = cmcomputeunitfail.$(EXTOBJ) openfiles.$(EXTOBJ)      

EXECUTABLE11 = cmcomputeunit.exe
CPPOBJECTS11 = cmcomputeunit.$(EXTOBJ) openfiles.$(EXTOBJ)      

EXECUTABLE12 = cmcheckspktt.exe
CPPOBJECTS12 = cmcheckspktt.$(EXTOBJ) openfiles.$(EXTOBJ)         

EXECUTABLE13 = cmcomputeunit_naifid.exe
CPPOBJECTS13 = cmcomputeunit_naifid.$(EXTOBJ) openfiles.$(EXTOBJ)      

EXECUTABLE14 = cmorientunitfail.exe
CPPOBJECTS14 = cmorientunitfail.$(EXTOBJ) openfiles.$(EXTOBJ)      

EXECUTABLE15 = tfmatrix.exe
CPPOBJECTS15 = tfmatrix.$(EXTOBJ) openfiles.$(EXTOBJ)      

EXECUTABLE16 = matrixfail.exe
CPPOBJECTS16 = matrixfail.$(EXTOBJ) openfiles.$(EXTOBJ)      

EXECUTABLE17 = cmcomputeunitfail2.exe
CPPOBJECTS17 = cmcomputeunitfail2.$(EXTOBJ) openfiles.$(EXTOBJ)      

EXECUTABLE18 = cmcomputeunit_seg12.exe
CPPOBJECTS18 = cmcomputeunit_seg12.$(EXTOBJ) openfiles.$(EXTOBJ) cmcomputeunit_hermite.$(EXTOBJ)      

EXECUTABLE19 = cmcomputeunit_seg13.exe
CPPOBJECTS19 = cmcomputeunit_seg13.$(EXTOBJ) openfiles.$(EXTOBJ) cmcomputeunit_hermite.$(EXTOBJ)      

EXECUTABLE20 = cmcomputeunit_frame.exe
CPPOBJECTS20 = cmcomputeunit_frame.$(EXTOBJ) openfiles.$(EXTOBJ) cmcomputeunit_hermite.$(EXTOBJ)      

EXECUTABLE21 = cversion.exe
CPPOBJECTS21 = cversion.$(EXTOBJ)      

EXECUTABLE22 = cmorientunitfailspk.exe
CPPOBJECTS22 = cmorientunitfailspk.$(EXTOBJ) openfiles.$(EXTOBJ)

EXECUTABLE23 = cmcomputeorder01.exe
CPPOBJECTS23 = cmcomputeorder01.$(EXTOBJ) openfiles.$(EXTOBJ)

EXECUTABLE24 = cmcomputeorder23.exe
CPPOBJECTS24 = cmcomputeorder23.$(EXTOBJ) openfiles.$(EXTOBJ) numericalderivative.$(EXTOBJ)

EXECUTABLE25 = crotangmomunit.exe
CPPOBJECTS25 = crotangmomunit.$(EXTOBJ) openfiles.$(EXTOBJ)

EXECUTABLE26 = crotangmomorder0.exe
CPPOBJECTS26 = crotangmomorder0.$(EXTOBJ) openfiles.$(EXTOBJ)

EXECUTABLE27 = crotangmomorder123.exe
CPPOBJECTS27 = crotangmomorder123.$(EXTOBJ) openfiles.$(EXTOBJ) numericalderivative.$(EXTOBJ)

EXECUTABLE28 = crotangmomunitfail.exe
CPPOBJECTS28 = crotangmomunitfail.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE29 = crotangmomunitfail2.exe
CPPOBJECTS29 = crotangmomunitfail2.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE30 = cmtimescale.exe
CPPOBJECTS30 = cmtimescale.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE31 = cmtimespan.exe
CPPOBJECTS31 = cmtimespan.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE32 = cgetpositionrecordindex.exe
CPPOBJECTS32 = cgetpositionrecordindex.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE33 = cgetorientrecordindex.exe
CPPOBJECTS33 = cgetorientrecordindex.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE34 = cstimescale.exe
CPPOBJECTS34 = cstimescale.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE35 = cstimespan.exe
CPPOBJECTS35 = cstimespan.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE36 = cmorientunitfail_11025.exe
CPPOBJECTS36 = cmorientunitfail_11025.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE37 = cmorientunitfail_11612.exe
CPPOBJECTS37 = cmorientunitfail_11612.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE38 = cmgetconstant_11627.exe
CPPOBJECTS38 = cmgetconstant_11627.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE39 = cmopenfail_11628.exe
CPPOBJECTS39 = cmopenfail_11628.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE40 = cmgetconstantvd.exe
CPPOBJECTS40 = cmgetconstantvd.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE41 = cmgetconstantvs.exe
CPPOBJECTS41 = cmgetconstantvs.$(EXTOBJ) openfiles.$(EXTOBJ) 

EXECUTABLE42 = cmcomputeunit_seg1.exe
CPPOBJECTS42 = cmcomputeunit_seg1.$(EXTOBJ) openfiles.$(EXTOBJ) cmcomputeunit_hermite.$(EXTOBJ)
 
EXECUTABLE43 = cmcomputeunit_seg21.exe
CPPOBJECTS43 = cmcomputeunit_seg21.$(EXTOBJ) openfiles.$(EXTOBJ) cmcomputeunit_hermite.$(EXTOBJ)

EXECUTABLE44 = csfileversionstr.exe
CPPOBJECTS44 = csfileversionstr.$(EXTOBJ) openfiles.$(EXTOBJ)

EXECUTABLE45 = cmcomputeunit_seg8.exe
CPPOBJECTS45 = cmcomputeunit_seg8.$(EXTOBJ) openfiles.$(EXTOBJ) cmcomputeunit_hermite.$(EXTOBJ)

EXECUTABLE46 = cmcomputeunit_seg9.exe
CPPOBJECTS46 = cmcomputeunit_seg9.$(EXTOBJ) openfiles.$(EXTOBJ) cmcomputeunit_hermite.$(EXTOBJ)

EXECUTABLE47 = cmparallelcheck.exe
CPPOBJECTS47 = cmparallelcheck.$(EXTOBJ) openfiles.$(EXTOBJ) cmcomputeunit_hermite.$(EXTOBJ)

EXECUTABLE48 = cmpolerade.exe
CPPOBJECTS48 = cmpolerade.$(EXTOBJ) openfiles.$(EXTOBJ)


F2003EXECUTABLE1 = f2003sopenfail.exe
F2003OBJECTS1 = f2003sopenfail.$(EXTOBJ)              

F2003EXECUTABLE2 = f2003mopenfail.exe
F2003OBJECTS2 = f2003mopenfail.$(EXTOBJ)              

F2003EXECUTABLE3 = f2003sopen.exe
F2003OBJECTS3 = f2003sopen.$(EXTOBJ)              

F2003EXECUTABLE4 = f2003mopen.exe
F2003OBJECTS4 = f2003mopen.$(EXTOBJ)              

F2003EXECUTABLE5 = f2003sgetconstant.exe
F2003OBJECTS5 = f2003sgetconstant.$(EXTOBJ)              

F2003EXECUTABLE6 = f2003mgetconstant.exe
F2003OBJECTS6 = f2003mgetconstant.$(EXTOBJ)              

F2003EXECUTABLE7 = f2003mcheck.exe
F2003OBJECTS7 = f2003mcheck.$(EXTOBJ)              

F2003EXECUTABLE8 = f2003sgetconstantindex.exe
F2003OBJECTS8 = f2003sgetconstantindex.$(EXTOBJ)          

F2003EXECUTABLE9 = f2003mgetconstantindex.exe
F2003OBJECTS9 = f2003mgetconstantindex.$(EXTOBJ)          

F2003EXECUTABLE10 = f2003mcomputeunit_naifid.exe
F2003OBJECTS10 = f2003mcomputeunit_naifid.$(EXTOBJ)          

F2003EXECUTABLE11 = f2003mcomputeunit.exe
F2003OBJECTS11 = f2003mcomputeunit.$(EXTOBJ)          

F2003EXECUTABLE12 = f2003version.exe
F2003OBJECTS12 = f2003version.$(EXTOBJ)          

F2003EXECUTABLE13 = f2003mcomputeorder.exe
F2003OBJECTS13 = f2003mcomputeorder.$(EXTOBJ)          

F2003EXECUTABLE14 = f2003rotangmomunit.exe
F2003OBJECTS14 = f2003rotangmomunit.$(EXTOBJ)          

F2003EXECUTABLE15 = f2003rotangmomorder.exe
F2003OBJECTS15 = f2003rotangmomorder.$(EXTOBJ)          

F2003EXECUTABLE16 = f2003mtimescale.exe
F2003OBJECTS16 = f2003mtimescale.$(EXTOBJ)          

F2003EXECUTABLE17 = f2003mtimespan.exe
F2003OBJECTS17 = f2003mtimespan.$(EXTOBJ)          

F2003EXECUTABLE18 = f2003getpositionrecordindex.exe
F2003OBJECTS18 = f2003getpositionrecordindex.$(EXTOBJ)          

F2003EXECUTABLE19 = f2003getorientrecordindex.exe
F2003OBJECTS19 = f2003getorientrecordindex.$(EXTOBJ)          

F2003EXECUTABLE20 = f2003stimescale.exe
F2003OBJECTS20 = f2003stimescale.$(EXTOBJ)          

F2003EXECUTABLE21 = f2003stimespan.exe
F2003OBJECTS21 = f2003stimespan.$(EXTOBJ)          

F2003EXECUTABLE22 = f2003mgetconstantvd.exe
F2003OBJECTS22 = f2003mgetconstantvd.$(EXTOBJ)          

F2003EXECUTABLE23 = f2003mgetconstantvs.exe
F2003OBJECTS23 = f2003mgetconstantvs.$(EXTOBJ)          

F2003EXECUTABLE24 = f2003mfileversion.exe
F2003OBJECTS24 = f2003mfileversion.$(EXTOBJ)          

F2003EXECUTABLE25 = f2003sfileversion.exe
F2003OBJECTS25 = f2003sfileversion.$(EXTOBJ)          

F2003EXECUTABLE26 = f2003misthreadsafe.exe
F2003OBJECTS26 = f2003misthreadsafe.$(EXTOBJ)

F77EXECUTABLE1 = f77sopenfail.exe
F77OBJECTS1 = f77sopenfail.$(EXTOBJ)              

F77EXECUTABLE2 = f77mopenfail.exe
F77OBJECTS2 = f77mopenfail.$(EXTOBJ)              

F77EXECUTABLE3 = f77sopen.exe
F77OBJECTS3 = f77sopen.$(EXTOBJ)              

F77EXECUTABLE4 = f77mopen.exe
F77OBJECTS4 = f77mopen.$(EXTOBJ)              

F77EXECUTABLE5 = f77sgetconstant.exe
F77OBJECTS5 = f77sgetconstant.$(EXTOBJ)              

F77EXECUTABLE6 = f77mgetconstant.exe
F77OBJECTS6 = f77mgetconstant.$(EXTOBJ)              

F77EXECUTABLE7 = f77mcheck.exe
F77OBJECTS7 = f77mcheck.$(EXTOBJ)  

F77EXECUTABLE8 = f77sgetconstantindex.exe
F77OBJECTS8 = f77sgetconstantindex.$(EXTOBJ)          

F77EXECUTABLE9 = f77mgetconstantindex.exe
F77OBJECTS9 = f77mgetconstantindex.$(EXTOBJ)          

F77EXECUTABLE10 = f77mcomputeunit.exe
F77OBJECTS10 = f77mcomputeunit.$(EXTOBJ)          

F77EXECUTABLE11 = f77mcomputeunit_naifid.exe
F77OBJECTS11 = f77mcomputeunit_naifid.$(EXTOBJ)          

F77EXECUTABLE12 = f77version.exe
F77OBJECTS12 = f77version.$(EXTOBJ)          

F77EXECUTABLE13 = f77mcomputeorder.exe
F77OBJECTS13 = f77mcomputeorder.$(EXTOBJ)          

F77EXECUTABLE14 = f77rotangmomunit.exe
F77OBJECTS14 = f77rotangmomunit.$(EXTOBJ)          

F77EXECUTABLE15 = f77rotangmomorder.exe
F77OBJECTS15 = f77rotangmomorder.$(EXTOBJ)          

F77EXECUTABLE16 = f77mtimescale.exe
F77OBJECTS16 = f77mtimescale.$(EXTOBJ)          

F77EXECUTABLE17 = f77mtimespan.exe
F77OBJECTS17 = f77mtimespan.$(EXTOBJ)          

F77EXECUTABLE18 = f77getpositionrecordindex.exe
F77OBJECTS18 = f77getpositionrecordindex.$(EXTOBJ)          

F77EXECUTABLE19 = f77getorientrecordindex.exe
F77OBJECTS19 = f77getorientrecordindex.$(EXTOBJ)          

F77EXECUTABLE20 = f77stimescale.exe
F77OBJECTS20 = f77stimescale.$(EXTOBJ)          

F77EXECUTABLE21 = f77stimespan.exe
F77OBJECTS21 = f77stimespan.$(EXTOBJ)          

F77EXECUTABLE22 = f77mgetconstantvd.exe
F77OBJECTS22 = f77mgetconstantvd.$(EXTOBJ)          

F77EXECUTABLE23 = f77mgetconstantvs.exe
F77OBJECTS23 = f77mgetconstantvs.$(EXTOBJ)          

F77EXECUTABLE24 = f77mfileversion.exe
F77OBJECTS24 = f77mfileversion.$(EXTOBJ)          

F77EXECUTABLE25 = f77sfileversion.exe
F77OBJECTS25 = f77sfileversion.$(EXTOBJ)          

F77EXECUTABLE26 = f77misthreadsafe.exe
F77OBJECTS26 = f77misthreadsafe.$(EXTOBJ)          

#
# Link target: automatically builds its object dependencies before
# executing its link command.
#

$(EXECUTABLE1) : $(CPPOBJECTS1) 
	$(CC) -o $@ $(CPPOBJECTS1) $(CALCEPHLIBS) 

$(EXECUTABLE2) : $(CPPOBJECTS2) 
	$(CC) -o $@ $(CPPOBJECTS2) $(CALCEPHLIBS) 

$(EXECUTABLE3) : $(CPPOBJECTS3) 
	$(CC) -o $@ $(CPPOBJECTS3) $(CALCEPHLIBS) 

$(EXECUTABLE4) : $(CPPOBJECTS4) 
	$(CC) -o $@ $(CPPOBJECTS4) $(CALCEPHLIBS) 

$(EXECUTABLE5) : $(CPPOBJECTS5) 
	$(CC) -o $@ $(CPPOBJECTS5) $(CALCEPHLIBS) 

$(EXECUTABLE6) : $(CPPOBJECTS6) 
	$(CC) -o $@ $(CPPOBJECTS6) $(CALCEPHLIBS) 

$(EXECUTABLE7) : $(CPPOBJECTS7) 
	$(CC) -o $@ $(CPPOBJECTS7) $(CALCEPHLIBS) 

$(EXECUTABLE8) : $(CPPOBJECTS8) 
	$(CC) -o $@ $(CPPOBJECTS8) $(CALCEPHLIBS) 

$(EXECUTABLE9) : $(CPPOBJECTS9) 
	$(CC) -o $@ $(CPPOBJECTS9) $(CALCEPHLIBS) 

$(EXECUTABLE10) : $(CPPOBJECTS10) 
	$(CC) -o $@ $(CPPOBJECTS10) $(CALCEPHLIBS) 

$(EXECUTABLE11) : $(CPPOBJECTS11) 
	$(CC) -o $@ $(CPPOBJECTS11) $(CALCEPHLIBS) 

$(EXECUTABLE12) : $(CPPOBJECTS12) 
	$(CC) -o $@ $(CPPOBJECTS12) $(CALCEPHLIBS) 

$(EXECUTABLE13) : $(CPPOBJECTS13) 
	$(CC) -o $@ $(CPPOBJECTS13) $(CALCEPHLIBS) 

$(EXECUTABLE14) : $(CPPOBJECTS14) 
	$(CC) -o $@ $(CPPOBJECTS14) $(CALCEPHLIBS) 

$(EXECUTABLE15) : $(CPPOBJECTS15) 
	$(CC) -o $@ $(CPPOBJECTS15) $(CALCEPHLIBS) 

$(EXECUTABLE16) : $(CPPOBJECTS16) 
	$(CC) -o $@ $(CPPOBJECTS16) $(CALCEPHLIBS) 

$(EXECUTABLE17) : $(CPPOBJECTS17) 
	$(CC) -o $@ $(CPPOBJECTS17) $(CALCEPHLIBS) 

$(EXECUTABLE18) : $(CPPOBJECTS18) 
	$(CC) -o $@ $(CPPOBJECTS18) $(CALCEPHLIBS) 

$(EXECUTABLE19) : $(CPPOBJECTS19) 
	$(CC) -o $@ $(CPPOBJECTS19) $(CALCEPHLIBS) 

$(EXECUTABLE20) : $(CPPOBJECTS20) 
	$(CC) -o $@ $(CPPOBJECTS20) $(CALCEPHLIBS) 

$(EXECUTABLE21) : $(CPPOBJECTS21) 
	$(CC) -o $@ $(CPPOBJECTS21) $(CALCEPHLIBS) 

$(EXECUTABLE22) : $(CPPOBJECTS22) 
	$(CC) -o $@ $(CPPOBJECTS22) $(CALCEPHLIBS) 

$(EXECUTABLE23) : $(CPPOBJECTS23) 
	$(CC) -o $@ $(CPPOBJECTS23) $(CALCEPHLIBS) 

$(EXECUTABLE24) : $(CPPOBJECTS24) 
	$(CC) -o $@ $(CPPOBJECTS24) $(CALCEPHLIBS) 

$(EXECUTABLE25) : $(CPPOBJECTS25) 
	$(CC) -o $@ $(CPPOBJECTS25) $(CALCEPHLIBS) 

$(EXECUTABLE26) : $(CPPOBJECTS26) 
	$(CC) -o $@ $(CPPOBJECTS26) $(CALCEPHLIBS) 

$(EXECUTABLE27) : $(CPPOBJECTS27) 
	$(CC) -o $@ $(CPPOBJECTS27) $(CALCEPHLIBS) 

$(EXECUTABLE28) : $(CPPOBJECTS28) 
	$(CC) -o $@ $(CPPOBJECTS28) $(CALCEPHLIBS) 

$(EXECUTABLE29) : $(CPPOBJECTS29) 
	$(CC) -o $@ $(CPPOBJECTS29) $(CALCEPHLIBS) 

$(EXECUTABLE30) : $(CPPOBJECTS30) 
	$(CC) -o $@ $(CPPOBJECTS30) $(CALCEPHLIBS) 

$(EXECUTABLE31) : $(CPPOBJECTS31) 
	$(CC) -o $@ $(CPPOBJECTS31) $(CALCEPHLIBS) 

$(EXECUTABLE32) : $(CPPOBJECTS32) 
	$(CC) -o $@ $(CPPOBJECTS32) $(CALCEPHLIBS) 

$(EXECUTABLE33) : $(CPPOBJECTS33) 
	$(CC) -o $@ $(CPPOBJECTS33) $(CALCEPHLIBS) 

$(EXECUTABLE34) : $(CPPOBJECTS34) 
	$(CC) -o $@ $(CPPOBJECTS34) $(CALCEPHLIBS) 

$(EXECUTABLE35) : $(CPPOBJECTS35) 
	$(CC) -o $@ $(CPPOBJECTS35) $(CALCEPHLIBS) 

$(EXECUTABLE36) : $(CPPOBJECTS36) 
	$(CC) -o $@ $(CPPOBJECTS36) $(CALCEPHLIBS) 

$(EXECUTABLE37) : $(CPPOBJECTS37) 
	$(CC) -o $@ $(CPPOBJECTS37) $(CALCEPHLIBS) 

$(EXECUTABLE38) : $(CPPOBJECTS38) 
	$(CC) -o $@ $(CPPOBJECTS38) $(CALCEPHLIBS) 

$(EXECUTABLE39) : $(CPPOBJECTS39) 
	$(CC) -o $@ $(CPPOBJECTS39) $(CALCEPHLIBS) 

$(EXECUTABLE40) : $(CPPOBJECTS40) 
$(EXECUTABLE41) : $(CPPOBJECTS41) 
$(EXECUTABLE42) : $(CPPOBJECTS42) 
$(EXECUTABLE43) : $(CPPOBJECTS43) 
$(EXECUTABLE44) : $(CPPOBJECTS44) 
$(EXECUTABLE45) : $(CPPOBJECTS45) 
$(EXECUTABLE46) : $(CPPOBJECTS46)
$(EXECUTABLE47) : $(CPPOBJECTS47)
$(EXECUTABLE48) : $(CPPOBJECTS48)

$(EXECUTABLE48) $(EXECUTABLE47) $(EXECUTABLE46) $(EXECUTABLE45) $(EXECUTABLE44) $(EXECUTABLE43) $(EXECUTABLE42) $(EXECUTABLE41) $(EXECUTABLE40) :
	$(CC) -o $@ $^ $(CALCEPHLIBS) 


$(F2003EXECUTABLE1) : $(F2003OBJECTS1) 
	$(FC) -o $@ $(F2003OBJECTS1) $(CALCEPHLIBS) 

$(F2003EXECUTABLE2) : $(F2003OBJECTS2) 
	$(FC) -o $@ $(F2003OBJECTS2) $(CALCEPHLIBS) 

$(F2003EXECUTABLE3) : $(F2003OBJECTS3) 
	$(FC) -o $@ $(F2003OBJECTS3) $(CALCEPHLIBS) 

$(F2003EXECUTABLE4) : $(F2003OBJECTS4) 
	$(FC) -o $@ $(F2003OBJECTS4) $(CALCEPHLIBS) 

$(F2003EXECUTABLE5) : $(F2003OBJECTS5) 
	$(FC) -o $@ $(F2003OBJECTS5) $(CALCEPHLIBS) 

$(F2003EXECUTABLE6) : $(F2003OBJECTS6) 
	$(FC) -o $@ $(F2003OBJECTS6) $(CALCEPHLIBS) 

$(F2003EXECUTABLE7) : $(F2003OBJECTS7) 
	$(FC) -o $@ $(F2003OBJECTS7) $(CALCEPHLIBS) 

$(F2003EXECUTABLE8) : $(F2003OBJECTS8) 
	$(FC) -o $@ $(F2003OBJECTS8) $(CALCEPHLIBS) 

$(F2003EXECUTABLE9) : $(F2003OBJECTS9) 
	$(FC) -o $@ $(F2003OBJECTS9) $(CALCEPHLIBS) 

$(F2003EXECUTABLE10) : $(F2003OBJECTS10) 
	$(FC) -o $@ $(F2003OBJECTS10) $(CALCEPHLIBS) 

$(F2003EXECUTABLE11) : $(F2003OBJECTS11) 
	$(FC) -o $@ $(F2003OBJECTS11) $(CALCEPHLIBS) 

$(F2003EXECUTABLE12) : $(F2003OBJECTS12) 
	$(FC) -o $@ $(F2003OBJECTS12) $(CALCEPHLIBS) 

$(F2003EXECUTABLE13) : $(F2003OBJECTS13) 
	$(FC) -o $@ $(F2003OBJECTS13) $(CALCEPHLIBS) 

$(F2003EXECUTABLE14) : $(F2003OBJECTS14) 
	$(FC) -o $@ $(F2003OBJECTS14) $(CALCEPHLIBS) 

$(F2003EXECUTABLE15) : $(F2003OBJECTS15) 
	$(FC) -o $@ $(F2003OBJECTS15) $(CALCEPHLIBS) 

$(F2003EXECUTABLE16) : $(F2003OBJECTS16) 
	$(FC) -o $@ $(F2003OBJECTS16) $(CALCEPHLIBS) 

$(F2003EXECUTABLE17) : $(F2003OBJECTS17) 
	$(FC) -o $@ $(F2003OBJECTS17) $(CALCEPHLIBS) 

$(F2003EXECUTABLE18) : $(F2003OBJECTS18) 
	$(FC) -o $@ $(F2003OBJECTS18) $(CALCEPHLIBS) 

$(F2003EXECUTABLE19) : $(F2003OBJECTS19) 
	$(FC) -o $@ $(F2003OBJECTS19) $(CALCEPHLIBS) 

$(F2003EXECUTABLE20) : $(F2003OBJECTS20) 
	$(FC) -o $@ $(F2003OBJECTS20) $(CALCEPHLIBS) 

$(F2003EXECUTABLE21) : $(F2003OBJECTS21) 
$(F2003EXECUTABLE22) : $(F2003OBJECTS22) 
$(F2003EXECUTABLE23) : $(F2003OBJECTS23) 
$(F2003EXECUTABLE24) : $(F2003OBJECTS24) 
$(F2003EXECUTABLE25) : $(F2003OBJECTS25)
$(F2003EXECUTABLE26) : $(F2003OBJECTS26)


$(F2003EXECUTABLE26) $(F2003EXECUTABLE25) $(F2003EXECUTABLE24) $(F2003EXECUTABLE23) $(F2003EXECUTABLE22) $(F2003EXECUTABLE21) :
	$(FC) -o $@ $^ $(CALCEPHLIBS) 


$(F77EXECUTABLE1) : $(F77OBJECTS1) 
	$(FC) -o $@ $(F77OBJECTS1) $(CALCEPHLIBS) 

$(F77EXECUTABLE2) : $(F77OBJECTS2) 
	$(FC) -o $@ $(F77OBJECTS2) $(CALCEPHLIBS) 

$(F77EXECUTABLE3) : $(F77OBJECTS3) 
	$(FC) -o $@ $(F77OBJECTS3) $(CALCEPHLIBS) 

$(F77EXECUTABLE4) : $(F77OBJECTS4) 
	$(FC) -o $@ $(F77OBJECTS4) $(CALCEPHLIBS) 

$(F77EXECUTABLE5) : $(F77OBJECTS5) 
	$(FC) -o $@ $(F77OBJECTS5) $(CALCEPHLIBS) 

$(F77EXECUTABLE6) : $(F77OBJECTS6) 
	$(FC) -o $@ $(F77OBJECTS6) $(CALCEPHLIBS) 

$(F77EXECUTABLE7) : $(F77OBJECTS7) 
	$(FC) -o $@ $(F77OBJECTS7) $(CALCEPHLIBS) 

$(F77EXECUTABLE8) : $(F77OBJECTS8) 
	$(FC) -o $@ $(F77OBJECTS8) $(CALCEPHLIBS) 

$(F77EXECUTABLE9) : $(F77OBJECTS9) 
	$(FC) -o $@ $(F77OBJECTS9) $(CALCEPHLIBS) 

$(F77EXECUTABLE10) : $(F77OBJECTS10) 
	$(FC) -o $@ $(F77OBJECTS10) $(CALCEPHLIBS) 

$(F77EXECUTABLE11) : $(F77OBJECTS11) 
	$(FC) -o $@ $(F77OBJECTS11) $(CALCEPHLIBS) 

$(F77EXECUTABLE12) : $(F77OBJECTS12) 
	$(FC) -o $@ $(F77OBJECTS12) $(CALCEPHLIBS) 

$(F77EXECUTABLE13) : $(F77OBJECTS13) 
	$(FC) -o $@ $(F77OBJECTS13) $(CALCEPHLIBS) 

$(F77EXECUTABLE14) : $(F77OBJECTS14) 
	$(FC) -o $@ $(F77OBJECTS14) $(CALCEPHLIBS) 

$(F77EXECUTABLE15) : $(F77OBJECTS15) 
	$(FC) -o $@ $(F77OBJECTS15) $(CALCEPHLIBS) 

$(F77EXECUTABLE16) : $(F77OBJECTS16) 
	$(FC) -o $@ $(F77OBJECTS16) $(CALCEPHLIBS) 

$(F77EXECUTABLE17) : $(F77OBJECTS17) 
	$(FC) -o $@ $(F77OBJECTS17) $(CALCEPHLIBS) 

$(F77EXECUTABLE18) : $(F77OBJECTS18) 
	$(FC) -o $@ $(F77OBJECTS18) $(CALCEPHLIBS) 

$(F77EXECUTABLE19) : $(F77OBJECTS19) 
	$(FC) -o $@ $(F77OBJECTS19) $(CALCEPHLIBS) 

$(F77EXECUTABLE20) : $(F77OBJECTS20) 
	$(FC) -o $@ $(F77OBJECTS20) $(CALCEPHLIBS) 

$(F77EXECUTABLE21) : $(F77OBJECTS21) 
$(F77EXECUTABLE22) : $(F77OBJECTS22) 
$(F77EXECUTABLE23) : $(F77OBJECTS23) 
$(F77EXECUTABLE24) : $(F77OBJECTS24) 
$(F77EXECUTABLE25) : $(F77OBJECTS25)
$(F77EXECUTABLE26) : $(F77OBJECTS26)


$(F77EXECUTABLE26) $(F77EXECUTABLE25) $(F77EXECUTABLE24) $(F77EXECUTABLE23) $(F77EXECUTABLE22) $(F77EXECUTABLE21) :
	$(FC) -o $@ $^ $(CALCEPHLIBS) 


#
# Programme pour les tests.
#
exec : $(EXECUTABLE1) $(EXECUTABLE2) $(EXECUTABLE3) $(EXECUTABLE4) $(EXECUTABLE5) $(EXECUTABLE6) $(EXECUTABLE7) $(EXECUTABLE8) $(EXECUTABLE9)  $(EXECUTABLE10) \
  	$(EXECUTABLE11) $(EXECUTABLE12) $(EXECUTABLE13) $(EXECUTABLE14) $(EXECUTABLE15) $(EXECUTABLE16) $(EXECUTABLE17) $(EXECUTABLE18) $(EXECUTABLE19) \
  	 $(EXECUTABLE20) $(EXECUTABLE21)  $(EXECUTABLE22) $(EXECUTABLE23) \
  	 $(EXECUTABLE24) $(EXECUTABLE25) $(EXECUTABLE26) $(EXECUTABLE27) $(EXECUTABLE28) $(EXECUTABLE29) $(EXECUTABLE30) \
  	 $(EXECUTABLE31) $(EXECUTABLE32) $(EXECUTABLE33) $(EXECUTABLE34) $(EXECUTABLE35) $(EXECUTABLE36) $(EXECUTABLE37) \
  	 $(EXECUTABLE38) $(EXECUTABLE39) $(EXECUTABLE40) $(EXECUTABLE41) $(EXECUTABLE42) $(EXECUTABLE43) $(EXECUTABLE44) \
  	 $(EXECUTABLE45) $(EXECUTABLE46) $(EXECUTABLE47) $(EXECUTABLE48)

reportfailed :
	@echo ---------------------------------------
	@echo Report this bug to inpop.imcce@obspm.fr
	@echo ---------------------------------------
	@exit 1

REPORTFAILED= "$(MAKE)" -f Makefile.mingw reportfailed

checkc  : 
	$(DOTPATH)$(EXECUTABLE21) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE1) || $(REPORTFAILED)
	$(DOTPATH)$(EXECUTABLE2) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE3) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE4) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE5) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE6) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE7) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE8) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE9) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE10) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE11) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE12) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE13) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE14) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE15) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE16) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE17) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE18) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE19) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE20) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE22) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE23) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE24) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE25) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE26) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE27) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE28) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE29) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE30) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE31) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE32) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE33) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE34) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE35) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE36) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE37) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE38) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE39) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE40) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE41) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE42) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE43) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE44) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE45) || $(REPORTFAILED) 
	$(DOTPATH)$(EXECUTABLE46) || $(REPORTFAILED)
	$(DOTPATH)$(EXECUTABLE47) || $(REPORTFAILED)
	$(DOTPATH)$(EXECUTABLE48) || $(REPORTFAILED)

f2003exe : fopenfiles.h $(F2003EXECUTABLE1) $(F2003EXECUTABLE2) $(F2003EXECUTABLE3) $(F2003EXECUTABLE4) $(F2003EXECUTABLE5) $(F2003EXECUTABLE6) $(F2003EXECUTABLE7) $(F2003EXECUTABLE8) $(F2003EXECUTABLE9)  \
 $(F2003EXECUTABLE10)  $(F2003EXECUTABLE11) $(F2003EXECUTABLE12) $(F2003EXECUTABLE13)  $(F2003EXECUTABLE14) $(F2003EXECUTABLE15) $(F2003EXECUTABLE16) \
 $(F2003EXECUTABLE17) $(F2003EXECUTABLE18)  $(F2003EXECUTABLE19)  $(F2003EXECUTABLE20)  $(F2003EXECUTABLE21) $(F2003EXECUTABLE22)  $(F2003EXECUTABLE23) \
 $(F2003EXECUTABLE24)  $(F2003EXECUTABLE25) $(F2003EXECUTABLE26)
 

f2003check:
	$(DOTPATH)$(F2003EXECUTABLE1) || $(REPORTFAILED)
	$(DOTPATH)$(F2003EXECUTABLE2) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE3) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE4) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE5) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE6) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE7) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE8) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE9) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE10) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE11) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE12) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE13) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE14) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE15) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE16) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE17) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE18) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE19) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE20) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE21) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE22) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE23) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE24) || $(REPORTFAILED) 
	$(DOTPATH)$(F2003EXECUTABLE25) || $(REPORTFAILED)
	$(DOTPATH)$(F2003EXECUTABLE26) || $(REPORTFAILED)


f77exe : $(F77EXECUTABLE1) $(F77EXECUTABLE2) $(F77EXECUTABLE3) $(F77EXECUTABLE4) $(F77EXECUTABLE5) $(F77EXECUTABLE6) $(F77EXECUTABLE7) $(F77EXECUTABLE8) $(F77EXECUTABLE9) \
 $(F77EXECUTABLE10)  $(F77EXECUTABLE11)  $(F77EXECUTABLE12)  $(F77EXECUTABLE13)  $(F77EXECUTABLE14)  $(F77EXECUTABLE15)  $(F77EXECUTABLE16) \
 $(F77EXECUTABLE17) $(F77EXECUTABLE18)  $(F77EXECUTABLE19) $(F77EXECUTABLE20)  $(F77EXECUTABLE21) $(F77EXECUTABLE22)  $(F77EXECUTABLE23) \
 $(F77EXECUTABLE24)  $(F77EXECUTABLE25)  $(F77EXECUTABLE26)

f77check: 
	$(DOTPATH)$(F77EXECUTABLE1) || $(REPORTFAILED)
	$(DOTPATH)$(F77EXECUTABLE2) || $(REPORTFAILED)
	$(DOTPATH)$(F77EXECUTABLE3) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE4) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE5) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE6) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE7) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE8) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE9) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE10) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE11) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE12) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE13) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE14) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE15) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE16) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE17) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE18) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE19) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE20) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE21) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE22) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE23) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE24) || $(REPORTFAILED) 
	$(DOTPATH)$(F77EXECUTABLE25) || $(REPORTFAILED)
	$(DOTPATH)$(F77EXECUTABLE26) || $(REPORTFAILED)


fopenfiles.h : fopenfiles.vc
	$(CP) fopenfiles.vc fopenfiles.h


#
# Clean target: "make -f Makefile.mingw clean" to remove unwanted 
#               objects and executables.
#
clean:
	$(RM) *.exe *.$(EXTOBJ) *.tlh

#
# install target: "make -f Makefile.mingw install DESTDIR=xxx" to perform the installation.
#
install: 


