1 |
# This file identifies that this CVS working directory contains Stanford-specific project configuration and make files. |
2 |
# It also contains Stanford-specific DEFAULT configuration, for both |
3 |
# the base and proj directories |
4 |
#To override this, use config.local. |
5 |
|
6 |
# Stanford third-party libraries used by base |
7 |
POSTGRES_LIB = pq |
8 |
CFITSIO_LIB = cfitsio |
9 |
|
10 |
ifeq ($(JSOC_MACHINE), linux_x86_64) |
11 |
POSTGRES_INCS = /usr/include |
12 |
POSTGRES_LIBS = /usr/lib64 |
13 |
CFITSIO_INCS = /home/jsoc/include |
14 |
CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64 |
15 |
endif |
16 |
|
17 |
ifeq ($(JSOC_MACHINE), linux_ia32) |
18 |
POSTGRES_INCS = /usr/include |
19 |
POSTGRES_LIBS = /usr/lib |
20 |
CFITSIO_INCS = /home/jsoc/include |
21 |
CFITSIO_LIBS = /home/jsoc/lib/linux-ia32 |
22 |
endif |
23 |
|
24 |
ifeq ($(JSOC_MACHINE), linux_ia64) |
25 |
POSTGRES_INCS = /usr/include/pgsql |
26 |
POSTGRES_LIBS = /usr/lib |
27 |
CFITSIO_INCS = /home/jsoc/include |
28 |
CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64 |
29 |
endif |
30 |
|
31 |
# Stanford third-party libraries used by the project directories |
32 |
FFTW3_LIB = fftw3 |
33 |
|
34 |
ifeq ($(JSOC_MACHINE), linux_ia32) |
35 |
FFTW_INCS = /home/jsoc/include |
36 |
FFTW_LIBS = /home/jsoc/lib/linux-ia32 |
37 |
endif |
38 |
|
39 |
ifeq ($(JSOC_MACHINE), linux_x86_64) |
40 |
FFTW_INCS = /home/jsoc/include |
41 |
FFTW_LIBS = /home/jsoc/lib/linux-x86_64 |
42 |
endif |
43 |
|
44 |
# Try to specialize for non-default machines |
45 |
ifeq ($(MACHTYPE), j1) |
46 |
POSTGRES_INCS = /usr/include/pgsql |
47 |
POSTGRES_LIBS = /usr/lib64 |
48 |
CFITSIO_INCS = /home/jsoc/include |
49 |
CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64 |
50 |
endif |
51 |
|
52 |
ifeq ($(MACHTYPE), d02) |
53 |
POSTGRES_INCS = /usr/include/pgsql |
54 |
POSTGRES_LIBS = /usr/lib |
55 |
CFITSIO_INCS = __CFITSIO_NOT_INSTALLED__ |
56 |
CFITSIO_LIBS = __CFITSIO_NOT_INSTALLED__ |
57 |
endif |
58 |
|
59 |
ifeq ($(MACHTYPE), dbserver) |
60 |
POSTGRES_INCS = /usr/local/pgsql/include |
61 |
POSTGRES_LIBS = /usr/lib64 |
62 |
CFITSIO_INCS = /home/jsoc/include |
63 |
CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64 |
64 |
endif |
65 |
|
66 |
ifeq ($(MACHTYPE), cluster) |
67 |
POSTGRES_INCS = __POSTGRES_DEVELOP_NOT_INSTALLED__ |
68 |
POSTGRES_LIBS = /usr/lib64 |
69 |
CFITSIO_INCS = /home/jsoc/include |
70 |
CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64 |
71 |
endif |
72 |
|
73 |
ifeq ($(MACHTYPE), dcs) |
74 |
POSTGRES_INCS = /usr/include/pgsql |
75 |
POSTGRES_LIBS = /usr/lib64 |
76 |
CFITSIO_INCS = /home/jsoc/include |
77 |
CFITSIO_LIBS = /home/jsoc/lib/linux-x86_64 |
78 |
endif |
79 |
# Set custom make file to tell the make system that the gcc cfitsio library is called |
80 |
# libcfitsio_gcc.a |
81 |
ifeq ($(COMPILER), gcc) |
82 |
ifeq ($(JSOC_MACHINE), linux_x86_64) |
83 |
CFITSIO_LIB = cfitsio_gcc |
84 |
endif |
85 |
endif |