5 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
11 LDFLAGS += -Wl,--as-needed
13 DESTDIR=$(CURDIR)/debian/tmp
15 conf_args = --prefix=/usr --disable-rpath-install --disable-rpath --bundled-libraries=NONE
16 conf_args += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
18 configure: configure-stamp
21 CFLAGS="$(CFLAGS)" ./configure $(conf_args)
24 build: configure build-stamp
28 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
29 LD_LIBRARY_PATH=bin/shared ./bin/talloc_testsuite
34 ./debian/build-orig.sh
39 rm -f build-stamp configure-stamp
40 [ ! -f Makefile ] || $(MAKE) distclean
41 rm -f buildtools/wafsamba/*.pyc
42 rm -rf buildtools/bin/.waf*
50 mkdir -p $(DESTDIR)`swig -swiglib`
51 $(MAKE) install DESTDIR=$(DESTDIR)
52 # Waf really should be doing this:
53 ar -rc libtalloc.a bin/default/talloc_*.o
54 cp libtalloc.a $(DESTDIR)/usr/lib
55 dh_install --list-missing --fail-missing --sourcedir=$(DESTDIR)
57 # Build architecture-dependent files here.
58 # Pass -a to all debhelper commands in this target to reduce clutter.
59 binary-arch: DH_OPTIONS=-a
60 binary-arch: build install
79 binary: binary-arch binary-indep
80 .PHONY: build clean binary-arch binary install configure