Debian Codegraph @

Makefile

raw symbols ◀ ▶ SCIP
2 Debian patches touch this file
1 # PatMaN DNA pattern matcher
2 # (C) 2007 Kay Pruefer, Udo Stenzel
3 #
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or (at
7 # your option) any later version. See the LICENSE file for details.
8
9 prefix := ${HOME}
10 version := 1.2
11
•12 INSTALL ?= install
13 TARGETS := patman
•14 OBJS := prefix_tree.o fasta.o main.o
15 CXXFLAGS += -Wall
16 CXXFLAGS += -O3 -funroll-loops -DNDEBUG
17 # CXXFLAGS += -ggdb
18 LDLIBS += -lpopt
19
20 all: $(TARGETS)
21
22 patman: $(OBJS)
•23 $(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
24
25 %.o: %.cpp
•26 $(CXX) -DVERSION="\"$(version)\"" $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
27
28 install: $(TARGETS)
•29 $(INSTALL) -d ${prefix}/bin
30 $(INSTALL) -d ${prefix}/share/man/man1
31 $(INSTALL) -s -m755 $^ ${prefix}/bin
32 $(INSTALL) -m644 patman.1 ${prefix}/share/man/man1
33
34 fasta.o: fasta.h
35 prefix_tree.o: prefix_tree.h global.h
36 main.o: fasta.h prefix_tree.h global.h
37
38 .SUFFIXES:
39
40 .PHONY: clean mrproper dist all
41
42 dist: all
43 $(MAKE) clean
44 strip $(TARGETS)
45
46 clean:
47 -rm -f $(OBJS)
48
49 mrproper: clean
50 -rm -r $(TARGETS)