File: rules

package info (click to toggle)
lrslib 0.73-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 16,640 kB
  • sloc: ansic: 20,893; sh: 279; makefile: 252; perl: 97; csh: 51
file content (28 lines) | stat: -rwxr-xr-x 804 bytes parent folder | download | duplicates (2)
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
26
27
28
#!/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

ARITH=lrsarith-011
export  SONAME=liblrs.so.2

CFLAGS=$(shell dpkg-buildflags --get CFLAGS) -I ${ARITH}
CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS) -I ${ARITH}
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)" CPPFLAGS="$(CPPFLAGS)" $(BUILDARGS) all-shared mplrs

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

%: 
	dh $@