File: rules

package info (click to toggle)
tm-align 20120507-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 212 kB
  • sloc: fortran: 3,204; sh: 17; makefile: 16
file content (28 lines) | stat: -rwxr-xr-x 543 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
28
#!/usr/bin/make -f
# debian/rules for tm-align

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PROGNAME=TMalign

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@

override_dh_auto_build:
	for src in `ls *.f` ; do \
	    gfortran -O3 -ffast-math $(CPPFLAGS) $(LDFLAGS) -lm -o `basename $${src} .f` $${src} ; \
	done

override_dh_auto_clean:
	for src in `ls *.f` ; do \
	    rm -f `basename $${src} .f` ; \
	done
	dh_clean

get-orig-source:
	. debian/get-orig-source