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

Diff for /JSOC/make_basic.mk between version 1.22 and 1.72

version 1.22, 2008/07/14 21:06:04 version 1.72, 2011/09/12 19:15:30
Line 1 
Line 1 
 VPATH  = $(SRCDIR) VPATH  = $(SRCDIR)
 STATIC = STATIC =
 DBNAME = POSTGRESQL  DBMS = POSTGRESQL
  
 # USED BY NEITHER linux_x86_64 nor linux_ia32  # Run a script to determine the machine on which make is being run. This
 PGIPATH = /usr/include/pgsql  # MAY return a machine type, if the host found falls into one of several
   # categories (like dbserver).
   MACHTYPE = $(shell $(SRCDIR)/getmachtype.pl)
  
   # If MACH was set when the make command was issued (eg., make MACH='N02'), then
   # use its value for the output/obj directory and use the custom.mk variables
   # relevant to its value. Otherwise, use $(JSOC_MACHINE).
   ifeq ($(MACH),)
   MACH = $(JSOC_MACHINE)
   endif
  
   #***********************************************************************************************#
   #
   # COMPILER SELECTION
   #
 COMPILER = icc COMPILER = icc
   FCOMPILER = ifort
   
   # can set through custom.mk or through environment
   ifneq ($(JSOC_COMPILER),)
   COMPILER = $(JSOC_COMPILER)
   endif
  
   ifneq ($(JSOC_FCOMPILER),)
   FCOMPILER = $(JSOC_FCOMPILER)
   endif
   #***********************************************************************************************#
   
   #***********************************************************************************************#
   # This optional file has custom definitions created by the configure script.
   # Do this after compiler selection since custom.mk might use $COMPILER or $FCOMPILER.
   # custom.mk might also set compiler (through moreconfigure.pl)
   -include $(SRCDIR)/$(LOCALIZATIONDIR)/custom.mk
   #***********************************************************************************************#
   
   #***********************************************************************************************#
   #
   # DEBUGGING
   #
 # Check for debug vs. release build - release is default. # Check for debug vs. release build - release is default.
 #   To do a debug build, either set the environment variable JSOC_DEBUG to 1, OR #   To do a debug build, either set the environment variable JSOC_DEBUG to 1, OR
 #   modify the following line so that DEBUG = 1.  The environment variable takes precedence. #   modify the following line so that DEBUG = 1.  The environment variable takes precedence.
   #
 DEBUG = 0 DEBUG = 0
  
 ifdef JSOC_DEBUG ifdef JSOC_DEBUG
Line 20  else
Line 55  else
 DEBUG = 0 DEBUG = 0
 endif endif
 endif endif
   #***********************************************************************************************#
  
 # No warnings are displayed, by default, for a release build.  
 WARN = 0  
  
 # Builder can request warnings via environment variable (setenv JSOC_WARN 1).  The  #***********************************************************************************************#
 #   environment variable takes precedence.  #
   # WARNINGS
   #
   # Warnings ARE displayed, by default, for a release build.
   #
   WARN = 1
   
   # Builder can request warnings via environment variable (setenv JSOC_WARN 1).
   #   The environment variable takes precedence.
 ifdef JSOC_WARN ifdef JSOC_WARN
 ifeq ($(JSOC_WARN), 1) ifeq ($(JSOC_WARN), 1)
 WARN = 1 WARN = 1
