| 
            Last change
 on this file since 2377 was             2363, checked in by ansari, 23 years ago           | 
        
        
          | 
             
This commit was generated by cvs2svn to compensate for changes in r2362, 
which included commits to RCS files with non-trunk default branches. 
 
           | 
        
        
          
            
              - 
Property                 svn:executable
 set to                 
*
               
             
           | 
        
        
          | 
            File size:
            1.4 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [2362] | 1 | #  ------------------ SOPHYA -------------------------
 | 
|---|
 | 2 | #    Makefile fot compiling and linking a simple C++ 
 | 
|---|
 | 3 | #         program with SOPHYA class library 
 | 
|---|
 | 4 | #  ---------------------------------------------------
 | 
|---|
 | 5 | #  GNU make program should be used with this makefile
 | 
|---|
 | 6 | #  ---------------------------------------------------
 | 
|---|
 | 7 | #  Usage: make prog_name
 | 
|---|
 | 8 | #     - compiles prog_name.cc -> prog_name.o 
 | 
|---|
 | 9 | #     - links prog_name.o -> prog_name 
 | 
|---|
 | 10 | 
 | 
|---|
 | 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 
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | include $(DPCBASEREP)/Include/MakefileUser.h
 | 
|---|
 | 17 | 
 | 
|---|
 | 18 | 
 | 
|---|
 | 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) 
 | 
|---|
 | 33 | 
 | 
|---|
 | 34 | %:%.cc
 | 
|---|
 | 35 | %:%.o
 | 
|---|
 | 36 | %.o:%.cc
 | 
|---|
 | 37 | %.o:%.c
 | 
|---|
 | 38 | %:%.c
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 | .PRECIOUS: % %.o
 | 
|---|
 | 41 | 
 | 
|---|
 | 42 | 
 | 
|---|
 | 43 | #  --- Compilation and linking rules
 | 
|---|
 | 44 | %:%.o
 | 
|---|
 | 45 |         $(LINK.cc)  -o $@ $< $(LIBS)
 | 
|---|
 | 46 | 
 | 
|---|
 | 47 | %.o:%.cc
 | 
|---|
 | 48 |         $(COMPILE.cc)   $(USERFLAGS) -o $@ $<
 | 
|---|
 | 49 | 
 | 
|---|
 | 50 | %:%.c
 | 
|---|
 | 51 |         $(LINK.c)  $(USERFLAGS) -o $@ $< $(LIBS) 
 | 
|---|
 | 52 | 
 | 
|---|
 | 53 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.