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
51
52
53
54
55
56
57
58
59
60
|
--- Makefile.orig 2012-09-03 14:58:02 UTC
+++ Makefile
@@ -1,5 +1,5 @@
MAIN_CFLAGS := -g -Os -Wall $(shell pkg-config fuse --cflags)
-MAIN_CPPFLAGS := -Wall -Wno-unused-function -Wconversion -Wtype-limits -DUSE_AUTH -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE
+MAIN_CPPFLAGS := -Wall -Wno-unused-function -Wconversion -DUSE_AUTH -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE
THR_CPPFLAGS := -DUSE_THREAD
THR_LDFLAGS := -lpthread
MAIN_LDFLAGS := $(shell pkg-config fuse --libs | sed -e s/-lrt// -e s/-ldl// -e s/-pthread// -e "s/ / /g")
@@ -10,7 +10,7 @@ ifeq ($(shell pkg-config --atleast-version 2.10 gnutls
variants += -ssl -ssl-mt
- CERT_STORE := /etc/ssl/certs/ca-certificates.crt
+# CERT_STORE := /etc/ssl/certs/ca-certificates.crt
SSL_CPPFLAGS := -DUSE_SSL $(shell pkg-config gnutls --cflags) -DCERT_STORE=\"$(CERT_STORE)\"
SSL_LDFLAGS := $(shell pkg-config gnutls --libs)
endif
@@ -23,7 +23,8 @@ manpages = $(addsuffix .1,$(binaries))
intermediates += $(addsuffix .xml,$(manpages))
-targets = $(binaries) $(manpages)
+#targets = $(binaries) $(manpages)
+targets = $(binaries)
full:
$(MAKE) all $(addprefix all,$(variants))
@@ -44,8 +45,8 @@ clean-recursive:
%-full:
$(MAKE) $* $(addprefix $*,$(variants))
-%.1: %.1.txt
- a2x -f manpage $<
+#%.1: %.1.txt
+# a2x -f manpage $<
%-ssl: $*
$(MAKE) CPPFLAGS='$(CPPFLAGS) $(SSL_CPPFLAGS)' LDFLAGS='$(LDFLAGS) $(SSL_LDFLAGS)' binsuffix=-ssl$(binsuffix) $*
@@ -60,20 +61,6 @@ clean-recursive:
$(MAKE) CPPFLAGS='$(CPPFLAGS) -DRETRY_ON_RESET' binsuffix=-rst$(binsuffix) $*
# Rules to automatically make a Debian package
-
-package = $(shell dpkg-parsechangelog | grep ^Source: | sed -e s,'^Source: ',,)
-version = $(shell dpkg-parsechangelog | grep ^Version: | sed -e s,'^Version: ',, -e 's,-.*,,')
-revision = $(shell dpkg-parsechangelog | grep ^Version: | sed -e -e 's,.*-,,')
-architecture = $(shell dpkg --print-architecture)
-tar_dir = $(package)-$(version)
-tar_gz = $(tar_dir).tar.gz
-pkg_deb_dir = pkgdeb
-unpack_dir = $(pkg_deb_dir)/$(tar_dir)
-orig_tar_gz = $(pkg_deb_dir)/$(package)_$(version).orig.tar.gz
-pkg_deb_src = $(pkg_deb_dir)/$(package)_$(version)-$(revision)_source.changes
-pkg_deb_bin = $(pkg_deb_dir)/$(package)_$(version)-$(revision)_$(architecture).changes
-
-deb_pkg_key = CB8C5858
debclean:
rm -rf $(pkg_deb_dir)
|