Line 34  WARN = 0
Line 76  WARN = 0
 endif endif
 endif endif
  
 # Warnings are always displayed for a debug build.  ICC_WARNMORE =
 ifeq ($(DEBUG), 1)  ifdef JSOC_WARNICC
 WARN = 1  ifeq ($(COMPILER), icc)
   ICC_WARNMORE = $(JSOC_WARNICC)
   endif
 endif endif
  
 _JSOCROOT_ = ..  #***********************************************************************************************#
  
 F77 = ifort  
 # if fortran compiler  
 D_GCC_FORT =  
 ifeq ($(F77), ifort)  
   D_GCC_FORT = -DINTEL_FORTRAN  
 endif  
  
 ifeq ($(JSOC_MACHINE), linux_x86_64)  #***********************************************************************************************#
   F77 = ifort -mcmodel=medium  #
 endif  # THIRD-PARTY LIBRARIES
   #
   # This section contains make variables that hold the paths to and names of third-party libraries.
   # Variables that end in 'H' contain the -I link flags that contain the include paths
   # for the library headers, variables that end in 'L' contain the -L link flags that
   # contain the paths to the library binaries, and variables
   # that end in "LIBS" contain the full link cmd (the -L flag plus the -l flag)
   #
  
 # Path to 3rd-party library headers  # PostgreSQL
 FMATHLIBSH = -I$(_JSOCROOT_)/lib_third_party/include  PGH = -I$(POSTGRES_INCS)
 CFITSIOH = -I$(_JSOCROOT_)/lib_third_party/include  PGL = -L$(POSTGRES_LIBS)
 GSLH = -I$(_JSOCROOT_)/lib_third_party/include  PGLIBNAME = $(POSTGRES_LIB)
   PGLIBS = $(PGL) -l$(PGLIBNAME)
   
   # CFITSIO
   CFITSIOH = -I$(CFITSIO_INCS)
   CFITSIOL = -L$(CFITSIO_LIBS)
   CFITSIOLIBNAME = $(CFITSIO_LIB)
   CFITSIOLIBS =  $(CFITSIOL) -l$(CFITSIOLIBNAME)
  
 ifeq ($(JSOC_MACHINE), linux_x86_64)  #***********************************************************************************************#
 #    FMATHLIBS = -lmkl_lapack -lmkl -L$(_JSOCROOT_)/lib_third_party/lib/linux-x86_64/ -lfftw3f -lcfitsio  
   # Path to 64-bit 3rd-party libraries  
   FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/  
   CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/  
   GSLL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/  
   ECPGL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/  
 endif  
 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  
   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  
 FMATHLIBS = $(FMATHLIBSL) -lfftw3f -lcfitsio  
 CFITSIOLIBS = $(CFITSIOL) -lcfitsio  
 GSLLIBS = $(GSLL) -lgsl -lgslcblas  
  
 ### Build flags for all targets  
   #***********************************************************************************************#
 # #
 LL_ALL          = $(SYSLIBS)  # CUSTOM BUILDS
   #
   # Compilation define customizations (eg., for remote DRMS builds)
   CUSTOMSW =
   ifneq ($(DRMS_DEFAULT_RETENTION),)
   #       CUSTOMSW = $(CUSTOMSW) -DDRMS_DEFAULT_RETENTION="\"$(DRMS_DEFAULT_RETENTION)\""
           CUSTOMSW := $(CUSTOMSW) -DDRMS_DEFAULT_RETENTION=$(DRMS_DEFAULT_RETENTION)
   endif
  
 GCC_LF_ALL      = $(STATIC) -g  ifneq ($(CUSTOM_DEFINES),)
 ifeq ($(JSOC_MACHINE), linux_ia64)  CUSTOMSW := $(CUSTOMSW) -D$(CUSTOM_DEFINES)
   ICC_LF_ALL    = $(STATIC)  
 else  
   ICC_LF_ALL    = $(STATIC) -xW  
 endif endif
  
 GCC_CF_GCCCOMP  = -DGCCCOMP $(D_GCC_FORT)  #
 ICC_CF_ICCCOMP  = -DICCCOMP $(D_GCC_FORT)  #***********************************************************************************************#
   
   #***********************************************************************************************#
   #
   # Global flags
   #
   # All modules must be able to find libdsds.so. The define DRMS_LIBDIR specifies the path to
   # all libraries.
   
   GLOBALSW = -DDRMS_LIBDIR="\"$(WORKINGDIR)/lib/$(MACH)\""
   #
   #***********************************************************************************************#
  
 # Disable several warnings/remarks when compiling with icc - icc's Wall is a bit picky, it  #***********************************************************************************************#
   #
   # WARNINGS
   #
   # NO LONGER USED - Disable several warnings/remarks when compiling with icc - icc's Wall is a bit picky, it
 # complains about extern declarations in .c files. # complains about extern declarations in .c files.
 #   1418 (remark) - external function definition with no prior declaration #   1418 (remark) - external function definition with no prior declaration
 #   1419 (warning) - external declaration in primary source file #   1419 (warning) - external declaration in primary source file
 #   310 (remark) - old style function declaration (pre-ANSI) #   310 (remark) - old style function declaration (pre-ANSI)
   #   279 ?
 #   981 (remark) - operands are evaluted in unspecified order #   981 (remark) - operands are evaluted in unspecified order
  
   # list of warnings to turn into errors
   ICC_WARNTOERR = -we266
   
 ifeq ($(WARN), 1) ifeq ($(WARN), 1)
 # Show warnings (always true for a debug build). # Show warnings (always true for a debug build).
 ICC_WARN = -Winline -Wall -wd1418 -wd1419 -wd310 -wd279 -wd981 -Wno-comment  ICC_WARN = $(ICC_WARNMORE)
 GCC_WARN = -Winline -Wall -Wno-comment  GCC_WARN = -Wno-comment
 F77_WARN =  FCOMPILER_WARN =
 else else
 # Don't show warnings. # Don't show warnings.
 ICC_WARN = -w0 -vec-report0 -Wno-comment  ICC_WARN = -w0 -vec-report0 -Wno-comment $(ICC_WARNTOERR)
 GCC_WARN = -Wno-comment GCC_WARN = -Wno-comment
 F77_WARN = -vec-report0  ifeq ($(FCOMPILER), ifort)
   FCOMPILER_WARN = -vec-report0
   else
   FCOMPILER_WARN =
 endif endif
   endif
   
   #***********************************************************************************************#
   
   
   #***********************************************************************************************#
   #
   # GLOBAL LINK FLAGS
   #
   # Link flags for all targets
   #
   LL_ALL          = $(SYSLIBS)
   GCC_LF_ALL      = $(STATIC)
   ICC_LF_ALL      = $(STATIC) -openmp -static-intel -Wl,-export-dynamic
   
   # Fortran global LINK flags
   F_LF_ALL        = -nofor-main  -openmp -static-intel -Wl,-export-dynamic
   #***********************************************************************************************#
   
   #***********************************************************************************************#
   #
   # GLOBAL COMPILE FLAGS
   #
   GCC_CF_GCCCOMP  = -DGCCCOMP
   ICC_CF_ICCCOMP  = -DICCCOMP -openmp
  
 # can't figure out how to get stupid make to do if/else if/else # 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)    GCC_CF_ALL    = -I$(SRCDIR)/base/include -std=gnu99 -O2 $(GCC_WARN) $(GCC_CF_GCCCOMP) $(CUSTOMSW) $(GLOBALSW) -DNDEBUG
   ICC_CF_ALL = -I$(SRCDIR)/base/include -std=c99 -xW $(ICC_WARN) $(ICC_CF_ICCCOMP)  # -xW tells the icc compiler to optimize for Pentium 4
     ICC_CF_ALL = -I$(SRCDIR)/base/include -std=c99 -D_GNU_SOURCE $(ICC_WARN) $(ICC_CF_ICCCOMP) $(CUSTOMSW) $(GLOBALSW) -DNDEBUG
  
   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) $(CUSTOMSW) $(GLOBALSW) -DNDEBUG
   endif   endif
  
   ifeq ($(JSOC_MACHINE), linux_ia64)   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 -D_GNU_SOURCE $(ICC_WARN) $(ICC_CF_ICCCOMP) $(CUSTOMSW) $(GLOBALSW) -DNDEBUG
     ICC_CF_ALL  = -I$(SRCDIR)/base/include -std=c99 $(ICC_WARN) $(ICC_CF_ICCCOMP)  
   endif   endif
  
   ifeq ($(JSOC_MACHINE), linux_ia32)   ifeq ($(JSOC_MACHINE), linux_ia32)
     GCC_CF_ALL  = -I$(SRCDIR)/base/include -std=gnu99 -O2 -march=i686 $(GCC_WARN) $(GCC_CF_GCCCOMP)      GCC_CF_ALL  = -I$(SRCDIR)/base/include -std=gnu99 -O2 -march=i686 $(GCC_WARN) $(GCC_CF_GCCCOMP) $(CUSTOMSW) $(GLOBALSW) -DNDEBUG
   endif   endif
  
 else else
   # -g tells the icc and gcc compilers to generate full debugging information
     GCC_CF_ALL = -I$(SRCDIR)/base/include -std=gnu99 -g $(GCC_WARN) $(GCC_CF_GCCCOMP) $(CUSTOMSW) $(GLOBALSW)
     ICC_CF_ALL = -I$(SRCDIR)/base/include -std=c99 -D_GNU_SOURCE -g $(ICC_WARN) $(ICC_CF_ICCCOMP) $(CUSTOMSW) $(GLOBALSW)
   endif
  
   GCC_CF_ALL = -I$(SRCDIR)/base/include -std=gnu99 -g $(GCC_WARN) $(GCC_CF_GCCCOMP)  # Fortran global COMPILE flags
   ICC_CF_ALL = -I$(SRCDIR)/base/include -std=c99 -g $(ICC_WARN) $(ICC_CF_ICCCOMP)  ifeq ($(JSOC_MACHINE), linux_x86_64)
     ifeq ($(FCOMPILER), ifort)
       F_CF_ALL := -openmp
     endif
 endif endif
  
 # Fortran global LINK flags  # Other compiler-specific Fortran COMPILE flags
 F_LF_ALL        = -nofor_main -no-ipo  ifeq ($(FCOMPILER), ifort)
     FCFLAGS_INIT := -ftrapuv
   else
     # must be gfortran
     FCFLAGS_INIT  :=
   endif
  
 # Fortran global COMPILE flags  
 ifeq ($(DEBUG), 0) ifeq ($(DEBUG), 0)
 FF_ALL          = -xW -ftrapuv $(F77_WARN)  # -xW optimizes ifort compilation for Pentium 4
   # -ftrapuv initializes stack local variables to an unusual value to aid error detection.
     F_CF_ALL      := $(F_CF_ALL) $(FCOMPILER_WARN)
 else else
 FF_ALL          = -ftrapuv $(F77_WARN)    F_CF_ALL      := $(F_CF_ALL) -g $(FCFLAGS_INIT) $(FCOMPILER_WARN)
 endif endif
   #***********************************************************************************************#
   
  
 ### Build tools  #***********************************************************************************************#
   #
   # BUILD TOOLS
 # #
 # The C compiler named here must output full (header) dependencies in $(@).d. # The C compiler named here must output full (header) dependencies in $(@).d.
 # It may be necessary to create a script similar to ccd-gcc for your compiler. # It may be necessary to create a script similar to ccd-gcc for your compiler.
