File: Rules.sunos5

package info (click to toggle)
pymol 1.7.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 42,668 kB
  • ctags: 25,775
  • sloc: ansic: 494,779; python: 75,446; cpp: 20,088; makefile: 351; sh: 172; csh: 21
file content (97 lines) | stat: -rw-r--r-- 2,806 bytes parent folder | download | duplicates (8)
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
#---------------------------------------------------------------------
# PyMOL Makefile Rules 
#---------------------------------------------------------------------
#
#- Building ----------------------------------------------------------
#--- Tell "make" how to get to PyMOL 
PYMOL_PATH = /home/mug/warren/dynamic/pymol
#---------------------------------------------------------------------
#
#- Dependencies ------------------------------------------------------
#--- X-windows
XLIB_DIR = -L/usr/X11R6/lib
XINC_DIR = -I/usr/X11R6/include
#--- Python
PYTHON_EXE = $(PYMOL_PATH)/ext/bin/python
PYTHON_LIB =
PYTHON_LIB_DIR = 
PYTHON_INC_DIR = -I$(PYMOL_PATH)/ext/include/python2.2 \
	-I$(PYMOL_PATH)/ext/include/python2.2/Numeric
#--- Other external dependencies
EXT_INC_DIR = -I$(PYMOL_PATH)/ext/include
EXT_LIB_DIR = -L$(PYMOL_PATH)/ext/lib
#---------------------------------------------------------------------
#
#- Build for LINUX as an importable module ---------------------------
#--- System libraries
LIBS = $(PYTHON_LIB) -lglut -lGL -lGLU -ldl -lpng -lXmu $(ZLIB) -lm
#--- PyMOL configuration
DEFS = -D_PYMOL_MODULE -D_PYMOL_NUMPY 
#--- How we build shared libraries
BUILD = -B dynamic -G
#--- What are we trying to build?
DEST = -o modules/pymol/_cmd.so
#--- Gcc Options for Linux
CCOPT1 = 
#--- libraries for PyOpenGL 
PYOGL_LIB =  -lglut -lGL -lGLU -lXmu -lXi
#---------------------------------------------------------------------
#
#- Choose One --------------------------------------------------------
#--- GCC Optimized
CCOPT2 = -O
#--- GCC Profiling
#CCOPT2 = -pg -O3 -funroll-loops
#--- Debugging
#CCOPT2 = -g
#---------------------------------------------------------------------
#
#- Choose One --------------------------------------------------------
#--- Workaround for XFree86/DRI linux dll problem for module build
BUGS = -D_DRI_WORKAROUND
#---
#BUGS =
#---------------------------------------------------------------------
#
#- 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 = gcc

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)