Index: src/hg/hgTracks/makefile
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/makefile,v
retrieving revision 1.83
retrieving revision 1.84
diff -b -B -U 1000000 -r1.83 -r1.84
--- src/hg/hgTracks/makefile	10 Mar 2009 00:33:59 -0000	1.83
+++ src/hg/hgTracks/makefile	24 Jun 2009 20:33:04 -0000	1.84
@@ -1,51 +1,54 @@
 include ../../inc/common.mk
 
 L += ${MYSQLLIBS} -lm
 MYLIBDIR = ../../lib/${MACHTYPE}
 MYLIBS =  ${MYLIBDIR}/jkhgap.a ${MYLIBDIR}/jkweb.a
+ifeq (${USE_BAM},1)
+    MYLIBS += ${SAMPATH}/libbam.a
+endif
 
 A = hgTracks
 
-O = $A.o altGraphXTrack.o bedGraph.o bedTrack.o bigWigTrack.o chainTrack.o \
+O = $A.o altGraphXTrack.o bamTrack.o bedGraph.o bedTrack.o bigWigTrack.o chainTrack.o \
 	cgapSageTrack.o chromGraphTrack.o config.o contigTrack.o \
 	coverageTrack.o cytoBandTrack.o cutterTrack.o \
         expRatioTracks.o factorSource.o goldTrack.o loweLabTracks.o \
 	mafTrack.o netTrack.o pslTrack.o rmskTrack.o \
 	sampleTracks.o simpleTracks.o switchGear.o transMapTracks.o \
 	wabaTrack.o wigTrack.o cds.o \
 	wigMafTrack.o encode.o variation.o transcriptome.o\
 	rnaFoldTrack.o retroGene.o hapmapTrack.o rnaPLFoldTrack.o\
 	wiki.o wikiTrack.o
 
 include ../../inc/cgi_build_rules.mk
 
 ifeq (${GBROWSE}, 1)
   GBROWSE_D=-DGBROWSE
   A = gbrowseTest
   O = $A.o oneTrack.o \
       bedGraph.o cds.o chainTrack.o mafTrack.o netTrack.o pslTrack.o \
       simpleTracks.o wigMafTrack.o wigTrack.o
 else
   GBROWSE_D=
 endif
 
 %.o: %.c
 	${CC} ${COPT} ${CFLAGS} ${GBROWSE_D} ${HG_DEFS} ${HG_WARN} ${HG_INC} ${XINC} -o $@ -c $<
 
 mgsc: strip
 	mv $A ${CGI_BIN}/$A
 
 compile: $O 
 	${CC} -o $A $O ${MYLIBS} ${L}
 
 wigTrack.o:	wigCommon.h
 bedGraph.o:	wigCommon.h
 
 switchGear.o:	switchGear.h
 cds.o:		cds.h
 hgTracks.o:	cds.h
 pslTrack.o:	cds.h
 
 clean::
 	rm -f ct_hgwdev_*.bed hgtIdeo_*.gif hgt_*.gif
 

