Changeset 2392 in Sophya for trunk/ArchTOIPipe/Makefile.in


Ignore:
Timestamp:
May 28, 2003, 11:03:19 PM (22 years ago)
Author:
aubourg
Message:

divers pio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Makefile.in

    r2328 r2392  
    1616USE_PIOLIB=@use_piolib@
    1717
    18 MACHEROS := $(shell echo `uname`)
    19 MACHDIR := $(MACHEROS)-$(CXX)
     18UNAME := $(shell echo `uname`)
     19MACHDIR := $(UNAME)-$(CXX)
    2020
    2121
     
    2323 include $(DPCBASEREP)/Include/MakefileUser.h
    2424
    25  ifdef NOSHLIB
    26   LIBF =  $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libBlitz.a $(LIB)libFitsIOServer.a
    27   LIBS :=  -L$(LIB)  -lSysTools -lNTools -lBlitz  $(LIBS)
    28   ifeq ($(CXX),cxx)
    29    # librairie des instances de templates cxx
    30    LIBS := $(LIBS) -lrt
    31   endif
    32  else
    3325  LIBF =  $(SLB)libsophya.so
    3426  LIBS := -L$(SLB)  -lextsophya -lsophya $(LIBS)
    35   ifeq ($(MACHEROS),OSF1)
     27  ifeq ($(UNAME),OSF1)
    3628   LIBS := $(LIBS) -lfor
    3729  endif
    38  endif
    3930 
    4031 CPPFLAGS := -DWITH_SOPHYA $(CPPFLAGS)
     
    4839CPPFLAGS    :=  $(CPPFLAGS) @cfitsincdir@ -I. -DANSI
    4940
    50 ifeq ($USE_PIOLIB,1)
    51   PIOLIBS := @piolibdir@ -lpiolib
     41ifeq ($(USE_PIOLIB),1)
     42  PIOLIBS := -L@piolibdir@ -lpiolib
    5243else
    5344  PIOLIBS :=
     
    5647LDLIBS=@cfitslibdir@ -lcfitsio $(PIOLIBS) $(LIBS)
    5748
    58 ifeq ($(MACHEROS),IRIX64)
     49ifeq ($(UNAME),IRIX64)
    5950 ifeq ($(CXX), g++)
    6051   LDLIBS=@cfitslibdir@ -lcfitsio -L /usr/lib32/
     
    124115# librairie compilateur GNU (g++)
    125116LIBGPP := -lstdc++
    126 ifeq ($(MACHEROS), Darwin)
     117ifeq ($(UNAME), Darwin)
    127118  LIBGPP := -L/sw/lib -ldl -L/usr/lib/gcc/darwin/default -lstdc++ -lcc_dynamic
    128119endif
     
    172163
    173164# Construction de shared-libs sous OSF1
    174 ifeq ($(MACHEROS),OSF1)
     165ifeq ($(UNAME),OSF1)
    175166  override CMDSHL := ld -shared -update_registry $(SLB)so_locations
    176167  override FGSHLA := -all
     
    194185
    195186# Construction de shared-libs sous Linux
    196 ifeq ($(MACHEROS),Linux)
     187ifeq ($(UNAME),Linux)
    197188  override CMDSHL := ld -shared
    198189  override FGSHLA := --whole-archive
     
    211202
    212203# Construction de shared-libs sous Sun-OS
    213 ifeq ($(MACHEROS),SunOS)
     204ifeq ($(UNAME),SunOS)
    214205  override CMDSHL := ld -G
    215206  override FGSHLA := -z allextract
     
    221212
    222213# Construction de shared-libs sous SGI
    223 ifeq ($(MACHEROS), IRIX64)
     214ifeq ($(UNAME), IRIX64)
    224215  override CMDSHL := ld -shared
    225216  override FGSHLA := -all
     
    234225
    235226# Construction de shared-libs sous OSX
    236 ifeq ($(MACHEROS), Darwin)
     227ifeq ($(UNAME), Darwin)
    237228  override CMDSHL := libtool -dynamic
    238229  override FGSHLA :=
     
    240231  override TILSHL :=
    241232  override CMDSHLCXX := libtool -dynamic
     233  override FGSHLNCXX :=
    242234endif
    243235
    244236SLBNAME = libpipe.so
    245 ifeq ($(MACHEROS),Darwin)
    246 SLBNAME = libpipe.dylib
     237ifeq ($(UNAME),Darwin)
     238  SLBNAME = libpipe.dylib
    247239endif
    248240
     
    252244$(SLBNAME) : build_kernel build_processors build_sophya
    253245        $(CMDSHLCXX) -o $(SLBNAME)  \
    254         Kernel/*.o Processors/*.o ProcWSophya/*.o \
     246        Kernel/*.o Processors/*.o ProcWSophya/*.o $(PIOLIBS) \
    255247        $(FGSHLNCXX) -L$(SLB) -lsophya -lextsophya $(EXTLIB) $(LIBLSHL)
    256248
    257249
     250
Note: See TracChangeset for help on using the changeset viewer.