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
|
From: Michael R. Crusoe <crusoe@debian.org>
Subject: Enable user-supplied LDFLAGS and CPPFLAGS
--- porechop.orig/Makefile
+++ porechop/Makefile
@@ -15,7 +15,7 @@
# These flags are required for the build to work.
FLAGS = -std=c++17 -Iporechop/include -fPIC
-LDFLAGS = -shared
+LDFLAGS += -shared
# Different debug/optimisation levels for debug/release builds.
DEBUGFLAGS = -DSEQAN_ENABLE_DEBUG=1 -g
@@ -44,7 +44,7 @@
debug: $(TARGET)
$(TARGET): $(OBJECTS)
- $(CXX) $(FLAGS) $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJECTS)
+ $(CXX) $(FLAGS) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJECTS)
clean:
$(RM) $(OBJECTS)
@@ -53,4 +53,4 @@
$(RM) $(TARGET)
%.o: %.cpp $(HEADERS)
- $(CXX) $(FLAGS) $(CXXFLAGS) -c -o $@ $<
+ $(CXX) $(FLAGS) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
|