iblock/Makefile

23 lines
461 B
Makefile
Raw Normal View History

CFLAGS += -pedantic -Wall -Wextra -Wmissing-prototypes \
-Werror -Wshadow -Wstrict-overflow -fno-strict-aliasing \
-Wstrict-prototypes -Wwrite-strings \
-Os
2022-08-22 13:04:26 +00:00
PREFIX = /usr/local
2021-02-25 23:10:27 +00:00
all: iblock
iblock: main.c
2022-08-25 08:04:53 +00:00
${CC} ${CFLAGS} -o iblock main.c
2021-02-25 23:10:27 +00:00
clean:
rm -f iblock
2022-08-18 08:57:50 +00:00
install: iblock
install -o root -g wheel iblock ${PREFIX}/sbin/
2021-02-25 23:10:27 +00:00
test: clean iblock
@printf "hello\n" | nc -4 localhost 666
@printf "hello\n" | nc -6 localhost 666