src/inc/common.mk 1.58

1.58 2009/03/10 00:29:57 galt
Modifications to make system to support optional external libraries, motivated by need for SSL
Index: src/inc/common.mk
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/common.mk,v
retrieving revision 1.57
retrieving revision 1.58
diff -b -B -U 4 -r1.57 -r1.58
--- src/inc/common.mk	14 Jan 2009 18:13:40 -0000	1.57
+++ src/inc/common.mk	10 Mar 2009 00:29:57 -0000	1.58
@@ -1,11 +1,26 @@
 CC=gcc
 # to build on sundance: CC=gcc -mcpu=v9 -m64
 ifeq (${COPT},)
-    COPT=-O
+    COPT=-O -g
 endif
 CFLAGS=
 HG_DEFS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_${MACHTYPE}
+
+#global external libraries 
+L=
+
+#default to using ssl
+ifeq (${USE_SSL},)
+    USE_SSL=1
+endif
+
+ifeq (${USE_SSL},1)
+    L+=-lssl
+    HG_DEFS+=-DUSE_SSL
+endif
+
+# change this or make it configurable based on some other setting, test, or value
 HG_INC=-I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc
 
 ifeq (${HG_WARN},)
   ifeq (darwin,$(findstring darwin,${OSTYPE}))