mirror of
https://tildegit.org/solene/iblock.git
synced 2024-12-03 15:39:50 +01:00
25 lines
546 B
Makefile
25 lines
546 B
Makefile
PREFIX = /usr/local
|
|
|
|
CFLAGS = -pedantic -Wall -Wextra -Wmissing-prototypes \
|
|
-Werror -Wshadow -Wstrict-overflow -fno-strict-aliasing \
|
|
-Wstrict-prototypes -Wwrite-strings \
|
|
-Os
|
|
|
|
|
|
all: iblock
|
|
|
|
iblock: main.c
|
|
${CC} ${CFLAGS} -o iblock main.c
|
|
|
|
clean:
|
|
rm -f iblock
|
|
|
|
install: iblock
|
|
install -o root -g wheel iblock ${PREFIX}/sbin/
|
|
install -o root -g wheel iblock.rc /etc/rc.d/iblock
|
|
install -o root -g wheel iblock.8 ${PREFIX}/man/man8/
|
|
|
|
test: clean iblock
|
|
@printf "hello\n" | nc -4 localhost 666
|
|
@printf "hello\n" | nc -6 localhost 666
|