File: rules

package info (click to toggle)
x13as 1.1-B39-2
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye
  • size: 8,700 kB
  • sloc: fortran: 110,641; makefile: 14
file content (22 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

# Needed to compile with gfortran 10, see #966125
DEB_FFLAGS_MAINT_APPEND := -std=legacy

include /usr/share/dpkg/buildflags.mk

ifeq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    NUMJOBS = 1
else
    NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif

%:
	dh $@

override_dh_auto_build:
	make -j$(NUMJOBS) -f makefile.gf FFLAGS="$(FFLAGS)" LDFLAGS="$(LDFLAGS)" PROGRAM=x13as

override_dh_auto_clean:
	make -f makefile.gf clean
	rm -f x13as