| 1 |
srcdir := $(top_srcdir)/tools/usb/usbip |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
unexport MAKEFLAGS |
| 7 |
|
| 8 |
all: export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) |
| 9 |
all: export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) \ |
| 10 |
-isystem $(top_srcdir)/debian/build/build-tools/include |
| 11 |
all: export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) |
| 12 |
all: |
| 13 |
rsync -a $(srcdir)/ . |
| 14 |
./autogen.sh |
| 15 |
./configure \ |
| 16 |
--prefix=/usr \ |
| 17 |
--with-tcp-wrappers \ |
| 18 |
--with-usbids-dir=/usr/share/misc \ |
| 19 |
--disable-shared \ |
| 20 |
--disable-static \ |
| 21 |
--host=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
| 22 |
$(MAKE) V=1 |
| 23 |
|
| 24 |
install: |
| 25 |
$(MAKE) V=1 install |
| 26 |
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 27 |
rm -rf $(DESTDIR)/usr/share/man |
| 28 |
endif |