File: Makefile

package info (click to toggle)
ecopcr 0.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 36,412 kB
  • ctags: 836
  • sloc: ansic: 3,569; python: 1,195; makefile: 95; sh: 16
file content (103 lines) | stat: -rw-r--r-- 1,504 bytes parent folder | download | duplicates (5)
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
EXEC=ecoPCR ecofind ecogrep ecoisundertaxon

PCR_SRC= ecopcr.c
PCR_OBJ= $(patsubst %.c,%.o,$(PCR_SRC))

FIND_SRC= ecofind.c
FIND_OBJ= $(patsubst %.c,%.o,$(FIND_SRC))

GREP_SRC= ecogrep.c
GREP_OBJ= $(patsubst %.c,%.o,$(GREP_SRC))

IUT_SRC= ecoisundertaxon.c
IUT_OBJ= $(patsubst %.c,%.o,$(IUT_SRC))

SRCS= $(PCR_SRC) $(FIND_SRC) $(IUT_SRC)

LIB= -lecoPCR -lthermo -lapat -lz -lm

LIBFILE= libapat/libapat.a \
         libecoPCR/libecoPCR.a \
         libthermo/libthermo.a


include global.mk

all: $(EXEC)


########
#
# ecoPCR compilation
#
########

# executable compilation and link

ecoPCR: $(PCR_OBJ) $(LIBFILE) 
	$(CC) $(LDFLAGS) -o $@ $< $(LIBPATH) $(LIB)
	
########
#
# ecofind compilation
#
########
	
# executable compilation and link

ecofind: $(FIND_OBJ) $(LIBFILE)
	$(CC) $(LDFLAGS) -o $@ $< $(LIBPATH) $(LIB)
	
########
#
# ecogrep compilation
#
########
	
# executable compilation and link

ecogrep: $(GREP_OBJ) $(LIBFILE)
	$(CC) $(LDFLAGS) -o $@ $< $(LIBPATH) $(LIB)
	
########
#
# IsUnderTaxon compilation
#
########
	
# executable compilation and link

ecoisundertaxon: $(IUT_OBJ) $(LIBFILE)
	$(CC) $(LDFLAGS) -o $@ $< $(LIBPATH) $(LIB)

########
#
# library compilation
#
########

libapat/libapat.a:
	$(MAKE) -C libapat
	
libecoPCR/libecoPCR.a:
	$(MAKE) -C libecoPCR
	
libthermo/libthermo.a:
	$(MAKE) -C libthermo
	
	
########
#
# project management
#
########

clean:
	rm -f *.o	
	rm -f $(EXEC)
	$(MAKE) -C libapat clean
	$(MAKE) -C libecoPCR clean
	$(MAKE) -C libthermo clean