annotate PsiCLASS-1.0.2/samtools-0.1.19/misc/Makefile @ 0:903fc43d6227 draft default tip

Uploaded
author lsong10
date Fri, 26 Mar 2021 16:52:45 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
1 CC= gcc
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
2 CXX= g++
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
3 CFLAGS= -g -Wall -O2 #-m64 #-arch ppc
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
4 CXXFLAGS= $(CFLAGS)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
5 DFLAGS= -D_FILE_OFFSET_BITS=64
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
6 OBJS=
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
7 PROG= md5sum-lite md5fa maq2sam-short maq2sam-long ace2sam wgsim bamcheck
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
8 INCLUDES= -I..
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
9 SUBDIRS= .
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
10
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
11 .SUFFIXES:.c .o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
12
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
13 .c.o:
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
14 $(CC) -c $(CFLAGS) $(DFLAGS) $(INCLUDES) $< -o $@
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
15
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
16 all:$(PROG)
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
17
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
18 lib-recur all-recur clean-recur cleanlocal-recur install-recur:
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
19 @target=`echo $@ | sed s/-recur//`; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
20 wdir=`pwd`; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
21 list='$(SUBDIRS)'; for subdir in $$list; do \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
22 cd $$subdir; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
23 $(MAKE) CC="$(CC)" DFLAGS="$(DFLAGS)" CFLAGS="$(CFLAGS)" \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
24 INCLUDES="$(INCLUDES)" $$target || exit 1; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
25 cd $$wdir; \
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
26 done;
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
27
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
28 lib:
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
29
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
30 bamcheck:bamcheck.o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
31 $(CC) $(CFLAGS) -o $@ bamcheck.o -L.. -lm -lbam -lpthread -lz
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
32
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
33 bamcheck.o:bamcheck.c ../faidx.h ../khash.h ../sam.h ../razf.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
34 $(CC) $(CFLAGS) -c -I.. -o $@ bamcheck.c
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
35
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
36 ace2sam:ace2sam.o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
37 $(CC) $(CFLAGS) -o $@ ace2sam.o -lz
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
38
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
39 wgsim:wgsim.o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
40 $(CC) $(CFLAGS) -o $@ wgsim.o -lm -lz
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
41
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
42 md5fa:md5.o md5fa.o md5.h ../kseq.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
43 $(CC) $(CFLAGS) -o $@ md5.o md5fa.o -lz
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
44
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
45 md5sum-lite:md5sum-lite.o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
46 $(CC) $(CFLAGS) -o $@ md5sum-lite.o
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
47
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
48 md5sum-lite.o:md5.c md5.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
49 $(CC) -c $(CFLAGS) -DMD5SUM_MAIN -o $@ md5.c
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
50
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
51 maq2sam-short:maq2sam.c
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
52 $(CC) $(CFLAGS) -o $@ maq2sam.c -lz
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
53
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
54 maq2sam-long:maq2sam.c
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
55 $(CC) $(CFLAGS) -DMAQ_LONGREADS -o $@ maq2sam.c -lz
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
56
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
57 md5fa.o:md5.h md5fa.c
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
58 $(CC) $(CFLAGS) -c -I.. -o $@ md5fa.c
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
59
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
60 wgsim.o:wgsim.c ../kseq.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
61 $(CC) $(CFLAGS) -c -I.. -o $@ wgsim.c
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
62
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
63 ace2sam.o:ace2sam.c ../kstring.h ../kseq.h
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
64 $(CC) $(CFLAGS) -c -I.. -o $@ ace2sam.c
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
65
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
66 cleanlocal:
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
67 rm -fr gmon.out *.o a.out *.exe *.dSYM $(PROG) *~ *.a
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
68
903fc43d6227 Uploaded
lsong10
parents:
diff changeset
69 clean:cleanlocal-recur