mirror of
https://tildegit.org/solene/iblock.git
synced 2024-11-22 10:10:07 +01:00
23 lines
461 B
Makefile
23 lines
461 B
Makefile
CFLAGS += -pedantic -Wall -Wextra -Wmissing-prototypes \
|
|
-Werror -Wshadow -Wstrict-overflow -fno-strict-aliasing \
|
|
-Wstrict-prototypes -Wwrite-strings \
|
|
-Os
|
|
|
|
PREFIX = /usr/local
|
|
|
|
|
|
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
|