forked from KatsOide/SAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sad.conf
184 lines (157 loc) · 4.13 KB
/
sad.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# New Makefile -- Local Configuration Part Sample
#
## Compiler setting examples
# -- Interl C/Fortran Compiler 7.1 --
#COMPILER=Intel
#FC=ifc
#CC=icc
# -- Interl C/Fortran Compiler 8.x --
#COMPILER=Intel
#FC=ifort
#CC=icc
##SYS_FOPT+=-vms -ccdefault list
#SYS_FOPT_ENABLE_BACKSLASH_ESCAPE=-assume bscc
#SYS_DEPOBJ+=sim/intel_fortran8.o
# -- GNU Compiler Collection 4.1 or 4.2 --
SYS_FOPT= -Wall -m64 -Ofast
_USE_GFORTRAN= YES
_USE_G95= NO
COMPILER=GNU
SYS_CC_ABIOPT= -Wall -std="gnu11" -m64
ifeq ($(OSTYPE),darwin)
ifeq ($(MACHTYPE),x86_64)
SYS_FC_ABIOPT+= -m64 -Ofast
SYS_CC_ABIOPT+= -m64
endif
ifeq ($(MACHTYPE),powerpc)
SYS_FC_ABIOPT+= -m64
SYS_CC_ABIOPT+= -m64
endif
endif
#CC=gcc-4
CC=gcc-mp-8
FC=gfortran-mp-8
FOPT= -g -Ofast -fno-second-underscore -fdollar-ok -fargument-alias -frecursive -fbackslash -fall-intrinsics -Wall -m64 -fno-range-check -fbacktrace -falign-functions=64 -falign-jumps -falign-loops -falign-labels -ffpe-summary=none -std="gnu" -mcmodel=small
#-fprofile-generate
COPT= -g -Ofast -Wall -std="gnu11" -m64
ifeq ($(OSTYPE),linux)
CC=gcc
FC=gfortran
FOPT= -g -Ofast -fno-second-underscore -fdollar-ok -fargument-alias -frecursive -fbackslash -fall-intrinsics -Wall -m64 -fno-range-check -fbacktrace -falign-functions=64 -falign-jumps -falign-loops -falign-labels -ffpe-summary=none -std="gnu"
endif
_SYS_COPT_GCC= -Wall -std=gnu11
#ifeq ($(OSTYPE),cygwin)
#FC=g77
#FOPT= -Ofast -fno-second-underscore -fdollar-ok -fargument-alias -mpreferred-stack-boundary=4 -mfancy-math-387 -fbackslash
#else
#FC=gfortran
#endif
#HAVE_F_LNBLNK=NO
#SYS_DEPOBJ+=sim/unix_fortran_.o sim/fseek_Dummy_.o
# -- Debugging source tree --
#COPT=-g -Ofast -m64
# -- Debugging memory allocator --
#COPT+=-DDEBUG_MEMORY
# -- Debugging memory usege --
#COPT+=-DUSE_ELECTRICFENCE -DUSE_ELECTRICFENCE_FREECHECK
#EXE_LIBS+=-L/usr/local/lib -lefence
## SAD root directory
SAD_ROOT=$(PWD)
## Contrib source archive directory
#SOURCE_ARCHIVE_DIR=/usr/ports/distfiles
## X11 setup
#
USE_X11=YES
X11_PREFIX=/usr/X11
##X11_INCDIR=$(X11_PREFIX)/include
##X11_LIBDIR=$(X11_PREFIX)/lib
##X11_LIBS=-lX11
## Tcl/Tk setup
#
USE_TCLTK=YES
BUILD_TCLTK=YES
TCLTK_CFLAGS+=-DTCL_NO_STACK_CHECK
ifeq ($(OSTYPE),darwin)
ifeq ($(MACHTYPE),x86_64)
TCLTK_CFLAGS+= -m64
endif
ifeq ($(MACHTYPE),powerpc)
TCLTK_CFLAGS+= -m64
endif
endif
##USE_TCLTK_SHARED_LIBRARY=YES
##TCLTK_GUI_BACKEND=X11|AQUA
TCLTK_CONFIG_ARG=--enable-64bit
TCLTK_FONT_SYSTEM=Xft
#TCLTK_VERSION=8.5.11
ifeq ($(OSTYPE),cygwin)
#TCLTK_VERSION=8.4.14
endif
##TCLTK_PREFIX=$(SAD_ARCH_DIR)
##TCLTK_INCDIR=$(TCLTK_PREFIX)/include
##TCLTK_LIBDIR=$(TCLTK_PREFIX)/lib
##TCLTK_LIBS=-ltk$(TCLTK_FEATURE_VERSION) -ltcl$(TCLTK_FEATURE_VERSION)
## Python setup
#
#USE_PYTHON=YES
##BUILD_PYTHON=YES
##USE_PYTHON_THREAD=YES
##PYTHON_VERSION=2.4
##PYTHON_PATCH_LEVEL=1
##PYTHON_PREFIX=$(SAD_ARCH_DIR)
##PYTHON_INCDIR=$(PYTHON_PREFIX)/include/python$(PYTHON_VERSION)
##PYTHON_LIBDIR=$(PYTHON_PREFIX)/lib
##PYTHON_LIBS=-lpython$(PYTHON_VERSION)
##PYTHON_PATH=$(PYTHON_PREFIX)/lib/python$(PYTHON_VERSION)
## EPICS setup
#
#USE_EPICS=YES
#EPICS_INCDIR=$(EPICS_PREFIX)/include
#EPICS_LIBDIR=$(EPICS_PREFIX)/lib
#EPICS_LIBS=-lca -lDb -lCom
## for KEK-B EPICS setup
#USE_KEKB_EPICS=YES
# --- don't touch ---
ifeq ($(USE_KEKB_EPICS),YES)
KEKB_EPICS_ARCH=Unknown
ifeq ($(OS_NAME),Linux)
ifeq ($(CPU_ARCH),i386)
KEKB_EPICS_ARCH=Linux
endif
endif
ifeq ($(OS_NAME),OSF1)
ifeq ($(CPU_ARCH),Alpha)
KEKB_EPICS_ARCH=alpha
endif
endif
ifeq ($(OS_NAME),Darwin)
ifeq ($(CPU_ARCH),i386)
KEKB_EPICS_ARCH=darwin-x86
EPICS_PREFIX=/proj/epics/R314/R3149/base
EPICS_LIBS=-lca -ldbStaticHost -lCom
COPT+=-I$(EPICS_PREFIX)/include/os/Darwin
endif
ifeq ($(CPU_ARCH),PowerPC)
KEKB_EPICS_ARCH=darwin-ppc
EPICS_PREFIX=/proj/epics/R314/R3149/base
EPICS_LIBS=-lca -ldbStaticHost -lCom
COPT+=-I$(EPICS_PREFIX)/include/os/Darwin
endif
endif
ifeq ($(OS_NAME),HP-UX)
ifeq ($(CPU_ARCH),PA1.0)
KEKB_EPICS_ARCH=hp700
endif
ifeq ($(CPU_ARCH),PA2.0)
KEKB_EPICS_ARCH=hppa8k
endif
endif
ifeq ($(KEKB_EPICS_ARCH),Unknown)
$(error Unknown architecture)
else
USE_EPICS=YES
EPICS_PREFIX?=/proj/epics/R313/base
EPICS_LIBDIR=$(EPICS_PREFIX)/lib/$(KEKB_EPICS_ARCH)
endif
endif # USE_KEKB_EPICS==YES
# End of File