File: rules

package info (click to toggle)
xonix 1.4-31
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 636 kB
  • ctags: 1,039
  • sloc: ansic: 8,483; sh: 28; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 613 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
#!/usr/bin/make -f

CC = gcc

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic -D__unix
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

# cat the makefile to verify what flags are being used
override_dh_auto_build:
	echo "#RUN imake"
	xmkmf
	echo '##BEGIN Makefile'
	cat Makefile
	echo '##END Makefile'
	$(MAKE) CC="$(CC)" \
		CCLINK="$(CC)" \
		CDEBUGFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)" \
		XONIXDIR=/var/cache/xonix

override_dh_install:
	dh_install
	# Remove unused directories
	rm -rf debian/xonix/usr/lib debian/xonix/usr/bin

%:
	dh $@

# End of file