######################################################################### # # System-dependent definitions for Mac OS X using Mesa and "unix-like" # Tcl/Tk (static linking of libraries). # # Mike Ford 12/03/04 # University of Technology, Sydney # # Updated by Tone on Fri Apr 02 2004 # # ----------------------------------------------------------------------- # # !!! EDIT ACCORDING TO YOUR OWN NEEDS !!! # # ----------------------------------------------------------------------- # # BEWARE: The Apple X11 libraries don't work, but XCrySDen still runs # under the Apple X11 window server. Please link with the Darwin X # libraries instead. # See: http://ftp.xfree86.org/pub/XFree86/4.4.0/binaries/Darwin-ppc-7.x/ # You need to download the following packages: # # Xprog.tgz ... for static X11 and OpenGL libraries # Xbin.tgz ... for dynamic X11 and OpenGL libraries # ######################################################################## #------------------------------------------------------------------------ # if you have a GNU make it is better to set the MAKE variable to point # to gnu make #------------------------------------------------------------------------ MAKE = make #------------------------------------------------------------------------ # compilers & flags #------------------------------------------------------------------------ CFLAGS = -ansi -fwritable-strings -funroll-loops -fPIC -DUSE_FONTS CC = gcc #LDLIB = -ldl MATH = -lm FFLAGS = -O2 FC = g77 #------------------------------------------------------------------------ # X-libraries & include files # # for STATIC compilation one should add: -lpthread #------------------------------------------------------------------------ # NOTE: Use the XDarwin server instead of Apple's Xserver DARWIN_X11_PREFIX = /usr/X11 X_LIB = -L$(DARWIN_X11_PREFIX)/lib -lXmu -lX11 -lXext X_INCDIR = -I$(DARWIN_X11_PREFIX)/include ### ### use EITHER THIS: ### #-Possibility-1----------------------------------------------------------- # # XCRYSDEN package may contain the tcl8.4, tk8.4 & Mesa-4.0 sources !!! # If you would like to compile and use these then uncomment below lines and # comment lines "Possibility-2" (see below). # #------------------------------------------------------------------------ COMPILE_TCLTK = yes COMPILE_MESA = no # # Do we want a shared library version of Tcl/Tk/Mesa or static? # If we want shared then set the following flags to: --enable-shared # else set the following flag to: --disable-shared # TCLTK_OPTIONS = --disable-shared MESA_OPTIONS = --disable-shared --disable-3dnow # # Libraries (static loading) # for shared linking the libraries postfix should be .dylib # for static linking the libraries postfix should be .a # # Uncomment CoreFoundations for static linking CoreFoundation=/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation TCL_LIB = /sw/lib/libtcl$(TCL_VER2).dylib $(CoreFoundation) TK_LIB = /sw/lib/libtk$(TCL_VER2).dylib # use this for Darwin OpenGL: GLU_LIB = /sw/lib/mesa/libGLU.a GL_LIB = /sw/lib/mesa/libGL.a # use this for Mesa (much slower than Darwin OpenGL): #GLU_LIB = $(TOPDIR)/external/lib/libGLU.a #GL_LIB = $(TOPDIR)/external/lib/libGL.a # # Include directories # TCL_INCDIR = -I$(TOPDIR)/external/src/tcl$(TCL_VER3)/generic TK_INCDIR = -I$(TOPDIR)/external/src/tk$(TCL_VER3)/generic # use this for Darwin OpenGL: GL_INCDIR = -I/sw/include/mesa # use this for Mesa: #GL_INCDIR = -I$(TOPDIR)/external/include ### ### or THAT: ### #-Possibility-2---------------------------------------------------------- # # If you want to use your own libraries and include files, # then set below variables accordingly: # #------------------------------------------------------------------------ # # COMPILE_TCLTK = no # COMPILE_MESA = no # # # # # Libraries (use .a for static and .dylib for dynamic libraries) # # # # Note: use the darwin OpenGL libraries # TCL_LIB = -ltcl8.4.dylib # TK_LIB = -ltk8.4.dylib # GLU_LIB = -L$(DARWIN_X11_PREFIX)/lib -lGLU.dylib # GL_LIB = -lGL.dylib # # # # # Include directories (set accoring to your needs) # # # TCL_INCDIR = \ # -I/Library/Frameworks/Tcl.framework/Versions/8.4/Headers \ # -I/Library/Frameworks/Tcl.framework/Versions/8.4/PrivateHeaders # TK_INCDIR = \ # -I/Library/Frameworks/Tk.framework/Versions/8.4/Headers \ # -I/Library/Frameworks/Tk.framework/Versions/8.4/PrivateHeaders # GL_INCDIR = \ # -I$(DARWIN_X11_PREFIX)/include # # ------------------------------------------------------------------------