Commit 0a4d0953 authored by Magneville's avatar Magneville
Browse files

makefile modified to deal with OBJ and EXE directories, cmv 10/02/2017

parent 203f037c
......@@ -2,62 +2,85 @@
# Feb. 2015
include $(SOPHYABASE)/include/sophyamake.inc
OBJ = ./Objs/
EXE = ./Objs/
# Define our target list
all : Objs/rdvisip4 Objs/visi2ntac Objs/visi2dtacx Objs/visi2tmfreq Objs/p4conv2fits Objs/msvis2dt
all : rdvisip4 visi2ntac visi2dtacx visi2tmfreq p4conv2fits msvis2dt
clean :
rm -f Objs/*
rm -f $(EXE)/rdvisip4 $(EXE)/visi2ntac $(EXE)/visi2dtacx $(EXE)/visi2tmfreq $(EXE)/p4conv2fits $(EXE)/msvis2dt
rm -f $(OBJ)/rdvisip4.o $(OBJ)/visi2ntac.o $(OBJ)/visi2dtacx.o $(OBJ)/visi2tmfreq.o $(OBJ)/p4conv2fits.o $(OBJ)/msvis2dt.o
rm -f $(OBJ)/visip4reader.o
######
## programme de remplissage de DataTable avec cross-correlation fct du temps
Objs/visi2dtacx : Objs/visi2dtacx.o Objs/visip4reader.o
$(CXXLINK) -o Objs/visi2dtacx Objs/visi2dtacx.o Objs/visip4reader.o $(SOPHYAEXTSLBLIST)
## programme de remplissage de DataTable avec cross-correlation fct du temps
visi2dtacx : $(EXE)/visi2dtacx
echo '---visi2dtacx made'
$(EXE)/visi2dtacx : $(OBJ)/visi2dtacx.o $(OBJ)/visip4reader.o
$(CXXLINK) -o $(EXE)/visi2dtacx $(OBJ)/visi2dtacx.o $(OBJ)/visip4reader.o $(SOPHYAEXTSLBLIST)
Objs/visi2dtacx.o : visi2dtacx.cc visip4reader.h
$(CXXCOMPILE) -o Objs/visi2dtacx.o visi2dtacx.cc
$(OBJ)/visi2dtacx.o : visi2dtacx.cc visip4reader.h
$(CXXCOMPILE) -o $(OBJ)/visi2dtacx.o visi2dtacx.cc
######
## programme de remplissage de DataTable (NTuple) avec auto-correlation fct du temps
Objs/visi2ntac : Objs/visi2ntac.o Objs/visip4reader.o
$(CXXLINK) -o Objs/visi2ntac Objs/visi2ntac.o Objs/visip4reader.o $(SOPHYAEXTSLBLIST)
visi2ntac : $(EXE)/visi2ntac
echo '---visi2ntac made'
Objs/visi2ntac.o : visi2ntac.cc visip4reader.h
$(CXXCOMPILE) -o Objs/visi2ntac.o visi2ntac.cc
$(EXE)/visi2ntac : $(OBJ)/visi2ntac.o $(OBJ)/visip4reader.o
$(CXXLINK) -o $(EXE)/visi2ntac $(OBJ)/visi2ntac.o $(OBJ)/visip4reader.o $(SOPHYAEXTSLBLIST)
$(OBJ)/visi2ntac.o : visi2ntac.cc visip4reader.h
$(CXXCOMPILE) -o $(OBJ)/visi2ntac.o visi2ntac.cc
######
## programme de calcul de matrice Visibilites V_ij(nu) moyennee et calcul de gain g(nu)
Objs/visi2tmfreq : Objs/visi2tmfreq.o Objs/visip4reader.o
$(CXXLINK) -o Objs/visi2tmfreq Objs/visi2tmfreq.o Objs/visip4reader.o $(SOPHYAEXTSLBLIST)
visi2tmfreq : $(EXE)/visi2tmfreq
echo '---visi2tmfreq made'
$(EXE)/visi2tmfreq : $(OBJ)/visi2tmfreq.o $(OBJ)/visip4reader.o
$(CXXLINK) -o $(EXE)/visi2tmfreq $(OBJ)/visi2tmfreq.o $(OBJ)/visip4reader.o $(SOPHYAEXTSLBLIST)
Objs/visi2tmfreq.o : visi2tmfreq.cc visip4reader.h
$(CXXCOMPILE) -o Objs/visi2tmfreq.o visi2tmfreq.cc
$(OBJ)/visi2tmfreq.o : visi2tmfreq.cc visip4reader.h
$(CXXCOMPILE) -o $(OBJ)/visi2tmfreq.o visi2tmfreq.cc
######
## programme de calcul de matrice Visibilites V_ij(nu) moyennee et calcul de gain g(nu)
Objs/rdvisip4 : Objs/rdvisip4.o Objs/visip4reader.o
$(CXXLINK) -o Objs/rdvisip4 Objs/rdvisip4.o Objs/visip4reader.o $(SOPHYAEXTSLBLIST)
rdvisip4 : $(EXE)/rdvisip4
echo '---rdvisip4 made'
Objs/rdvisip4.o : rdvisip4.cc visip4reader.h
$(CXXCOMPILE) -o Objs/rdvisip4.o rdvisip4.cc
$(EXE)/rdvisip4 : $(OBJ)/rdvisip4.o $(OBJ)/visip4reader.o
$(CXXLINK) -o $(EXE)/rdvisip4 $(OBJ)/rdvisip4.o $(OBJ)/visip4reader.o $(SOPHYAEXTSLBLIST)
$(OBJ)/rdvisip4.o : rdvisip4.cc visip4reader.h
$(CXXCOMPILE) -o $(OBJ)/rdvisip4.o rdvisip4.cc
######
## programme de conversion de matrices de visibilites de PPF en FITS
Objs/p4conv2fits : Objs/p4conv2fits.o Objs/p4conv2fits.o
$(CXXLINK) -o Objs/p4conv2fits Objs/p4conv2fits.o $(SOPHYAEXTSLBLIST)
p4conv2fits : $(EXE)/p4conv2fits
echo '---p4conv2fits made'
$(EXE)/p4conv2fits : $(OBJ)/p4conv2fits.o $(OBJ)/p4conv2fits.o
$(CXXLINK) -o $(EXE)/p4conv2fits $(OBJ)/p4conv2fits.o $(SOPHYAEXTSLBLIST)
Objs/p4conv2fits.o : p4conv2fits.cc
$(CXXCOMPILE) -o Objs/p4conv2fits.o p4conv2fits.cc
$(OBJ)/p4conv2fits.o : p4conv2fits.cc
$(CXXCOMPILE) -o $(OBJ)/p4conv2fits.o p4conv2fits.cc
######
## Sep. 2015: Configuration de debug avec une carte raw et une carte FFT
## programme de lecture des fichiers meanspecII.ppf (voie raw) et vismtxII.ppf
Objs/msvis2dt : Objs/msvis2dt.o Objs/msvis2dt.o
$(CXXLINK) -o Objs/msvis2dt Objs/msvis2dt.o $(SOPHYAEXTSLBLIST)
msvis2dt : $(EXE)/msvis2dt
echo '---msvis2dt made'
$(EXE)/msvis2dt : $(OBJ)/msvis2dt.o $(OBJ)/msvis2dt.o
$(CXXLINK) -o $(EXE)/msvis2dt $(OBJ)/msvis2dt.o $(SOPHYAEXTSLBLIST)
Objs/msvis2dt.o : msvis2dt.cc
$(CXXCOMPILE) -o Objs/msvis2dt.o msvis2dt.cc
$(OBJ)/msvis2dt.o : msvis2dt.cc
$(CXXCOMPILE) -o $(OBJ)/msvis2dt.o msvis2dt.cc
######
Objs/visip4reader.o : visip4reader.cc visip4reader.h
$(CXXCOMPILE) -o Objs/visip4reader.o visip4reader.cc
$(OBJ)/visip4reader.o : visip4reader.cc visip4reader.h
$(CXXCOMPILE) -o $(OBJ)/visip4reader.o visip4reader.cc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment