1 .PHONY
: all clean install
6 all : nc.openbsd nc.openbsd
.1.gz
9 rm -f atomicio.o
* socks.o
* nc.o
* nc.openbsd nc.openbsd
.1.gz
10 rm -rf atomicio.d
* socks.d
* nc.d
*
12 atomicio.o
: atomicio.c atomicio.h
13 $(CC
) $(CFLAGS
) -c
-o
$@
$*.c
15 socks.o
: socks.c atomicio.h
16 $(CC
) $(CFLAGS
) -c
-o
$@
$*.c
18 nc.o
: netcat.c atomicio.h
19 $(CC
) $(CFLAGS
) -c
-o
$@ netcat.c
21 nc.openbsd
: nc.o socks.o atomicio.o
22 $(CC
) $(CFLAGS
) -o
$@ nc.o socks.o atomicio.o
24 nc.openbsd
.1.gz
: nc
.1
25 gzip
-n
-9 < nc
.1 > nc.openbsd
.1.gz
28 install -d
/usr
/local
/bin
29 install -m
555 -s nc.openbsd
/usr
/local
/bin
/nc.openbsd
30 install -d
/usr
/local
/man
/man1
31 install -m
444 nc.openbsd
.1.gz
/usr
/local
/man
/man1
/nc.openbsd
.1.gz