Updated Debian configuration [A.Sheplyakov].
[ginac.git] / debian / rules
1 #!/usr/bin/make -f
2 include /usr/share/cdbs/1/rules/buildcore.mk
3 include /usr/share/cdbs/1/class/autotools.mk
4 include /usr/share/cdbs/1/rules/debhelper.mk
5 export DH_COMPAT
6
7 ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
8         CXXFLAGS += -finline-limit=1200
9 endif
10
11 # 1.4.1-1-blah (Debian version) ==> 1.4 (LT_RELEASE)
12 GINAC_RELEASE := $(shell echo $(DEB_VERSION) | cut -f 1,2 -d . )
13 GINACLIB := libginac$(GINAC_RELEASE)
14
15 DEB_DH_MAKESHLIBS_ARGS := -V"$(GINACLIB) (>= $(GINAC_RELEASE).0)"
16 DEB_DH_SHLIBDEPS_ARGS := --libpackage=$(GINACLIB) -l debian/$(GINACLIB)/usr/lib
17 DEB_DH_STRIP_ARGS := --dbg-package=$(GINACLIB)
18 # menu entry for ginsh
19 DEB_INSTALL_MENU_ginac-tools := debian/ginac-tools.menu
20