3 CC= gccwine # on my laptop, this is an alias to [wine "c:/mingw/bin/gcc"]
6 DFLAGS= -D_FILE_OFFSET_BITS=64 -D_CURSES_LIB=0 #-D_USE_KNETFILE
7 LOBJS= bgzf.o kstring.o bam_aux.o bam.o bam_import.o sam.o bam_index.o \
8 bam_pileup.o bam_lpileup.o bam_md.o glf.o razf.o faidx.o bam_sort.o
9 AOBJS= bam_tview.o bam_maqcns.o bam_plcmd.o sam_view.o \
10 bam_rmdup.o bam_rmdupse.o bam_mate.o bam_stat.o bam_color.o \
20 $(CC) -c $(CFLAGS) $(DFLAGS) $(INCLUDES) $< -o $@
22 all-recur lib-recur clean-recur cleanlocal-recur install-recur:
23 @target=`echo $@ | sed s/-recur//`; \
25 list='$(SUBDIRS)'; for subdir in $$list; do \
27 $(MAKE) -f Makefile.mingw AR="$(AR)" CC="$(CC)" DFLAGS="$(DFLAGS)" CFLAGS="$(CFLAGS)" \
28 INCLUDES="$(INCLUDES)" LIBPATH="$(LIBPATH)" $$target || exit 1; \
37 $(AR) -cru $@ $(LOBJS)
39 ### For the curses library: comment out `-lcurses' if you do not have curses installed
41 $(CC) $(CFLAGS) -o $@ $(AOBJS) $(LIBPATH) -lm -L. -lbam -Lwin32 -lz #-lcurses
44 $(CC) $(CFLAGS) -o $@ razf.o razip.o -lz
47 $(CC) $(CFLAGS) -o $@ bgzf.o bgzip.o -lz
50 bam.o:bam.h razf.h bam_endian.h kstring.h
52 bam_import.o:bam.h kseq.h khash.h razf.h
53 bam_pileup.o:bam.h razf.h ksort.h
54 bam_plcmd.o:bam.h faidx.h bam_maqcns.h glf.h
55 bam_index.o:bam.h khash.h ksort.h razf.h bam_endian.h
56 bam_lpileup.o:bam.h ksort.h
57 bam_tview.o:bam.h faidx.h bam_maqcns.h
58 bam_maqcns.o:bam.h ksort.h bam_maqcns.h
59 bam_sort.o:bam.h ksort.h razf.h
60 bam_md.o:bam.h faidx.h
63 faidx.o:faidx.h razf.h khash.h
64 faidx_main.o:faidx.h razf.h
67 rm -fr gmon.out *.o a.out *.dSYM razip $(PROG) *~ *.a
69 clean:cleanlocal-recur