X-Git-Url: https://git.tokkee.org/?p=pkg-ncmpc.git;a=blobdiff_plain;f=debian%2Frules;h=042e001a95056c29fe03b619e3bc9ac79d91178e;hp=c77ceda48e3681e47e6e3cd5dec861ec315b9672;hb=99e33724f588f462d16a26f20af2d80a8cf4af18;hpb=c407c04cb52c155b26b5518312028e7571f6be25 diff --git a/debian/rules b/debian/rules index c77ceda..042e001 100755 --- a/debian/rules +++ b/debian/rules @@ -11,13 +11,10 @@ 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 +CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS = $(shell dpkg-buildflags --get CFLAGS) +CFLAGS += -Wall +LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) CHECK = check @@ -40,15 +37,21 @@ config.status: configure --enable-help-screen \ --enable-mouse \ --enable-artist-screen \ + --enable-chat-screen \ --enable-search-screen \ --enable-song-screen \ --enable-key-screen \ --enable-lyrics-screen \ --enable-outputs-screen \ + --enable-documentation \ --with-ncursesw \ - CFLAGS="$(CFLAGS)" + CPPFLAGS="$(CPPFLAGS)" \ + CFLAGS="$(CFLAGS)" \ + LDFLAGS="$(LDFLAGS)" -build: build-stamp +build: build-arch build-indep +build-indep: +build-arch: build-stamp build-stamp: config.status dh_testdir