Line 186  else
Line 278  else
   COMPLINK      = $(ICC_COMPLINK)   COMPLINK      = $(ICC_COMPLINK)
 endif endif
  
 FCOMP           = $(F77) $(FF_ALL) $(FF_TGT) -o $@ -c $<  FCOMP           = $(FCOMPILER) $(F_CF_ALL) $(FF_TGT) -o $@ -c $<
 FLINK           = $(F77) $(F_LF_ALL) $(LF_TGT) -o $@ $^ $(LL_TGT) $(LL_ALL)  FLINK           = $(FCOMPILER) $(F_LF_ALL) $(LF_TGT) -o $@ $^ $(LL_TGT) $(LL_ALL)
  
 SLBIN           = ln -sf ../../_$(JSOC_MACHINE)/$@ ../bin/$(JSOC_MACHINE)/  SLBIN           = ln -sf ../../_$(MACH)/$@ ../bin/$(MACH)/
 SLLIB           = ln -sf ../../_$(JSOC_MACHINE)/$@ ../lib/$(JSOC_MACHINE)/  SLLIB           = ln -sf ../../_$(MACH)/$@ ../lib/$(MACH)/
   #***********************************************************************************************#
  
 ALL_LIBS_FPIC = $(LIBDRMSCLIENT_FPIC) $(LIBDBCLIENT_FPIC) $(LIBCMDPARAMS_FPIC) $(LIBTHREADUTIL_FPIC) $(LIBRICECOMP_FPIC) $(LIBDEFS_FPIC) $(LIBDSTRUCT_FPIC) $(LIBMISC_FPIC) $(LIBTIMEIO_FPIC) $(LIBFITSRW_FPIC)  
   #***********************************************************************************************#
   #
   # LIBRARY COLLECTIONS
   #
   ALL_LIBS_FPIC = $(LIBDRMSCLIENT_FPIC) $(LIBDBCLIENT_FPIC) $(LIBCMDPARAMS_FPIC) $(LIBTHREADUTIL_FPIC) $(LIBRICECOMP_FPIC) $(LIBDEFS_FPIC) $(LIBMISC_FPIC) $(LIBDSTRUCT_FPIC) $(LIBTIMEIO_FPIC) $(LIBFITSRW_FPIC)
  
 ### Standard parts ### Standard parts
 # #
