(file) Return to make_basic.mk CVS log (file) (dir) Up to [Development] / JSOC

Diff for /JSOC/make_basic.mk between version 1.4 and 1.20

version 1.4, 2008/01/23 20:58:53 version 1.20, 2008/05/20 17:19:20
Line 2  VPATH = $(SRCDIR)
Line 2  VPATH = $(SRCDIR)
 STATIC = STATIC =
 DBNAME = POSTGRESQL DBNAME = POSTGRESQL
  
   # USED BY NEITHER linux_x86_64 nor linux_ia32
 PGIPATH = /usr/include/pgsql PGIPATH = /usr/include/pgsql
  
   
 COMPILER = icc COMPILER = icc
  
 # Check for debug vs. release build - release is default. # Check for debug vs. release build - release is default.
Line 52  endif
Line 54  endif
  
 # Path to 3rd-party library headers # Path to 3rd-party library headers
 FMATHLIBSH = -I$(_JSOCROOT_)/lib_third_party/include FMATHLIBSH = -I$(_JSOCROOT_)/lib_third_party/include
   CFITSIOH = -I$(_JSOCROOT_)/lib_third_party/include
   GSLH = -I$(_JSOCROOT_)/lib_third_party/include
  
   
 ifeq ($(COMPILER), icc)  
   ifeq ($(JSOC_MACHINE), linux_x86_64)   ifeq ($(JSOC_MACHINE), linux_x86_64)
 #    FMATHLIBS = -lmkl_lapack -lmkl -L$(_JSOCROOT_)/lib_third_party/linux-x86_64/ -lfftw3f -lcfitsio  #    FMATHLIBS = -lmkl_lapack -lmkl -L$(_JSOCROOT_)/lib_third_party/lib/linux-x86_64/ -lfftw3f -lcfitsio
     # Path to 64-bit 3rd-party libraries     # Path to 64-bit 3rd-party libraries
     FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/linux_x86_64/    FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/
     CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/
     # All 3rd-party math libraries - local rules can define a subset    GSLL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/
     FMATHLIBS = $(FMATHLIBSL) -lfftw3f -lcfitsio    ECPGL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/
   else  endif
 #    FMATHLIBS = -lmkl_lapack -lmkl -L$(_JSOCROOT_)/lib_third_party/linux-ia32/ -lfftw3f -lcfitsio  ifeq ($(JSOC_MACHINE), linux_ia32)
   #    FMATHLIBS = -lmkl_lapack -lmkl -L$(_JSOCROOT_)/lib_third_party/lib/linux-ia32/ -lfftw3f -lcfitsio
     # Path to 32-bit 3rd-party libraries
     FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/
     CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/
     GSLL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/
     ECPGL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/
   endif
   ifeq ($(JSOC_MACHINE), mac_osx)
   #    FMATHLIBS = -lmkl_lapack -lmkl -L$(_JSOCROOT_)/lib_third_party/lib/linux-ia32/ -lfftw3f -lcfitsio
     # Path to 32-bit 3rd-party libraries     # Path to 32-bit 3rd-party libraries
     FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/linux_ia32/    FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/
     CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/
     GSLL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/
     ECPGL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/
   endif
  
     # All 3rd-party math libraries - local rules can define a subset     # All 3rd-party math libraries - local rules can define a subset
     FMATHLIBS = $(FMATHLIBSL) -lfftw3f -lcfitsio     FMATHLIBS = $(FMATHLIBSL) -lfftw3f -lcfitsio
   endif  CFITSIOLIBS = $(CFITSIOL) -lcfitsio
 endif  GSLLIBS = $(GSLL) -lgsl -lgslcblas
  
 ### Build flags for all targets ### Build flags for all targets
 # #
 LL_ALL          = $(SYSLIBS) LL_ALL          = $(SYSLIBS)
  
 GCC_LF_ALL      = $(STATIC) -g GCC_LF_ALL      = $(STATIC) -g
   ifeq ($(JSOC_MACHINE), linux_ia64)
     ICC_LF_ALL    = $(STATIC)
   else
 ICC_LF_ALL      = $(STATIC) -xW ICC_LF_ALL      = $(STATIC) -xW
   endif
  
 GCC_CF_GCCCOMP  = -DGCCCOMP $(D_GCC_FORT) GCC_CF_GCCCOMP  = -DGCCCOMP $(D_GCC_FORT)
 ICC_CF_ICCCOMP  = -DICCCOMP $(D_GCC_FORT) ICC_CF_ICCCOMP  = -DICCCOMP $(D_GCC_FORT)
