File: rules

package info (click to toggle)
objfw 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,644 kB
  • sloc: objc: 101,491; asm: 5,083; sh: 4,092; makefile: 1,574; ansic: 709; xml: 367; pascal: 214
file content (29 lines) | stat: -rwxr-xr-x 769 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
29
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_clean:
	if [ -f buildsys.mk ]; then				\
		dh_auto_clean;					\
	else							\
		rm -fr aclocal.m4 autom4te.cache config.log;	\
	fi

override_dh_auto_configure:
	# Use clang where available, otherwise gcc (with reduced features).
	# -gdwarf-4 to work around dwz complaining about .debug_addr.
	# -Wl,--as-needed gets automatically added for GCC, but not Clang.
	case "$$DEB_HOST_ARCH" in \
	alpha | hppa | hurd-amd64 | ia64 | m68k | sh4 | x32)	\
		export OBJC=gcc;				\
		;;						\
	*)							\
		export OBJC=clang;				\
		export OBJCFLAGS="${CFLAGS} -gdwarf-4";		\
		export LDFLAGS="${LDFLAGS} -Wl,--as-needed";	\
		;;						\
	esac;							\
								\
	dh_auto_configure -- 					\
		--with-tls=gnutls				\
		--disable-rpath