Package: fsm-lite / 1.0-3

fix_makefile.patch Patch series | download
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
Description: Support more architectures
Bug-Debian: http://bugs.debian.org/824368
Author: Andreas Tille <tille@debian.org>
Last-Update: Sun, 15 May 2016 09:04:46 +0200

--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
-SDSL_INSTALL_PREFIX=${HOME}/software
-
-CPPFLAGS=-std=c++11 -I$(SDSL_INSTALL_PREFIX)/include -DNDEBUG -O3 -msse4.2
+CPPFLAGS+=-DNDEBUG
+CXXFLAGS+=-std=c++11
+# -O3 -msse4.2
 LIBS=-lsdsl -ldivsufsort -ldivsufsort64
 OBJ = configuration.o input_reader.o fsm-lite.o
 
 fsm-lite: $(OBJ)
-	$(LINK.cpp) $^ -L$(SDSL_INSTALL_PREFIX)/lib $(LIBS) -o $@
+	$(LINK.cpp) $^ $(LIBS) -o $@
 
 test: fsm-lite
 	./fsm-lite -l test.list -t tmp -v --debug -m 1
@@ -14,6 +14,6 @@ clean:
 	$(RM) fsm-lite *.o *~
 
 depend:
-	g++ -MM -std=c++11 -I$(SDSL_INSTALL_PREFIX)/include *.cpp > dependencies.mk
+	g++ -MM $(CXXFLAGS) *.cpp > dependencies.mk
 
 include dependencies.mk