Line 102  GCC_WARN = -Wno-comment
Line 121  GCC_WARN = -Wno-comment
 F77_WARN = -vec-report0 F77_WARN = -vec-report0
 endif endif
  
   # can't figure out how to get stupid make to do if/else if/else
 ifeq ($(DEBUG), 0) ifeq ($(DEBUG), 0)
     GCC_CF_ALL    = -I$(SRCDIR)/base/include -std=gnu99 -O2 $(GCC_WARN) $(GCC_CF_GCCCOMP)
     ICC_CF_ALL = -I$(SRCDIR)/base/include -std=c99 -xW $(ICC_WARN) $(ICC_CF_ICCCOMP)
  
   ifeq ($(JSOC_MACHINE), linux_x86_64)   ifeq ($(JSOC_MACHINE), linux_x86_64)
     GCC_CF_ALL  = -I$(SRCDIR)/base/include -std=gnu99 -O2 -march=opteron $(GCC_WARN) $(GCC_CF_GCCCOMP)     GCC_CF_ALL  = -I$(SRCDIR)/base/include -std=gnu99 -O2 -march=opteron $(GCC_WARN) $(GCC_CF_GCCCOMP)
   else  
     GCC_CF_ALL  = -I$(SRCDIR)/base/include -std=gnu99 -O2 -march=i686 $(GCC_WARN) $(GCC_CF_GCCCOMP)  
   endif   endif
  
   ICC_CF_ALL    = -I$(SRCDIR)/base/include -std=c99 -xW $(ICC_WARN) $(ICC_CF_ICCCOMP)    ifeq ($(JSOC_MACHINE), linux_ia64)
       GCC_CF_ALL  = -I$(SRCDIR)/base/include -std=gnu99 -O2 $(GCC_WARN) $(GCC_CF_GCCCOMP)
       ICC_CF_ALL  = -I$(SRCDIR)/base/include -std=c99 $(ICC_WARN) $(ICC_CF_ICCCOMP)
     endif
   
     ifeq ($(JSOC_MACHINE), linux_ia32)
       GCC_CF_ALL  = -I$(SRCDIR)/base/include -std=gnu99 -O2 -march=i686 $(GCC_WARN) $(GCC_CF_GCCCOMP)
     endif
  
 else else
  
   GCC_CF_ALL    = -I$(SRCDIR)/base/include -std=gnu99 -g $(GCC_WARN) $(GCC_CF_GCCCOMP)   GCC_CF_ALL    = -I$(SRCDIR)/base/include -std=gnu99 -g $(GCC_WARN) $(GCC_CF_GCCCOMP)
   
   ICC_CF_ALL    = -I$(SRCDIR)/base/include -std=c99 -g $(ICC_WARN) $(ICC_CF_ICCCOMP)   ICC_CF_ALL    = -I$(SRCDIR)/base/include -std=c99 -g $(ICC_WARN) $(ICC_CF_ICCCOMP)
  
 endif endif
Line 140  ICC_CMPLR = $(SRCDIR)/build/ccd-icc
Line 166  ICC_CMPLR = $(SRCDIR)/build/ccd-icc
 ARCHIVE         = ar crus $@ $^ ARCHIVE         = ar crus $@ $^
  
 ECPG            = ecpg -o $@ -c $< ECPG            = ecpg -o $@ -c $<
   SWIG            = swig -perl5 -o $@ $<
  
 GCC_COMP        = $(GCC_CMPLR) $(GCC_CF_ALL) $(CF_TGT) -o $@ -c $< GCC_COMP        = $(GCC_CMPLR) $(GCC_CF_ALL) $(CF_TGT) -o $@ -c $<
 ICC_COMP        = $(ICC_CMPLR) $(ICC_CF_ALL) $(CF_TGT) -o $@ -c $< ICC_COMP        = $(ICC_CMPLR) $(ICC_CF_ALL) $(CF_TGT) -o $@ -c $<
