File: rules

package info (click to toggle)
libsidplay 1.36.59-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,040 kB
  • ctags: 1,246
  • sloc: cpp: 10,639; sh: 8,422; makefile: 65
file content (75 lines) | stat: -rwxr-xr-x 2,091 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/make -f
# debian/rules for sidplay and associated packages, (C) 1998-2001 by ujr.
# Made using the sample rules from debhelper [GNU copyrighted by Joey Hess].

export DH_COMPAT=4
## Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
## Uncomment this to see what should happen.
#export DH_NO_ACT=1

build: build-stamp
build-stamp:
	dh_testdir debian/rules src
# well, ./configure isn't interactive here and doesn't take long, so it's
# carried out in order to assist building the package for people with other
# architectures and compiler environments
	./configure --prefix=/usr
# Intel specific optimization patch!
	if test `dpkg --print-architecture` = i386; then \
	 if test ! -f src/libcfg.h.in.org; then cp -a src/libcfg.h.in src/libcfg.h.in.org; fi; \
	 set +e; \
	 patch -p1 -N < libsidplay-ix86-optimize.patch; \
	 set -e; \
	fi
# Make the library - since 1.36.36 it seems no longer necessary to build
# shared and static libraries separately, because of libtool usage...
# We should use egcs or g++>2.95 in order to prevent problems occuring
# with '-O2 -fPIC' or '-g'.
# Chopped down the CXXFLAGS, just use -D_REENTRANT as required by Policy
# Old:
#	$(MAKE) CXXFLAGS="-pipe -funroll-loops -O3 -g -Wall -D_REENTRANT" \
#	        LDFLAGS="-lc"
	$(MAKE) CXXFLAGS="-O3 -g -Wall -D_REENTRANT" LDFLAGS="-lstdc++"
	touch build-stamp

clean:
	dh_testroot
	dh_testdir debian/rules src
	-rm -f build-stamp
	-cp -a src/libcfg.h.in.org src/libcfg.h.in
	-rm src/libcfg.h.in.org
	-$(MAKE) distclean
	rm -f config.log
	rm -f conftest*
	dh_clean

# Build architecture-independent files here.
binary-indep: build
# Nothing to do here.

# Build architecture-dependent files here.
binary-arch: build
	dh_testroot
	dh_testdir debian/rules src
	dh_clean -k
	dh_installdirs -A
	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp/ install
	dh_movefiles
	dh_installdocs
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary

# vim:tw=0