Line 204  ifneq ($(COMPILER), icc)
Line 302  ifneq ($(COMPILER), icc)
 else else
   SYSLIBS = -lz -ldl -lpthread   SYSLIBS = -lz -ldl -lpthread
 endif endif
 SRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMS) $(LIBMISC) $(LIBDEFS) $(LIBDSTRUCT) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG)  SRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMS) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG) $(LIBEXPDRMS) $(LIBEXPUTL) $(LIBMISC) $(LIBDSTRUCT)
 FSRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMSF) $(LIBMISC) $(LIBDEFS) $(LIBDSTRUCT) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG)  FSRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMSF) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG) $(LIBEXPDRMS) $(LIBEXPUTL) $(LIBMISC) $(LIBDSTRUCT)
  
 ########## Libraries to link for server executables,    ############## ########## Libraries to link for server executables,    ##############
 ########## standalone executables and pipeline modules. ############## ########## standalone executables and pipeline modules. ##############
  
 # SERVERLIBS: Libraries linked with "server" programs that # SERVERLIBS: Libraries linked with "server" programs that
 # need direct access to the DRMS databases. # need direct access to the DRMS databases.
 SERVERLIBS = $(LIBDRMS) $(LIBDB) $(LIBSUMSAPI) $(SRCLIBS)  SERVERLIBS = $(LIBDRMS) $(LIBDEFSSERVER) $(LIBDB) $(LIBSUMSAPI) $(SRCLIBS)
  
 # EXELIBS: Libraries linked with standalone executables. # EXELIBS: Libraries linked with standalone executables.
 EXELIBS = $(LIBDRMSCLIENT) $(LIBDBCLIENT) $(SRCLIBS)  EXELIBS = $(LIBDRMSCLIENT) $(LIBDEFSCLIENT) $(LIBDBCLIENT) $(SRCLIBS)
  
 # MODLIBS: Libraries linked with DRMS modules. # MODLIBS: Libraries linked with DRMS modules.
 MODLIBS = $(LIBJSOC_MAIN) $(SERVERLIBS) MODLIBS = $(LIBJSOC_MAIN) $(SERVERLIBS)
  
 # MODLIBS_SOCK: Libraries linked with DRMS modules with socket connection to a drms_server # MODLIBS_SOCK: Libraries linked with DRMS modules with socket connection to a drms_server
 MODLIBS_SOCK = $(LIBJSOC_MAIN_SOCK) $(LIBDRMSCLIENT) $(LIBDBCLIENT) $(SRCLIBS)  MODLIBS_SOCK = $(LIBJSOC_MAIN_SOCK) $(LIBDRMSCLIENT) $(LIBDEFSCLIENT) $(LIBDBCLIENT) $(LIBSUMSAPI) $(SRCLIBS)
  
 # FMODLIBS: Libraries linked with DRMS Fortran modules # FMODLIBS: Libraries linked with DRMS Fortran modules
 FMODLIBS_SOCK = $(LIBJSOC_MAIN_SOCK_F) $(LIBINTHANDLESF) $(LIBDRMSCLIENT) $(LIBDBCLIENT) $(FSRCLIBS)  FMODLIBS_SOCK = $(LIBJSOC_MAIN_SOCK_F) $(LIBINTHANDLESF) $(LIBDRMSCLIENT) $(LIBDEFSCLIENT) $(LIBDBCLIENT) $(FSRCLIBS)
   #***********************************************************************************************#
  
 MATHLIBS =  $(LIBLSQR) $(LIBBLAS) $(LIBLAPACK)  
  
   #***********************************************************************************************#
   #
   # PROJECT MAKE RULES
   #
 # Make rules that apply to all projects outside of the base DRMS/SUMS system # Make rules that apply to all projects outside of the base DRMS/SUMS system
 -include $(SRCDIR)/proj/make_basic.mk  -include $(SRCDIR)/$(LOCALIZATIONDIR)/make_basic.mk
   #***********************************************************************************************#
   
  
   #***********************************************************************************************#
   #
   # MODULE TYPES
   #
 # Make rules that apply to all projects, inside and outside of the base DRMS/SUMS system # Make rules that apply to all projects, inside and outside of the base DRMS/SUMS system
 $(CEXE):        %:      %.o $(EXELIBS) $(CEXE):        %:      %.o $(EXELIBS)
                 $(LINK)                 $(LINK)
                 $(SLBIN)                 $(SLBIN)
  
 $(FEXE):        %:      %.o $(MATHLIBS)  $(FEXE):        %:      %.o
                 $(FLINK)                 $(FLINK)
                 $(SLBIN)                 $(SLBIN)
  
 $(SERVEREXE):   LL_TGT := $(LL_TGT) -lpq $(CFITSIOLIBS)  $(SERVEREXE):   LL_TGT := $(LL_TGT) $(PGLIBS) $(CFITSIOLIBS)
 $(SERVEREXE):   %:      %.o $(SERVERLIBS) $(SERVEREXE):   %:      %.o $(SERVERLIBS)
                         $(LINK)                         $(LINK)
                         $(SLBIN)                         $(SLBIN)
  
 $(MODEXE):      LL_TGT := $(LL_TGT) -lpq $(CFITSIOLIBS)  $(MODEXE):      LL_TGT := $(LL_TGT) $(PGLIBS) $(CFITSIOLIBS)
 $(MODEXE):      %:      %.o $(MODLIBS) $(MODEXE):      %:      %.o $(MODLIBS)
                         $(LINK)                         $(LINK)
                         $(SLBIN)                         $(SLBIN)
