3 # Uncomment this to turn on verbose mode.
6 # This is the debhelper compatability version to use.
8 # This has to be exported to make some magic below work.
11 # These are used for cross-compiling and for saving the configure script
12 # from having to guess our platform (since we know it already)
13 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
20 export CXXFLAGS = -O2 -fomit-frame-pointer -finline-limit=1200
22 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26 config.status: configure
28 # Add here commands to configure the package.
29 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
33 build-arch: build-arch-stamp
34 build-arch-stamp: config.status
35 # Add here commands to compile the arch part of the package.
36 $(MAKE) prefix=$(CURDIR)/debian/tmp/usr infodir=$(CURDIR)/debian/tmp/usr/share/info mandir=$(CURDIR)/debian/tmp/usr/share/man
41 rm -f build-arch-stamp config-stamp
51 # Add here commands to install the arch part of the package into
53 $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
54 mkdir -p $(CURDIR)/debian/tmp/usr/X11R6/include/X11/pixmaps
55 cp $(CURDIR)/debian/ginac.xpm $(CURDIR)/debian/tmp/usr/X11R6/include/X11/pixmaps/
57 # Must not depend on anything. This is to be called by
58 # binary-arch/binary-multi
59 # in another 'make' thread.
67 dh_installchangelogs ChangeLog
74 dh_shlibdeps --libpackage=libginac1.1 -l debian/libginac1.1/usr/lib
80 # Build architecture dependant packages using the common target.
81 binary-arch: build-arch install-arch
82 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
85 .PHONY: build clean binary-arch binary install install-arch