Ignore:
Timestamp:
Dec 8, 2007, 11:29:14 PM (18 years ago)
Author:
ansari
Message:

Corrections/maj mineures ds Examples (README, Makefile ...) , Reza 08/12/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Examples/auto_makefile

    r2437 r3427  
    11#  ------------------ SOPHYA -------------------------
    2 #    Makefile fot compiling and linking a simple C++
     2#    Makefile for compiling and linking a simple C++
    33#         program with SOPHYA class library
    44#  ---------------------------------------------------
     
    99#     - links prog_name.o -> prog_name
    1010
    11 #   SOPHYA compilation rules - OPTFLAG and DBGFLAG
    12 # can be used to define Debug and optimization flags
    13 # Additional options can be specified using USERFLAGS
    14 # USERFLAGS := -I/.../myincludes
    1511
    16 include $(SOPHYABASEREP)/Include/MakefileUser.h
     12include $(SOPHYABASE)/include/sophyamake.inc
    1713
    1814
    19 # ----- List of SOPHYA libraries
    20 ifdef NOSHLIB
    21 LIBF =  $(LIB)libLinAlg.a $(LIB)libIFFTW.a $(LIB)libFitsIOServer.a $(LIB)libSamba.a $(LIB)libSkyMap.a $(LIB)libSkyT.a $(LIB)libNTools.a $(LIB)libHiStats.a $(LIB)libTArray.a $(LIB)libSysTools.a
    22 LIBS = -L$(LIB) -lLinAlg -lIFFTW -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools -lHiStats -lTArray -lSysTools -lm
    23 ifeq ($(CXX),cxx)
    24 # librairie des instances de templates cxx
    25 LIBS := $(LIBS) -lsotcxx
    26 endif
    27 else
    28 LIBF =  $(SLB)libsophya.so $(SLB)libextsophya.so
    29 LIBS = -L$(SLB) -lextsophya -lsophya  -lm
    30 endif
    31 
    32 LDLIBS := $(LIBS) $(LDLIBS)
    3315
    3416%:%.cc
    3517%:%.o
    3618%.o:%.cc
    37 %.o:%.c
    38 %:%.c
    3919
    4020.PRECIOUS: % %.o
     
    4323#  --- Compilation and linking rules
    4424%:%.o
    45         $(LINK.cc)  -o $@ $< $(LIBS)
     25        $(CXXLINK)  -o $@ $< $(SOPHYAEXTSLBLIST)
    4626
    4727%.o:%.cc
    48         $(COMPILE.cc)   $(USERFLAGS) -o $@ $<
    49 
    50 %:%.c
    51         $(LINK.c)  $(USERFLAGS) -o $@ $< $(LIBS)
     28        $(CXXCOMPILE) -c -o $@ $<
    5229
    5330
Note: See TracChangeset for help on using the changeset viewer.