src/hg/hgGeneRing/makefile 1.3

1.3 2009/03/10 00:33:58 galt
Modifications to make system to support optional external libraries, motivated by need for SSL
Index: src/hg/hgGeneRing/makefile
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgGeneRing/makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 1000000 -r1.2 -r1.3
--- src/hg/hgGeneRing/makefile	2 Jul 2005 06:39:30 -0000	1.2
+++ src/hg/hgGeneRing/makefile	10 Mar 2009 00:33:58 -0000	1.3
@@ -1,45 +1,45 @@
 
 include ../../inc/common.mk
 
 #make COPT= alpha  
 #(to disable gcc optimization which is messing up RL right now)
 
 A = hgGeneRing
 
-L = $(MYSQLLIBS) -lm -lcrypt
+L += $(MYSQLLIBS) -lm -lcrypt
 MYLIBDIR = ../../lib/${MACHTYPE}
 MYLIBS = $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a 
 
 O = $A.o
 
 include ../../inc/cgi_build_rules.mk
 
 mgsc: compile
 	mv $A ${CGI_BIN}/$A
 
 compile: $O interaction.o
 	${CC} $O interaction.o ${MYLIBS} ${L}
 	mv ${AOUT} $A${EXE}
 	chmod a+rx $A
 
 $O: $A.c
 
 interaction.c interaction.h: interaction.as
 	autoSql interaction.as interaction -dbLink
 
 interaction.o: interaction.c interaction.h 
 
 backup: clean
 	date +%Y-%m-%d-%H-%M | gawk '{printf("zip -r $(A)%s.zip *\n",$$1);}' > tempX
 	chmod 755 tempX
 	./tempX
 	rm tempX 
 	scp *.zip screech:/scratch/backups/
 	rm *.zip
 
 push:
 	scp $(APACHE)/cgi-bin/$(A) hgwbeta:$(APACHE)/cgi-bin/
 
 clean::
 	rm -f $O