File: use_debian_packaged_sumalibs.patch

package info (click to toggle)
sumatra 1.0.36%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 356 kB
  • sloc: ansic: 651; sh: 127; makefile: 60
file content (50 lines) | stat: -rw-r--r-- 862 bytes parent folder | 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Author: Andreas Tille <tille@debian.org>
Last-Update: 2020-08-09
Forwarded: not-needed
Description: Build using Debian packaged libsuma

--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-PREFIX=/usr/local
+PREFIX=/usr
 
 CFLAGS=-I$(PREFIX)/include
 
@@ -38,7 +38,6 @@ sumatra: $(SUMATRA_OBJ)
 clean:
 	rm -f $(SUMATRA_OBJ)	
 	rm -f $(EXEC)
-	$(MAKE) -C ./sumalibs clean
 
 install: all
 	install -d $(DESTDIR)$(PREFIX)/bin/
--- a/global.mk
+++ b/global.mk
@@ -1,16 +1,16 @@
 
-LIBSUMAPATH = -L./sumalibs
+LIBSUMAPATH = 
 
-LIBSUMA = ./sumalibs/libsuma.a
+LIBSUMA = 
 
 CC=gcc
 LDFLAGS:=$(LDFLAGS)
 
 
 ifeq ($(CC),gcc)
-        CFLAGS = -O3 -s -DOMP_SUPPORT -w
+        CFLAGS += -O3 -s -DOMP_SUPPORT -w
 else
-        CFLAGS = -O3 -w
+        CFLAGS += -O3 -w
 endif
 
 
@@ -26,5 +26,3 @@ default: all
 #
 ########
 
-./sumalibs/libsuma.a:
-	$(MAKE) -C ./sumalibs