# 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 INSTALL ?= install 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) $(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) %.o: %.cpp $(CXX) -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)