File: rules

package info (click to toggle)
lrslib 0.71-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,924 kB
  • sloc: ansic: 13,102; makefile: 173; csh: 2
file content (25 lines) | stat: -rwxr-xr-x 710 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

DOCBASEURL=http://cgm.cs.mcgill.ca/%7Eavis/C/lrslib/USERGUIDE.html
DB2MAN=/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
XP=xsltproc --nonet

CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
export CFLAGS CPPFLAGS LDFLAGS

ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH_BITS),32)
BUILDARGS=SHLIBOBJ2="" BITS=-DB32 MPLRSOBJ2=""
else
BUILDARGS=
endif

override_dh_auto_build:
	make prefix=/usr DESTDIR=$(CURDIR)/debian/tmp CFLAGS="$(CFLAGS)" $(BUILDARGS) all-shared mplrs

override_dh_auto_install:
	make prefix=/usr DESTDIR=$(CURDIR)/debian/tmp $(BUILDARGS) install

%: 
	dh $@