summaryrefslogtreecommitdiff
path: root/debian/rules
blob: d8163849cb7722bfbdbc0ec1b1903d8684a07c27 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/make -f

include /usr/share/dpatch/dpatch.make

DEST = $(CURDIR)/debian/cscope

DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif

config.status: patch-stamp configure
	dh_testdir
	CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) \
		--build=$(DEB_BUILD_GNU_TYPE) \
		--prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info

build: build-stamp

build-stamp: config.status
	dh_testdir

	$(MAKE)

	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	rm -f build-stamp

	[ ! -f Makefile ] || $(MAKE) distclean

ifneq "$(wildcard /usr/share/misc/config.sub)" ""
	cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
	cp -f /usr/share/misc/config.guess config.guess
endif
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep

	$(MAKE) install DESTDIR=$(DEST)

	# Install xcscope
	install -m755 -p contrib/xcscope/cscope-indexer $(DEST)/usr/bin/

binary-indep: build install
# We have nothing to do by default.

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_install
	dh_installdocs AUTHORS NEWS README TODO
	dh_installman debian/ocs.1 debian/cscope-indexer.1
	install -d $(DEST)/usr/share/doc/cscope/contrib/webcscope
	cp -av contrib/README $(DEST)/usr/share/doc/cscope/contrib
	cp -av contrib/webcscope/cgi-lib.pl contrib/webcscope/cscope \
		contrib/webcscope/hilite.c contrib/webcscope/icons \
		contrib/webcscope/INSTALL contrib/webcscope/TODO \
		$(DEST)/usr/share/doc/cscope/contrib/webcscope
	# Prevent CVS metadata from being installed
	find $(DEST)/usr/share/doc/cscope/contrib/webcscope -type d -name CVS | xargs rm -rf
	dh_installmenu
	dh_installemacsen
	dh_installchangelogs ChangeLog
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
296fd08c4eb8a28daacec1817'>tools/lguest: handle device reset correctly in example launcher.Rusty Russell1-2/+18 2015-02-11lguest: remove NOTIFY facility from demonstration launcher.Rusty Russell1-24/+1 2015-02-11lguest: always put console in PCI slot #1.Rusty Russell1-3/+3 2015-02-11lguest: support backdoor window.Rusty Russell1-1/+100 2015-02-11lguest: support emerg_wr in console device in example launcher.Rusty Russell1-3/+14 2015-02-11lguest: remove support for lguest bus in demonstration launcher.Rusty Russell1-333/+22 2015-02-11lguest: define VIRTIO_CONFIG_NO_LEGACY in example launcher.Rusty Russell1-0/+1 2015-02-11lguest: Convert console device to virtio 1.0 PCI.Rusty Russell1-7/+7 2015-02-11lguest: Convert entropy device to virtio 1.0 PCI.Rusty Russell1-5/+7 2015-02-11lguest: Convert net device to virtio 1.0 PCI.Rusty Russell1-20/+28 2015-02-11lguest: Convert block device to virtio 1.0 PCI.Rusty Russell1-21/+9 2015-02-11lguest: add a dummy PCI host bridge.Rusty Russell1-0/+14 2015-02-11lguest: fix failure to find linux/virtio_types.hRusty Russell1-1/+7 2015-02-11lguest: implement virtio-PCI MMIO accesses.Rusty Russell1-2/+490 2015-02-11lguest: add PCI config space emulation to example launcher.Rusty Russell1-5/+211 2015-02-11lguest: decode mmio accesses for PCI in example launcher.Rusty Russell1-0/+167 2015-02-11lguest: add MMIO region allocator in example launcher.Rusty Russell1-5/+23 2015-02-11lguest: add iomem region, where guest page faults get sent to userspace.Rusty Russell1-1/+2 2015-02-11lguest: suppress PS/2 keyboard polling.Rusty Russell1-0/+4 2015-02-11lguest: send trap 13 through to userspace.Rusty Russell1-0/+149 2015-02-11lguest: write more information to userspace about pending traps.Rusty Russell1-6/+10 2015-02-11lguest: have --rng read from /dev/urandom not /dev/random.Rusty Russell1-5/+5 2013-07-15tools/lguest: offer VIRTIO_F_ANY_LAYOUT for net device.Rusty Russell1-0/+6 2013-07-04lguest: fix example launcher compilation for broken glibc headers.Rusty Russell2-9/+9 2013-07-02tools/lguest: real barriers.Rusty Russell1-2/+2 2013-07-02tools/lguest: fix missing rmb().Rusty Russell1-0/+13 2013-03-07lguest: fix paths in commentsWanlong Gao1-1/+1 2013-01-11tools/lguest: remove depends on CONFIG_EXPERIMENTALKees Cook1-6/+2 2012-10-22lguest: fix block request handling in example launcher.Rusty Russell1-49/+35 2012-10-04lguest: fix occasional crash in example launcher.Rusty Russell1-0/+1 2012-01-12lguest: move the lguest tool to the tools directoryDavidlohr Bueso5-0/+2261