Changeset 2225 in Sophya


Ignore:
Timestamp:
Oct 23, 2002, 11:57:40 PM (23 years ago)
Author:
aubourg
Message:

v_oct02_mieux

Location:
trunk/ArchTOIPipe
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/toimanager.h

    r2220 r2225  
    55//                               Christophe Magneville
    66//                               Reza Ansari
    7 // $Id: toimanager.h,v 1.16 2002-10-23 21:05:18 aubourg Exp $
     7// $Id: toimanager.h,v 1.17 2002-10-23 21:57:40 aubourg Exp $
    88
    99
     
    4343public:
    4444  static TOIManager* getManager();
     45  virtual ~TOIManager() {}
    4546  void setRequestedSample(int begin, int end);
    4647  int getRequestedBegin();
  • trunk/ArchTOIPipe/Makefile.in

    r2208 r2225  
    111111endif
    112112
    113 
    114 
     113### Shared libs, repris de Sophya en attendant une integration
     114### plus propre a configure
     115
     116# librairie compilateur GNU (g++)
     117LIBGPP := -lstdc++
     118ifeq ($(MACHEROS), Darwin)
     119  LIBGPP := -L/sw/lib -ldl -L/usr/lib/gcc/darwin/default -lstdc++ -lcc_dynamic
     120endif
     121
     122#  External libraries
     123EXTLIB :=
     124EXTSLB :=
     125
     126#  Commande de construction de shared-lib
     127CMDSHL := ld -partage
     128#  Flag d'inclusion/fin d'inclusion de tous les points  d'entree
     129FGSHLA := -tout
     130FGSHLN := -rien
     131#  Librairies specifiques
     132LIBLSHL := -lpthread -lm -lc
     133#  Librairie d'instanciation des templates
     134TILSHL :=
     135TILSHLPI :=
     136#   Commande de construction de la librairie d'instanciation des templates
     137CMDTILSHL := echo 'No Template instanciation library (.a)'
     138CMDTILSHLPI  := echo 'No Template instanciation library (.a)'
     139# Utilisation du compilo C++ comme driver pour fabrication des shared-libs
     140CMDSHLCXX := $(LINK.cc)
     141FGSHLACXX := 
     142FGSHLNCXX :=
     143#  S'il faut utiliser $(CMDSHLCXX) pour fabrication des shared-libs
     144USECXX4SO := Y
     145# On utilise le compilo g++ pour la fabrication des shared libs
     146ifeq ($(EROSCXX), g++)
     147  override USECXX4SO := Y
     148  override CMDSHLCXX := $(LINK.cc) -shared
     149  override LIBLSHL := $(LIBGPP) $(LIBLSHL)
     150endif
     151
     152# On utilise le compilo KCC pour la fabrication des shared libs
     153ifeq ($(EROSCXX), KCC)
     154  override USECXX4SO := Y
     155  override CMDSHLCXX := $(LINK.cc)
     156endif
     157
     158# On utilise le compilo aCC (HP) pour la fabrication des shared libs
     159ifeq ($(EROSCXX), aCC)
     160  override USECXX4SO := Y
     161  override CMDSHLCXX := $(LINK.cc) -b
     162endif
     163
     164
     165# Construction de shared-libs sous OSF1
     166ifeq ($(MACHEROS),OSF1)
     167  override CMDSHL := ld -shared -update_registry $(SLB)so_locations
     168  override FGSHLA := -all
     169  override FGSHLN := -none
     170#  override LIBLSHL := -lcxxstd -lcxx -lexc -lm -lc -lrt
     171  override LIBLSHL := $(LIBLSHL) -lrt
     172  override TILSHL := $(LIB)libertcxx.a
     173  override CMDTILSHL := rm -f $(LIB)libsotcxx.a ; cd $(REP); $(AR) $(ARFLAGS) $(LIB)libso
     174tcxx.a *.o
     175  override TILSHLPI := $(LIB)libsotcxxpi.a
     176  override CMDTILSHLPI := rm -f $(LIB)libsotcxxpi.a ; cd $(REPPI); $(AR) $(ARFLAGS) $(LIB
     177)libsotcxxpi.a *.o
     178  ifeq ($(CXX),g++)
     179    override TILSHL :=
     180    override TILSHLPI :=
     181  endif
     182#  Attention - Dangereux de mettre -expect_unresolved , enleve  Reza 17/11/99
     183  override CMDSHLCXX :=  $(CXX) $(CXXFLAGS) -shared
     184  override FGSHLACXX :=
     185  override FGSHLNCXX :=
     186  override USECXX4SO := Y
     187endif
     188
     189# Construction de shared-libs sous Linux
     190ifeq ($(MACHEROS),Linux)
     191  override CMDSHL := ld -shared
     192  override FGSHLA := --whole-archive
     193  override FGSHLN := --no-whole-archiv
     194  override CMDSHLCXX := $(LINK.cc) -shared
     195  ifeq ($(EROSCXX), KCC)
     196    override CMDSHLCXX := $(LINK.cc)
     197  endif
     198  override FGSHLACXX :=
     199  override FGSHLNCXX :=
     200  override LIBLSHL := $(LIBLSHL) -ldl
     201  override TILSHL :=
     202  override LIBXPIPATH := -L/usr/X11/lib -L/usr/X11R6/lib
     203  override LIBXPILIST := -lXm -lXt -lXext -lX11
     204endif
     205
     206# Construction de shared-libs sous Sun-OS
     207ifeq ($(MACHEROS),SunOS)
     208  override CMDSHL := ld -G
     209  override FGSHLA := -z allextract
     210  override FGSHLN := -z weakextract
     211  override TILSHL :=
     212  override LIBXPIPATH := -L/usr/X11/lib
     213  override USECXX4SO := Y
     214endif
     215
     216# Construction de shared-libs sous SGI
     217ifeq ($(MACHEROS), IRIX64)
     218  override CMDSHL := ld -shared
     219  override FGSHLA := -all
     220  override FGSHLN := -notall
     221  override TILSHL :=
     222  ifeq ($(EROSCXX), CC)
     223    override CMDSHLCXX := CC -shared
     224  endif
     225  override LIBXPIPATH := -L/usr/X11/lib
     226  override USECXX4SO := Y
     227endif
     228
     229# Construction de shared-libs sous OSX
     230ifeq ($(MACHEROS), Darwin)
     231  override CMDSHL := libtool -dynamic
     232  override FGSHLA :=
     233  override FGSHLN :=
     234  override TILSHL :=
     235  override CMDSHLCXX := libtool -dynamic
     236endif
     237
     238SLBNAME = libpipe.so
     239ifeq ($(MACHEROS),Darwin)
     240SLBNAME = libpipe.dylib
     241endif
     242
     243
     244slb: $(SLBNAME)
     245
     246$(SLBNAME) : build_kernel build_processors build_sophya
     247        $(CMDSHLCXX) -o $(SLBNAME)  \
     248        Kernel/*.o Processors/*.o ProcWSophya/*.o \
     249        $(FGSHLNCXX) -L$(SLB) -lsophya -lextsophya $(EXTLIB) $(LIBLSHL)
     250
     251
  • trunk/ArchTOIPipe/Processors/wienerdecor.cc

    r2187 r2225  
     1#include <math.h>
    12#include "toimanager.h"
    23#include "correl.h"
    34#include "wienerdecor.h"
    4 #include <math.h>
    55extern "C" {
    66#include "nrutil.h"
  • trunk/ArchTOIPipe/TestPipes/Makefile.in

    r2224 r2225  
    9191        $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm
    9292
     93xmlpipe: xmlpipe.o $(FILES) $(LIBDEPS)
     94        $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ -lm -L$(HOME)/expat -lexpat
     95
     96xmlpipe.o:$(srcdir)/xmlpipe.cc
     97        $(COMPILE.cc) -I$(HOME)/expat -o $@ $<
     98
    9399%.o:$(srcdir)/%.cc
    94100        $(COMPILE.cc) -o $@ $<
Note: See TracChangeset for help on using the changeset viewer.