| 1 |
######################################################################### |
| 2 |
# |
| 3 |
# System-dependent definitions for Mac OS X using Mesa and "unix-like" |
| 4 |
# Tcl/Tk. |
| 5 |
# |
| 6 |
# Mike Ford 12/03/04 |
| 7 |
# University of Technology, Sydney |
| 8 |
# |
| 9 |
# Updated by Tone on Mon Dec 22 2008 |
| 10 |
# |
| 11 |
# ----------------------------------------------------------------------- |
| 12 |
# |
| 13 |
# !!! EDIT ACCORDING TO YOUR OWN NEEDS !!! |
| 14 |
# |
| 15 |
# ----------------------------------------------------------------------- |
| 16 |
# |
| 17 |
# BEWARE: The Apple X11 libraries don't work, but XCrySDen still runs |
| 18 |
# under the Apple X11 window server. Please link with the Darwin X |
| 19 |
# libraries instead. |
| 20 |
# See: http://ftp.xfree86.org/pub/XFree86/4.4.0/binaries/Darwin-ppc-7.x/ |
| 21 |
# You need to download the following packages: |
| 22 |
# |
| 23 |
# Xprog.tgz ... for static X11 and OpenGL libraries |
| 24 |
# Xbin.tgz ... for dynamic X11 and OpenGL libraries |
| 25 |
# |
| 26 |
######################################################################## |
| 27 |
|
| 28 |
#------------------------------------------------------------------------ |
| 29 |
# if you have a GNU make it is better to set the MAKE variable to point |
| 30 |
# to gnu make |
| 31 |
#------------------------------------------------------------------------ |
| 32 |
MAKE = make |
| 33 |
|
| 34 |
#------------------------------------------------------------------------ |
| 35 |
# compilers & flags |
| 36 |
#------------------------------------------------------------------------ |
| 37 |
CFLAGS = -funroll-loops -fPIC -DTOGL_USE_FONTS -DHAVE_NO_GETLINE |
| 38 |
CC = gcc |
| 39 |
#LDLIB = -ldl |
| 40 |
MATH = -lm |
| 41 |
|
| 42 |
FFLAGS = |
| 43 |
FC = g77 -O2 |
| 44 |
|
| 45 |
|
| 46 |
#------------------------------------------------------------------------ |
| 47 |
# X-libraries & include files |
| 48 |
# |
| 49 |
# for STATIC compilation one should add: -lpthread |
| 50 |
#------------------------------------------------------------------------ |
| 51 |
|
| 52 |
# NOTE: Use the XDarwin server instead of Apple's Xserver |
| 53 |
|
| 54 |
DARWIN_X11_PREFIX = /usr/X11R6-darwin |
| 55 |
X_LIB = -L$(DARWIN_X11_PREFIX)/lib -lXmu -lX11 -lXext |
| 56 |
X_INCDIR = -I$(DARWIN_X11_PREFIX)/include |
| 57 |
|
| 58 |
|
| 59 |
#------------------------------------------------------------------------ |
| 60 |
# Libraries and include files |
| 61 |
#------------------------------------------------------------------------ |
| 62 |
|
| 63 |
# |
| 64 |
# Libraries (use .a for static and .dylib for dynamic libraries) |
| 65 |
# |
| 66 |
# BEWARE: must use the darwin OpenGL libraries |
| 67 |
TCL_LIB = -ltcl$(TCL_VER2).dylib |
| 68 |
TK_LIB = -ltk$(TCL_VER2).dylib |
| 69 |
GLU_LIB = -L$(DARWIN_X11_PREFIX)/lib -lGLU.dylib |
| 70 |
GL_LIB = -lGL.dylib |
| 71 |
FFTW3_LIB = -lfftw3.dylib |
| 72 |
# this is only used for some testing purposes |
| 73 |
#MESCHACH_LIB = -lmeschach.dylib |
| 74 |
|
| 75 |
|
| 76 |
# |
| 77 |
# Include directories (set accoring to your needs) |
| 78 |
# |
| 79 |
TCL_INCDIR = \ |
| 80 |
-I/Library/Frameworks/Tcl.framework/Versions/$(TCL_VER2)/Headers \ |
| 81 |
-I/Library/Frameworks/Tcl.framework/Versions/$(TCL_VER2)/PrivateHeaders |
| 82 |
TK_INCDIR = \ |
| 83 |
-I/Library/Frameworks/Tk.framework/Versions/$(TCL_VER2)/Headers \ |
| 84 |
-I/Library/Frameworks/Tk.framework/Versions/$(TCL_VER2)/PrivateHeaders |
| 85 |
GL_INCDIR = \ |
| 86 |
-I$(DARWIN_X11_PREFIX)/include |
| 87 |
|
| 88 |
FFTW3_INCDIR = |
| 89 |
# this is only used for some testing purposse |
| 90 |
#MESCHACH_INCDIR = |
| 91 |
|
| 92 |
#------------------------------------------------------------------------ |