3 SRC
= drw.c dwm.c util.c
6 ALL_CFLAGS
= -std
=c99
-pedantic
-Wall
-Wno-deprecated-declarations
${CFLAGS}
11 rm -f netns-socks netns-socks.o
14 ${CC} -c
${ALL_CFLAGS} $<
16 netns-socks
: netns-socks.o
17 ${CC} -o
$@
$^
${LDFLAGS}
20 install -Dt
${DESTDIR}${PREFIX}/lib
/netns-socks netns-socks etc-resolv.conf
21 mkdir
-p
${DESTDIR}${PREFIX}/bin
22 printf
"#!%s/lib/netns-socks/netns-socks -n\n" ${PREFIX} > ${DESTDIR}${PREFIX}/bin
/netns-socks
23 chmod
755 -- ${DESTDIR}${PREFIX}/bin
/netns-socks
26 rm -fr
${DESTDIR}${PREFIX}/lib
/netns-socks
${DESTDIR}${PREFIX}/bin
/netns-socks
28 .PHONY
: all clean install uninstall