File: Makefile

package info (click to toggle)
tigr-glimmer 3.02b-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 13,948 kB
  • sloc: cpp: 24,416; awk: 232; csh: 220; makefile: 147; sh: 51
file content (105 lines) | stat: -rw-r--r-- 3,161 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Simple Makefile for Glimmer3

BINDIR = ../bin
OBJDIR = ../obj
LIBDIR = ../lib

VPATH = $(BINDIR):$(OBJDIR):$(LIBDIR)

COMMON_SRCS = delcher.cc fasta.cc gene.cc
COMMON_OBJS = $(COMMON_SRCS:.cc=.o)

GLIMMER_SRCS = anomaly.cc glimmer3.cc long-orfs.cc test.cc
GLIMMER_OBJS = $(GLIMMER_SRCS:.cc=.o)
GLIMMER_PROGS = $(GLIMMER_SRCS:.cc=)

ICM_SRCS = icm.cc build-icm.cc build-fixed.cc score-fixed.cc
ICM_OBJS = $(ICM_SRCS:.cc=.o)
ICM_PROGS = build-icm build-fixed score-fixed

UTIL_SRCS = entropy-profile.cc entropy-score.cc extract.cc multi-extract.cc \
  start-codon-distrib.cc uncovered.cc window-acgt.cc
UTIL_OBJS = $(UTIL_SRCS:.cc=.o)
UTIL_PROGS = $(UTIL_SRCS:.cc=)

SOURCES = $(COMMON_SRCS) $(GLIMMER_SRCS) $(ICM_SRCS) $(UTIL_SRCS)
OBJECTS = $(COMMON_OBJS) $(GLIMMER_OBJS) $(ICM_OBJS) $(UTIL_OBJS)
PROGS = $(COMMON_PROGS) $(GLIMMER_PROGS) $(ICM_PROGS) $(UTIL_PROGS)

LIBRARIES = libGLMcommon.a libGLMicm.a

AR = ar
ARFLAGS = -rsv
CPPC = g++
CFLAGS = -g
LDFLAGS = -lm -L $(LIBDIR)

DEPEND_FILES = *.cc *.hh
CLEANABLE_FILES = $(OBJDIR)/*.o *~

ALL = $(LIBRARIES) $(PROGS)

.SUFFIXES: .cc

.cc.o:
	$(CPPC) $(CFLAGS) -c $*.cc -o $(OBJDIR)/$*.o 

all: $(ALL)

anomaly:  anomaly.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/anomaly.o $(LDFLAGS) -lGLMcommon

build-fixed:  build-fixed.o libGLMicm.a libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/build-fixed.o $(LDFLAGS) -lGLMicm -lGLMcommon

build-icm:  build-icm.o libGLMicm.a libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/build-icm.o $(LDFLAGS) -lGLMicm -lGLMcommon

entropy-profile:  entropy-profile.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/entropy-profile.o $(LDFLAGS) -lGLMcommon

entropy-score:  entropy-score.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/entropy-score.o $(LDFLAGS) -lGLMcommon

extract:  extract.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/extract.o $(LDFLAGS) -lGLMcommon

glimmer3:  glimmer3.o libGLMicm.a libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/glimmer3.o $(LDFLAGS) -lGLMicm -lGLMcommon

long-orfs:  long-orfs.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/long-orfs.o $(LDFLAGS) -lGLMcommon

multi-extract:  multi-extract.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/multi-extract.o $(LDFLAGS) -lGLMcommon

score-fixed:  score-fixed.o libGLMicm.a libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/score-fixed.o $(LDFLAGS) -lGLMicm -lGLMcommon

start-codon-distrib:  start-codon-distrib.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/start-codon-distrib.o $(LDFLAGS) -lGLMcommon

test:  test.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/test.o $(LDFLAGS) -lGLMcommon

uncovered:  uncovered.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/uncovered.o $(LDFLAGS) -lGLMcommon

window-acgt:  window-acgt.o libGLMcommon.a
	$(CPPC) -o $(BINDIR)/$@ $(OBJDIR)/window-acgt.o $(LDFLAGS) -lGLMcommon


libGLMcommon.a:  $(COMMON_OBJS)
	$(AR) $(ARFLAGS) $(LIBDIR)/$@ $(OBJDIR)/delcher.o $(OBJDIR)/fasta.o $(OBJDIR)/gene.o

libGLMicm.a:  icm.o
	$(AR) $(ARFLAGS) $(LIBDIR)/$@ $(OBJDIR)/icm.o

depend:
	makedepend $(DEPEND_FILES)

clean:
	/bin/rm -f $(CLEANABLE_FILES)

# DO NOT DELETE THIS LINE -- make depend depends on it.