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
|
#---------------------------------------------------------------------
# PyMOL Makefile Rules
#---------------------------------------------------------------------
#
#- Building ----------------------------------------------------------
#--- Tell "make" how to get to PyMOL
PYMOL_PATH = /users/delwarl/pymol
#---------------------------------------------------------------------
#
#- Dependencies ------------------------------------------------------
#--- X-windows
XLIB_DIR =
XINC_DIR =
#--- Python
PYTHON_EXE = /usr/local/bin/python
PYTHON_LIB = -framework Python
PYTHON_LIB_DIR =
PYTHON_INC_DIR = -I/Library/Frameworks/Python.framework/Headers/
#--- Other external dependencies
EXT_INC_DIR = -I$(PYMOL_PATH)/ext/include \
-I/System/Library/Frameworks/OpenGL.framework/Headers/ \
-I/System/Library/Frameworks/CoreFoundation.framework/Headers/ \
-I/System/Library/Frameworks/AppKit.framework/Headers/ \
-I/System/Library/Frameworks/ApplicationServices.framework/Headers/ \
-I/System/Library/Frameworks/Cocoa.framework/Headers/ \
-I/System/Library/Frameworks/IOKit.framework/Headers/ \
-I$(PYMOL_PATH)/layerOSX
EXT_LIB_DIR = -L$(PYMOL_PATH)/ext/lib
#---------------------------------------------------------------------
#
#- Build for OSX-Darwin as an importable module ----------------------
#--- System libraries
LIBS = -lpng $(PYTHON_LIB) $(ZLIB) -lm -framework OpenGL \
-framework AppKit -framework ApplicationServices -framework CoreFoundation \
-framework Cocoa -framework IOKit -L./layerOSX -lForeground
#--- PyMOL configuration
DEFS = -D_PYMOL_MODULE -D_PYMOL_OSX
#--- How we build shared libraries
BUILD = -bundle -undefined suppress -flat_namespace
#--- What are we trying to build?
DEST = -o modules/pymol/_cmd.so
#--- CC options
CCOPT1 = -no-cpp-precomp -Wno-long-double
#--- libraries for PyOpenGL
PYOGL_LIB = -framework OpenGL
#---------------------------------------------------------------------
#
#- Choose One --------------------------------------------------------
#--- GCC Optimized
CCOPT2 = -O3 -ffast-math -funroll-loops -fomit-frame-pointer \
-finline -D_PYMOL_INLINE
#--- GCC Profiling
#CCOPT2 = -pg -O3 -funroll-loops
#--- Debugging
#CCOPT2 = -g
#---------------------------------------------------------------------
#
#---------------------------------------------------------------------
#
#- Choose One Pair ---------------------------------------------------
#--- Libpng2 available and contains zlib
#PNG = -D_HAVE_LIBPNG
#ZLIB =
#--- Libpng2 available but needs zlib
PNG = -D_HAVE_LIBPNG
ZLIB = -lz
#--- Libpng2 not available
#PNG =
#ZLIB =
#---------------------------------------------------------------------
#
#---------------------------------------------------------------------
# No changes normally required below here
#---------------------------------------------------------------------
CC = cc
LIB_DIRS = $(EXT_LIB_DIR) $(PYTHON_LIB_DIR) $(XLIB_DIR)
# Enable source files to find headers
PYMOL_INC_DIRS = -I../layer0 -I../layer1 -I../layer2 \
-I../layer3 -I../layer4 -I../layer5
C_FLAGS = $(CCOPT1) $(CCOPT2) $(EXT_INC_DIR) $(PYTHON_INC_DIR) \
$(XINC_DIR) $(PNG) $(DEFS) $(BUGS)
CFLAGS = $(C_FLAGS)
|