File: rules

package info (click to toggle)
switchsh 0~20070801-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 104 kB
  • ctags: 36
  • sloc: ansic: 395; makefile: 12; sh: 7
file content (20 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS:=hardening=+all

CFLAGS += $(shell dpkg-buildflags --get CFLAGS) -pedantic -Werror -Wextra -Wformat -Wformat-security

DEB_FIXPERMS_EXCLUDE = usr/bin/switchsh
export DEB_FIXPERMS_EXCLUDE

include /usr/share/cdbs/1/rules/debhelper.mk

build/switchsh::
	 $(CC) $(CFLAGS) -s switchsh.c -o switchsh

install/switchsh::
	cp switchsh $(DEB_DESTDIR)/usr/bin/
	chmod 4755 $(DEB_DESTDIR)/usr/bin/switchsh

clean::
	$(RM) switchsh