File: rules

package info (click to toggle)
fenix-plugins 0.0.20070803-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 36,452 kB
  • sloc: sh: 8,736; ansic: 3,026; xml: 413; makefile: 221
file content (37 lines) | stat: -rwxr-xr-x 904 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
#!/usr/bin/make -f

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

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

CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += -Wall

LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS += -Wl,-z,defs

PLUGINS = \
	plugins/fgfx.so plugins/agua.so plugins/fire.so \
	plugins/ttf.so plugins/image.so plugins/net.so \
	plugins/mpeg.so plugins/exec.so \
	plugins/tcpsock.so plugins/fsock.so

override_dh_auto_build:
	for i in */ ; do \
		if [ -e "$$i/configure.ac" ]; then \
			cp -f /usr/share/libtool/config/ltmain.sh "$$i/ltmain.sh" ; \
		fi \
	done
	dh_auto_build -- \
		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
		CONFFLAGS="--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)" \
		$(PLUGINS)

override_dh_auto_clean:
	dh_auto_clean -- fullclean

override_dh_makeshlibs:

%:
	dh $@ --with autotools_dev