Line 166  FLINK = $(F77) $(F_LF_ALL) $(LF_TGT) -o
Line 193  FLINK = $(F77) $(F_LF_ALL) $(LF_TGT) -o
 SLBIN           = ln -sf ../../_$(JSOC_MACHINE)/$@ ../bin/$(JSOC_MACHINE)/ SLBIN           = ln -sf ../../_$(JSOC_MACHINE)/$@ ../bin/$(JSOC_MACHINE)/
 SLLIB           = ln -sf ../../_$(JSOC_MACHINE)/$@ ../lib/$(JSOC_MACHINE)/ SLLIB           = ln -sf ../../_$(JSOC_MACHINE)/$@ ../lib/$(JSOC_MACHINE)/
  
 ALL_LIBS_FPIC = $(LIBDRMSCLIENT_FPIC) $(LIBDBCLIENT_FPIC) $(LIBCMDPARAMS_FPIC) $(LIBTHREADUTIL_FPIC) $(LIBRICECOMP_FPIC) $(LIBDSTRUCT_FPIC) $(LIBMISC_FPIC) $(LIBTIMEIO_FPIC)  ALL_LIBS_FPIC = $(LIBDRMSCLIENT_FPIC) $(LIBDBCLIENT_FPIC) $(LIBCMDPARAMS_FPIC) $(LIBTHREADUTIL_FPIC) $(LIBRICECOMP_FPIC) $(LIBDSTRUCT_FPIC) $(LIBMISC_FPIC) $(LIBTIMEIO_FPIC) $(LIBFITSRW_FPIC)
  
 ### Standard parts ### Standard parts
 # #
 include $(SRCDIR)/Rules.mk include $(SRCDIR)/Rules.mk
  
 # Libraries from src/util linked with all programs. # Libraries from src/util linked with all programs.
   ifneq ($(COMPILER), icc)
 SYSLIBS = -lz -ldl -lpthread -lm SYSLIBS = -lz -ldl -lpthread -lm
 SRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMS) $(LIBMISC) $(LIBDSTRUCT) $(LIBTIMEIO)  else
 FSRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMSF) $(LIBMISC) $(LIBDSTRUCT) $(LIBTIMEIO)    SYSLIBS = -lz -ldl -lpthread
   endif
   SRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMS) $(LIBMISC) $(LIBDSTRUCT) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG)
   FSRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMSF) $(LIBMISC) $(LIBDSTRUCT) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG)
  
 ########## Libraries to link for server executables,    ############## ########## Libraries to link for server executables,    ##############
 ########## standalone executables and pipeline modules. ############## ########## standalone executables and pipeline modules. ##############
Line 210  $(FEXE): %: %.o $(MATHLIBS)
Line 241  $(FEXE): %: %.o $(MATHLIBS)
                 $(FLINK)                 $(FLINK)
                 $(SLBIN)                 $(SLBIN)
  
 $(SERVEREXE):   LL_TGT := $(LL_TGT) -lpq  $(SERVEREXE):   LL_TGT := $(LL_TGT) -lpq $(CFITSIOLIBS)
 $(SERVEREXE):   %:      %.o $(SERVERLIBS) $(SERVEREXE):   %:      %.o $(SERVERLIBS)
                         $(LINK)                         $(LINK)
                         $(SLBIN)                         $(SLBIN)
  
 $(MODEXE):      LL_TGT := $(LL_TGT) -lpq  $(MODEXE):      LL_TGT := $(LL_TGT) -lpq $(CFITSIOLIBS)
 $(MODEXE):      %:      %.o $(MODLIBS) $(MODEXE):      %:      %.o $(MODLIBS)
                         $(LINK)                         $(LINK)
                         $(SLBIN)                         $(SLBIN)
  
   $(MODEXE_SOCK): LL_TGT := $(LL_TGT) $(CFITSIOLIBS)
 $(MODEXE_SOCK): %_sock: %.o $(MODLIBS_SOCK) $(MODEXE_SOCK): %_sock: %.o $(MODLIBS_SOCK)
                         $(LINK)                         $(LINK)
                         $(SLBIN)                         $(SLBIN)
  
   $(FMODEXE):     LL_TGT := $(LL_TGT) $(CFITSIOLIBS)
 $(FMODEXE):     %_sock: %.o $(FMODLIBS_SOCK) $(FMODEXE):     %_sock: %.o $(FMODLIBS_SOCK)
                         $(FLINK)                         $(FLINK)
                         $(SLBIN)                         $(SLBIN)
   
   $(MODEXE_USEF): LL_TGT := $(LL_TGT) -lpq $(CFITSIOLIBS)
   $(MODEXE_USEF):     %:  %.o $(MODLIBS)
                           $(FLINK)
                           $(SLBIN)
   
   $(MODEXE_USEF_SOCK):    LL_TGT := $(LL_TGT) $(CFITSIOLIBS)
   $(MODEXE_USEF_SOCK): %_sock: %.o $(MODLIBS_SOCK)
                           $(FLINK)
                           $(SLBIN)


Legend:
Removed from v.1.4  
changed lines
  Added in v.1.20

Karen Tian
Powered by
ViewCVS 0.9.4