Line 254  $(MODEXE_SOCK): LL_TGT := $(LL_TGT) $(CF
Line 362  $(MODEXE_SOCK): LL_TGT := $(LL_TGT) $(CF
 $(MODEXE_SOCK): %_sock: %.o $(MODLIBS_SOCK) $(MODEXE_SOCK): %_sock: %.o $(MODLIBS_SOCK)
                         $(LINK)                         $(LINK)
                         $(SLBIN)                         $(SLBIN)
   # FMODEXE_SOCK contains all Fortran modules - the DoIt() function is defined inside a .f file.
 $(FMODEXE):     LL_TGT := $(LL_TGT) $(CFITSIOLIBS)  # These are socket-connect modules only. Assume they use third-party Fortran libraries
 $(FMODEXE):     %_sock: %.o $(FMODLIBS_SOCK)  # (although this may not be the case).
   $(FMODEXE_SOCK):        LL_TGT := $(LL_TGT) $(CFITSIOLIBS)
   $(FMODEXE_SOCK):     %_sock:    %.o $(FMODLIBS_SOCK)
                         $(FLINK)                         $(FLINK)
                         $(SLBIN)                         $(SLBIN)
  
 $(MODEXE_USEF): LL_TGT := $(LL_TGT) -lpq $(CFITSIOLIBS)  # MODEXE_USEF contains all C direct-connect modules that use third-party Fortran libraries.
   $(MODEXE_USEF): LL_TGT := $(LL_TGT) $(PGLIBS) $(CFITSIOLIBS)
 $(MODEXE_USEF):     %:  %.o $(MODLIBS) $(MODEXE_USEF):     %:  %.o $(MODLIBS)
                         $(FLINK)                         $(FLINK)
                         $(SLBIN)                         $(SLBIN)
   # MODEXE_USEF contains all C socket-connect modules that use third-party Fortran libraries.
 $(MODEXE_USEF_SOCK):    LL_TGT := $(LL_TGT) $(CFITSIOLIBS) $(MODEXE_USEF_SOCK):    LL_TGT := $(LL_TGT) $(CFITSIOLIBS)
 $(MODEXE_USEF_SOCK): %_sock: %.o $(MODLIBS_SOCK) $(MODEXE_USEF_SOCK): %_sock: %.o $(MODLIBS_SOCK)
                         $(FLINK)                         $(FLINK)
                         $(SLBIN)                         $(SLBIN)
   #***********************************************************************************************#


Legend:
Removed from v.1.22  
changed lines
  Added in v.1.72

Karen Tian
Powered by
ViewCVS 0.9.4