File: Makefile.patch

package info (click to toggle)
fasttree 2.1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 512 kB
  • ctags: 472
  • sloc: ansic: 7,930; makefile: 18; sh: 18
file content (28 lines) | stat: -rw-r--r-- 769 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
From 183c0d979cae6199e89ad11df1956e7f8dce13b0 Mon Sep 17 00:00:00 2001
From: Roland Fehrenbacher <rf@q-leap.de>
Date: Tue, 24 Mar 2015 18:25:21 +0000
Subject: [PATCH] Create a Makefile

Description:
As the original source is just a c-file, a Makefile needs to be
created. Also use double precision to prevent analysis flaws.
---
 Makefile | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 Makefile

--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+ADD_CPPFLAGS = -DUSE_DOUBLE
+
+all: fasttree fasttreeMP
+
+fasttree:	fasttree.c
+	$(CC) $(CFLAGS) $(CPPFLAGS) $(ADD_CPPFLAGS) $(LDFLAGS) -o $@ $< -lm
+
+fasttreeMP:	fasttree.c
+	$(CC) -DOPENMP -fopenmp $(CFLAGS) $(CPPFLAGS) $(ADD_CPPFLAGS) $(LDFLAGS) -o $@ $< -lm
+
+distclean clean:
+	rm -f fasttree