42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
$NetBSD: patch-Makefile,v 1.2 2015/01/28 16:21:48 outpaddling Exp $
|
|
|
|
# Respect build env
|
|
|
|
--- Makefile.orig 2014-03-20 13:52:20.000000000 -0500
|
|
+++ Makefile 2014-05-22 08:16:29.000000000 -0500
|
|
@@ -5,9 +5,13 @@
|
|
SEQAN_DIR = SeqAn-1.1
|
|
SEQAN_INC = -I $(SEQAN_DIR)
|
|
INC = $(SEQAN_INC) -I third_party
|
|
-CPP = g++
|
|
-CXX = $(CPP)
|
|
-CC = gcc
|
|
+
|
|
+# Use ?= to allow environment CPP, CC, CXX to take precedence. This avoids
|
|
+# the need to modify the Makefile on different platforms. Package managers
|
|
+# such as FreeBSD ports, MacPorts, etc. set these variables automatically.
|
|
+CPP ?= g++
|
|
+CXX ?= $(CPP)
|
|
+CC ?= gcc
|
|
HEADERS = $(wildcard *.h)
|
|
BOWTIE_MM = 1
|
|
BOWTIE_SHARED_MEM = 1
|
|
@@ -124,13 +128,16 @@
|
|
EXTRA_FLAGS += -Wl,-macosx_version_min,10.6
|
|
endif
|
|
|
|
+# This is unnecessary on most platforms. The compiler will default
|
|
+# to the native architecture. Could this be wrapped in a check for
|
|
+# just the platforms that require it?
|
|
# Convert BITS=?? to a -m flag
|
|
BITS_FLAG =
|
|
ifeq (32,$(BITS))
|
|
- BITS_FLAG = -m32
|
|
+ #BITS_FLAG = -m32
|
|
endif
|
|
ifeq (64,$(BITS))
|
|
- BITS_FLAG = -m64
|
|
+ #BITS_FLAG = -m64
|
|
endif
|
|
|
|
DEBUG_FLAGS = -O0 -g3 $(BITS_FLAG)
|