version 1.21, 2008/06/23 18:43:00
|
version 1.28, 2008/10/08 23:46:15
|
|
|
STATIC = | STATIC = |
DBNAME = POSTGRESQL | DBNAME = POSTGRESQL |
| |
|
# This optional file has custom definitions created by the configure script |
|
-include $(SRCDIR)/custom.mk |
|
|
# USED BY NEITHER linux_x86_64 nor linux_ia32 | # USED BY NEITHER linux_x86_64 nor linux_ia32 |
PGIPATH = /usr/include/pgsql | PGIPATH = /usr/include/pgsql |
| |
|
ifeq ($(JSOC_MACHINE), mac_osx) |
|
COMPILER = gcc |
|
else |
COMPILER = icc | COMPILER = icc |
|
endif |
| |
# 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 = 1 |
| |
ifdef JSOC_DEBUG | ifdef JSOC_DEBUG |
ifeq ($(JSOC_DEBUG), 1) | ifeq ($(JSOC_DEBUG), 1) |
|
|
| |
_JSOCROOT_ = .. | _JSOCROOT_ = .. |
| |
|
ifeq ($(JSOC_MACHINE), mac_osx) |
|
F77 = f77 |
|
else |
F77 = ifort | F77 = ifort |
|
endif |
|
|
# if fortran compiler | # if fortran compiler |
D_GCC_FORT = | D_GCC_FORT = |
ifeq ($(F77), ifort) | ifeq ($(F77), ifort) |
|
|
# 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 | CFITSIOH = -I$(_JSOCROOT_)/lib_third_party/include |
#CFITSIOH = -I/home/kehcheng/include |
|
GSLH = -I$(_JSOCROOT_)/lib_third_party/include | GSLH = -I$(_JSOCROOT_)/lib_third_party/include |
| |
ifeq ($(JSOC_MACHINE), linux_x86_64) | ifeq ($(JSOC_MACHINE), linux_x86_64) |
Line 63 ifeq ($(JSOC_MACHINE), linux_x86_64) |
|
Line 73 ifeq ($(JSOC_MACHINE), linux_x86_64) |
|
# Path to 64-bit 3rd-party libraries | # Path to 64-bit 3rd-party libraries |
FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/ | FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/ |
CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/ | CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/ |
# CFITSIOL = -L/home/kehcheng/lib/x86_64/ |
|
GSLL = -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/ | ECPGL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_x86_64/ |
endif | endif |
Line 72 ifeq ($(JSOC_MACHINE), linux_ia32) |
|
Line 81 ifeq ($(JSOC_MACHINE), linux_ia32) |
|
# Path to 32-bit 3rd-party libraries | # Path to 32-bit 3rd-party libraries |
FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/ | FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/ |
CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/ | CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/ |
# CFITSIOL = -L/home/kehcheng/lib/x86/ |
|
GSLL = -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/ | ECPGL = -L$(_JSOCROOT_)/lib_third_party/lib/linux_ia32/ |
endif | endif |
Line 81 ifeq ($(JSOC_MACHINE), mac_osx) |
|
Line 89 ifeq ($(JSOC_MACHINE), mac_osx) |
|
# Path to 32-bit 3rd-party libraries | # Path to 32-bit 3rd-party libraries |
FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/ | FMATHLIBSL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/ |
CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/ | CFITSIOL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/ |
# CFITSIOL = -L/home/kehcheng/lib/mac_osx/ |
|
GSLL = -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/ | ECPGL = -L$(_JSOCROOT_)/lib_third_party/lib/mac_osx/ |
endif | 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 |
CFITSIOLIBS = $(CFITSIOL) -lcfitsio | CFITSIOLIBS = $(CFITSIOL) -lcfitsio |
|
|
|
ifeq ($(COMPILER), gcc) |
|
ifeq ($(JSOC_MACHINE), linux_x86_64) |
|
ifneq ($(CFITSIOFNAME_GCC_X86_64),) |
|
FMATHLIBS = $(FMATHLIBSL) -lfftw3f -l$(CFITSIOFNAME_GCC_X86_64) |
|
CFITSIOLIBS = $(CFITSIOL) -l$(CFITSIOFNAME_GCC_X86_64) |
|
endif |
|
endif |
|
endif |
|
|
GSLLIBS = $(GSLL) -lgsl -lgslcblas | GSLLIBS = $(GSLL) -lgsl -lgslcblas |
| |
### Build flags for all targets | ### Build flags for all targets |
Line 208 ifneq ($(COMPILER), icc) |
|
Line 225 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) $(LIBDEFS) $(LIBDSTRUCT) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG) $(LIBMISC) |
FSRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMSF) $(LIBMISC) $(LIBDEFS) $(LIBDSTRUCT) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG) |
FSRCLIBS = $(LIBTHREADUTIL) $(LIBRICECOMP) $(LIBCMDPARAMSF) $(LIBDEFS) $(LIBDSTRUCT) $(LIBTIMEIO) $(LIBFITSRW) $(LIBERRLOG) $(LIBMISC) |
| |
########## Libraries to link for server executables, ############## | ########## Libraries to link for server executables, ############## |
########## standalone executables and pipeline modules. ############## | ########## standalone executables and pipeline modules. ############## |