2014-10-17 09:58:05 +00:00
|
|
|
srcdir := $(top_srcdir)/tools/usb/usbip
|
2012-06-20 06:04:10 +00:00
|
|
|
|
|
|
|
# Make sure we don't override top_srcdir in the sub-make. 'unexport
|
|
|
|
# top_srcdir' is *not* sufficient; nor is adding 'MAKEFLAGS=' to the
|
|
|
|
# sub-make command line.
|
|
|
|
unexport MAKEFLAGS
|
|
|
|
|
2016-08-25 00:28:48 +00:00
|
|
|
all: export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
|
|
|
|
all: export CPPFLAGS := $(shell dpkg-buildflags --get CFLAGS) \
|
|
|
|
-isystem $(top_srcdir)/debian/build/build-tools/include
|
|
|
|
all: export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
|
2012-06-20 06:04:10 +00:00
|
|
|
all:
|
2016-08-25 00:29:57 +00:00
|
|
|
rsync -a $(srcdir)/ .
|
|
|
|
./autogen.sh
|
|
|
|
./configure \
|
2012-06-20 06:04:10 +00:00
|
|
|
--prefix=/usr \
|
2012-06-24 01:51:39 +00:00
|
|
|
--with-tcp-wrappers \
|
2012-06-20 06:04:10 +00:00
|
|
|
--with-usbids-dir=/usr/share/misc \
|
2016-06-13 00:17:13 +00:00
|
|
|
--disable-shared \
|
2017-09-30 23:58:22 +00:00
|
|
|
--disable-static \
|
2016-06-13 00:17:13 +00:00
|
|
|
--host=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
2018-08-02 15:35:55 +00:00
|
|
|
$(MAKE) V=$(KBUILD_VERBOSE)
|
2012-06-20 06:04:10 +00:00
|
|
|
|
|
|
|
install:
|
2018-08-02 15:35:55 +00:00
|
|
|
$(MAKE) V=$(KBUILD_VERBOSE) install
|
2016-05-14 23:19:24 +00:00
|
|
|
ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
|
|
|
|
rm -rf $(DESTDIR)/usr/share/man
|
|
|
|
endif
|
2012-06-20 06:04:10 +00:00
|
|
|
|
|
|
|
clean:
|
2016-08-25 00:29:57 +00:00
|
|
|
rm -rf *
|