File: Makefile

package info (click to toggle)
patman 1.2.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 184 kB
  • sloc: cpp: 783; makefile: 62
file content (49 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download | duplicates (3)
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
# PatMaN DNA pattern matcher
# (C) 2007 Kay Pruefer, Udo Stenzel
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.  See the LICENSE file for details.

prefix := ${HOME}
version := 1.2

TARGETS := patman
OBJS := prefix_tree.o fasta.o main.o
CXXFLAGS += -Wall
CXXFLAGS += -O3 -funroll-loops -DNDEBUG
# CXXFLAGS += -ggdb
LDLIBS += -lpopt

all: $(TARGETS)

patman:	$(OBJS)
	g++ $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)

%.o:	%.cpp
	g++ -DVERSION="\"$(version)\"" $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<

install: $(TARGETS)
	install -d ${prefix}/bin
	install -d ${prefix}/share/man/man1
	install -s -m755 $^ ${prefix}/bin
	install -m644 patman.1 ${prefix}/share/man/man1
	
fasta.o: fasta.h 
prefix_tree.o: prefix_tree.h global.h
main.o: fasta.h prefix_tree.h global.h

.SUFFIXES:

.PHONY: clean mrproper dist all

dist: all
	$(MAKE) clean
	strip $(TARGETS)

clean:	
	-rm -f $(OBJS)
	
mrproper: clean
	-rm -r $(TARGETS)