File: Makefile_config.patch

package info (click to toggle)
qtltools 1.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,632 kB
  • sloc: cpp: 11,956; makefile: 152; ansic: 51; sh: 39
file content (31 lines) | stat: -rw-r--r-- 1,020 bytes parent folder | download | duplicates (2)
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
Author: Dylan Aïssi
Description: Configure the makefile for Debian packaging.
Last-Update: 2016-11-02
Forwarded: not-needed

--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ OFILE=$(shell for file in `find src -nam
 VPATH=$(shell for file in `find src -name *.cpp`; do echo $$(dirname $$file); done)
 
 #DEFAULT VERSION (I.E. UNIGE DESKTOP RELEASE VERSION)
-all: desktop
+all: debian
 
 #UNIGE DESKTOP RELEASE VERSION
 desktop: RMATH_INC=$(HOME)/Tools/R-3.2.2/src/include
@@ -92,6 +92,14 @@ mac-dbg: LIB_FILES=$(RMATH_LIB)/libRmath
 mac-dbg: LDFLAG=$(CXXFLAG_DBG) -L /opt/local/lib
 mac-dbg: $(BFILE)
 
+#DEBIAN PACKAGE VERSION
+debian: CXXFLAG=$(CXXFLAG_REL) $(CXXFLAG_WRN) $(CXXFLAGS) $(CPPFLAGS)
+debian: IFLAG=-Ilib/OTools -Ilib
+debian: LIB_FILES=-lRmath -lhts -lboost_iostreams -lboost_program_options
+debian: LDFLAG=$(LDFLAG_REL) $(LDFLAGS)
+debian: LIB_FLAGS=-lz -lgsl -lblas -lbz2 -lm -lpthread 
+debian: $(BFILE)
+
 #COMPILATION RULES
 $(BFILE): $(OFILE)
 	$(CXX) $^ $(LIB_FILES) -o $@ $(LIB_FLAGS) $(LDFLAG)