src/inc/common.mk 1.68

1.68 2009/09/11 20:14:04 pchan
include lowe lab specific definitions and add LOWELAB_DEFS to gcc statement only when LOWELAB environment variable is defined
Index: src/inc/common.mk
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/common.mk,v
retrieving revision 1.67
retrieving revision 1.68
diff -b -B -U 4 -r1.67 -r1.68
--- src/inc/common.mk	5 Aug 2009 23:34:31 -0000	1.67
+++ src/inc/common.mk	11 Sep 2009 20:14:04 -0000	1.68
@@ -104,6 +104,29 @@
 
 # location of stringify program
 STRINGIFY = ${BINDIR}/stringify
 
+#Lowelab defines
+#The lowelab specific code will be included in compilation if the following conditions are satistied
+LOWELAB_WIKI_DEF=
+LOWELAB_DEF=
+ifdef LOWELAB
+    LOWELAB_WIKI=1
+    LOWELAB_DEF=-DLOWELAB
+endif
+ifdef LOWELAB_WIKI
+    LOWELAB_WIKI_DEF=-DLOWELAB_WIKI
+endif
+LOWELAB_DEFS=${LOWELAB_DEF} ${LOWELAB_WIKI_DEF}
+
+ifdef LOWELAB
+    ifeq (${CGI_BIN},/usr/local/apache/cgi-bin)
+        CGI_BIN=/www/cgi-bin
+    endif
+    ifeq (${DOCUMENTROOT},/usr/local/apache/htdocs)
+        DOCUMENTROOT=/www/browser-docs
+    endif
+endif
+
 %.o: %.c
-	${CC} ${COPT} ${CFLAGS} ${HG_DEFS} ${HG_WARN} ${HG_INC} ${XINC} -o $@ -c $<
+	${CC} ${COPT} ${CFLAGS} ${HG_DEFS} ${LOWELAB_DEFS} ${HG_WARN} ${HG_INC} ${XINC} -o $@ -c $<
+