 +    qname_hash_bucket = md_malloc(sizeof(*qname_hash_bucket)*QNAME_HASH_SIZE, mem_bamGetQnameId1, 1);
 +}
 +PROFILE_MEM_INIT();
-+fprintf(stderr, "(I) sam-to-bam $Rev: 79 $\n");
++fprintf(stderr, "(I) sam-to-bam $Rev: 80 $\n");
 +#if !defined(DEBUG_POS)
 +fprintf(stderr, "(I) **** built with no DEBUG_POS feature\n");
 +#endif

+static long	mem_sortSam1;
+static long	mem_sortSam2;
+static long	mem_saveUnmapReads;
+
+static long md_register_mem_id(const char * mem_id_str);
+#define REGISTER_MEM_ID(id) id = md_register_mem_id(#id)

+CFLAGS   = -g -MD -Wall -O2
+endif
+LDFLAGS  = 
+LIBS     = -lm -lz -ldl -ltcmalloc
 
 DFLAGS=     -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_CURSES_LIB=1
 LOBJS=      bam_aux.o bam.o bam_import.o sam.o \
