-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeconf
80 lines (70 loc) · 2.12 KB
/
Makeconf
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
ARCH=macosx
# Debugging statements?
# DEBUG=-DEBUG
include ~/Source/reflpak/Makeconf.tcltk
WISH=$(TCL_PREFIX)/bin/wish8.4
# Tcl packages we need to include
TKCON=$(TCL_PREFIX)/lib/tkcon.tcl
OCTAVE=$(TCL_PREFIX)/lib/octave0.1
BWIDGET=$(TCL_PREFIX)/lib/bwidget1.6
SNITPATH ?= snit1.0
#TKDND=$(TCL_PREFIX)/lib/tkdnd1.0
#TKDND_EXT=$(TKDND)/libtkdnd1.0.so
#TKTABLE=$(TCL_PREFIX)/lib/Tktable2.8
#TKTABLE_EXT=$(TKTABLE)/libTktable2.8.so
# Fortran compiler
F77=gfortran
FFLAGS=-O3
FLIBS=-lm
FPP=-x f77-cpp-input
# C compiler
CC=$(TCL_CC)
CXX=g++
CFLAGS=$(TCL_CFLAGS_OPTIMIZE) $(TCL_SHLIB_CFLAGS) $(TCL_CFLAGS_WARNING) $(TCL_INCLUDE_SPEC)
LIBS:=$(TCL_STUB_LIB_SPEC) $(TK_STUB_LIB_SPEC) $(TCL_LIBS) $(FLIBS) $(TCL_SHLIB_LD_LIBS)
LD=$(TCL_SHLIB_LD)
LD_CXX=$(CXX) -dynamiclib
LDFLAGS=
EXE=
LDEXT=$(TCL_SHLIB_SUFFIX)
# If you don't have ZLIB 1.2 handy, uncomment -DMISSING_ZLIB
# and comment out the following ZINC/ZLIB statements
#ZINC=-DMISSING_LIBZ
ZHOME=/opt/local
ZINC=-I$(ZHOME)/include
ZLIB=$(ZHOME)/lib/libz.a
# Open GL + Togl
ifdef USE_AGL
GLDEF = -DTOGL_AGL -DOSX
GLINC =
GLLIBS = -framework AGL -framework OpenGL -framework ApplicationServices
GLUTINC =
GLUTLIBS = -framework GLUT -framework Foundation
# Build for AGL rather than private X11 version of Tk
TCL_F = /Library/Frameworks/Tcl.framework
TK_F = /Library/Frameworks/Tk.framework
CC=gcc
CFLAGS = -g -O2 \
-I$(TCL_F)/Versions/8.4/Headers \
-I$(TK_F)/Versions/8.4/Headers \
-I$(TK_F)/Versions/8.4/PrivateHeaders \
-I./macosx
ifndef USE_STUBS
LIBS = -F/Library/Frameworks -framework Tk -framework Tcl -lm
else
LIBS = -L$(TCL_F) -ltclstub8.4 -L$(TK_F) -ltkstub8.4 -lm
endif
else # !USE_AGL => USE_X11
# Needed the following link in the current directory to find GL/glut.h
# ln -s /System/Library/Frameworks/GLUT.framework/Versions/Current/Headers/ GL
GLDEF = -DTOGL_X11
GLINC = -I/usr/X11R6/include
GLLIBS = -L/usr/X11R6/lib -lGL -lXmu -lXt -lX11
GLUTINC = -I.
GLUTLIBS = -lglut
endif # USE_AGL
# NeXus
#USE_NEXUS = 1
NEXUS = ~/cvs/nexus
NEXUSINC = -I$(NEXUS)/include
NEXUSLIB = -L$(NEXUS)/src/.libs -lNeXus -lmxml -lhdf5 -lmfhdf -ldf -ljpeg -ldl