debian swirl logo

Back to the packages list switchsh

#!/usr/bin/make -f

export DEB_BUILD_HARDENING= 1

CFLAGS += -pedantic -Werror -Wextra -Wformat -Wformat-security

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

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

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

clean::
		$(RM) switchsh

Builds:

switchsh
bind-mount bash as /bin/sh