iblock/Makefile
Omar Polo 5ac1e2631b Don't need to copy strings around and hardcode the max table len from pf
internals, just assign a pointer (eventually from argv.)

while here also add a usage() function and error if more than one
argument are passed.
2022-09-24 19:40:39 +02:00

23 lines
438 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/
test: clean iblock
@printf "hello\n" | nc -4 localhost 666
@printf "hello\n" | nc -6 localhost 666