File: rules

package info (click to toggle)
mopac7 1.15-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,752 kB
  • sloc: fortran: 35,321; sh: 9,039; ansic: 428; makefile: 82
file content (27 lines) | stat: -rwxr-xr-x 698 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
26
27
#!/usr/bin/make -f

#export DH_VERBOSE=1

CPPFLAGS ?= $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS   ?= $(shell dpkg-buildflags --get CFLAGS) -fPIC
FFLAGS   ?= $(shell dpkg-buildflags --get FFLAGS) -fPIC
LDFLAGS  ?= $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed -Wl,-z,defs

ifeq (ia64,$(DEB_HOST_ARCH))
  FFLAGS = -ffunction-sections
  CFLAGS = -ffunction-sections
endif

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- F77="gfortran"

override_dh_install:
	dh_install
	sed -i -e 's/^\.\/fortran\/mopac7/\/usr\/lib\/mopac7\/mopac7/g' \
	    $(CURDIR)/debian/mopac7-bin/usr/bin/run_mopac7
	find debian/tmp -name "*.la" -delete