| [968] | 1 |  | 
|---|
|  | 2 |  | 
|---|
|  | 3 | ############################################################################## | 
|---|
|  | 4 | ############################################################################## | 
|---|
|  | 5 | #################### include des librairies pour le link ##################### | 
|---|
|  | 6 | ############################################################################## | 
|---|
|  | 7 | ############################################################################## | 
|---|
|  | 8 |  | 
|---|
|  | 9 | ############################################################################### | 
|---|
|  | 10 | # Link :                                                                      # | 
|---|
|  | 11 | # - without Shared Libraries > make NOSHLIB=y                                 # | 
|---|
|  | 12 | # - without Extern Libraries > make NOEXTLIB=y                                # | 
|---|
|  | 13 | # - without Fortan Libraries > make NOLFORT=y                                 # | 
|---|
|  | 14 | # - with PI Libraries        > make USELIBPI=y                                # | 
|---|
|  | 15 | # - with Personal Libraries  > make MYLIBS='-L/home/mylibs -lmylib1 -lmylib2' # | 
|---|
|  | 16 | ############################################################################### | 
|---|
|  | 17 |  | 
|---|
|  | 18 | LIBF = | 
|---|
|  | 19 | LIBS = | 
|---|
|  | 20 | ELIBF = | 
|---|
|  | 21 | ELIBS = | 
|---|
|  | 22 | SLIBF = | 
|---|
|  | 23 | MLIBS = | 
|---|
|  | 24 |  | 
|---|
|  | 25 | #------------------------------------------------------# | 
|---|
|  | 26 | #------------------ Archive Libraries -----------------# | 
|---|
|  | 27 | #------------------------------------------------------# | 
|---|
|  | 28 | ifdef NOSHLIB | 
|---|
|  | 29 |  | 
|---|
|  | 30 | #--------- lib sophya --------- | 
|---|
|  | 31 | LIBF := $(LIBF) $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libTArray.a $(LIB)libHiStats.a | 
|---|
|  | 32 | LIBF := $(LIBF) $(LIB)libSamba.a $(LIB)libSkyMap.a $(LIB)libSkyT.a | 
|---|
|  | 33 | LIBS := $(LIBS) -L$(LIB) -lSysTools -lNTools -lTArray -lHiStats -lSamba -lSkyMap -lSkyT | 
|---|
|  | 34 |  | 
|---|
|  | 35 | #--------- lib sophya interface externes --------- | 
|---|
|  | 36 | ifndef NOEXTLIB | 
|---|
|  | 37 | LIBF := $(LIBF) $(LIB)libFitsIOServer.a $(LIB)libIFFTW.a $(LIB)libLinAlg.a | 
|---|
|  | 38 | LIBS := $(LIBS) -lFitsIOServer -lIFFTW -lLinAlg | 
|---|
|  | 39 | #LIBF := $(LIBF)libBlitz.a | 
|---|
|  | 40 | #LIBS := $(LIBS) -lBlitz | 
|---|
|  | 41 | endif | 
|---|
|  | 42 |  | 
|---|
|  | 43 | #--------- lib piapp --------- | 
|---|
|  | 44 | ifdef USELIBPI | 
|---|
|  | 45 | LIBF := $(LIBF) $(LIB)libPI.a $(LIB)libPIext.a | 
|---|
|  | 46 | LIBS := $(LIBS) -lPI -lPIext | 
|---|
|  | 47 | endif | 
|---|
|  | 48 |  | 
|---|
|  | 49 | #--------- Other Extern Libraries --------- | 
|---|
|  | 50 | ifndef NOEXTLIB | 
|---|
|  | 51 | ELIBF := $(ELIBF) $(EXTLIBPATH)libcfitsio.a $(EXTLIBPATH)libfftw.a $(EXTLIBPATH)librfftw.a | 
|---|
|  | 52 | ELIBF := $(ELIBF) $(EXTLIBPATH)liblapack.a | 
|---|
|  | 53 | ELIBS := $(ELIBS) -L$(EXTLIBPATH) -lcfitsio -lfftw -lrfftw -llapack | 
|---|
|  | 54 | ifeq ($(MACHEROS),OSF1) | 
|---|
|  | 55 | ELIBS := $(ELIBS) -ldxml | 
|---|
|  | 56 | endif | 
|---|
|  | 57 | ifeq ($(MACHEROS),Linux) | 
|---|
|  | 58 | ELIBS := $(ELIBS) -lblas | 
|---|
|  | 59 | endif | 
|---|
|  | 60 | endif | 
|---|
|  | 61 |  | 
|---|
|  | 62 | #--------- lib systeme --------- | 
|---|
|  | 63 | # librairie des instances de templates cxx Sophya | 
|---|
|  | 64 | ifeq ($(CXX),cxx) | 
|---|
|  | 65 | SLIBS := $(SLIBS) -lertcxx | 
|---|
|  | 66 | endif | 
|---|
|  | 67 | SLIBS := $(SLIBS) -lm | 
|---|
|  | 68 | # Librairies pour le fortran | 
|---|
|  | 69 | ifndef NOLFORT | 
|---|
|  | 70 | ifeq ($(MACHEROS),OSF1) | 
|---|
|  | 71 | SLIBS := $(SLIBS) -lfor | 
|---|
|  | 72 | endif | 
|---|
|  | 73 | ifeq ($(MACHEROS),Linux) | 
|---|
|  | 74 | SLIBS := $(SLIBS) -lf2c | 
|---|
|  | 75 | endif | 
|---|
|  | 76 | endif | 
|---|
|  | 77 |  | 
|---|
|  | 78 | #-----------------------------------------------------# | 
|---|
|  | 79 | #------------------ Shared Libraries -----------------# | 
|---|
|  | 80 | #-----------------------------------------------------# | 
|---|
|  | 81 | else | 
|---|
|  | 82 |  | 
|---|
|  | 83 | #--------- lib sophya --------- | 
|---|
|  | 84 | LIBF := $(LIBF) $(SLB)libsophya.so | 
|---|
|  | 85 | LIBS := $(LIBS) -L$(SLB) -lsophya | 
|---|
|  | 86 |  | 
|---|
|  | 87 | #--------- lib sophya interface externes --------- | 
|---|
|  | 88 | ifndef NOEXTLIB | 
|---|
|  | 89 | LIBF := $(LIBF) $(SLB)libextsophya.so | 
|---|
|  | 90 | LIBS := $(LIBS) -lextsophya | 
|---|
|  | 91 | endif | 
|---|
|  | 92 |  | 
|---|
|  | 93 | #--------- lib piapp --------- | 
|---|
|  | 94 | ifdef USELIBPI | 
|---|
|  | 95 | LIBF := $(LIBF) $(SLB)libPI.so | 
|---|
|  | 96 | LIBS := $(LIBS) -lPI | 
|---|
|  | 97 | endif | 
|---|
|  | 98 |  | 
|---|
|  | 99 | #--------- Other Extern Libraries --------- | 
|---|
|  | 100 | # ATTENTION actuellement les blabla.a sont appelees, | 
|---|
|  | 101 | # on pourrait appeller les blabla.so (EXTSLBPATH) si on les avait crees | 
|---|
|  | 102 | ifndef NOEXTLIB | 
|---|
|  | 103 | ELIBF := $(ELIBF) $(EXTLIBPATH)libcfitsio.a $(EXTLIBPATH)libfftw.a $(EXTLIBPATH)librfftw.a | 
|---|
|  | 104 | ELIBF := $(ELIBF) $(EXTLIBPATH)liblapack.a | 
|---|
|  | 105 | ELIBS := $(ELIBS) -L$(EXTLIBPATH) -lcfitsio -lfftw -lrfftw -llapack | 
|---|
|  | 106 | ifeq ($(MACHEROS),OSF1) | 
|---|
|  | 107 | ELIBS := $(ELIBS) -ldxml | 
|---|
|  | 108 | endif | 
|---|
|  | 109 | ifeq ($(MACHEROS),Linux) | 
|---|
|  | 110 | ELIBS := $(ELIBS) -lblas | 
|---|
|  | 111 | endif | 
|---|
|  | 112 | endif | 
|---|
|  | 113 |  | 
|---|
|  | 114 | #--------- lib systeme --------- | 
|---|
|  | 115 | SLIBS := $(SLIBS) -lm | 
|---|
|  | 116 | # Librairies pour le fortran | 
|---|
|  | 117 | ifndef NOLFORT | 
|---|
|  | 118 | ifeq ($(MACHEROS),OSF1) | 
|---|
|  | 119 | SLIBS := $(SLIBS) -lfor | 
|---|
|  | 120 | endif | 
|---|
|  | 121 | ifeq ($(MACHEROS),Linux) | 
|---|
|  | 122 | SLIBS := $(SLIBS) -lf2c | 
|---|
|  | 123 | endif | 
|---|
|  | 124 | endif | 
|---|
|  | 125 |  | 
|---|
|  | 126 | endif | 
|---|
|  | 127 |  | 
|---|
|  | 128 | #--------- PERSONAL Libraries --------- | 
|---|
|  | 129 | ifdef MYLIBS | 
|---|
|  | 130 | MLIBS := $(MLIBS) $(MYLIBS) | 
|---|
|  | 131 | endif | 
|---|
|  | 132 |  | 
|---|
|  | 133 | #--------- LIBF et LIBS --------- | 
|---|
|  | 134 | LIBF := $(LIBF) $(ELIBF) | 
|---|
|  | 135 | LIBS := $(LIBS) $(ELIBS) $(MLIBS) $(SLIBS) | 
|---|
|  | 136 |  | 
|---|
|  | 137 | ############################################################################## | 
|---|