Merge branch 'wip/doc-migration' into rorcz
[girocco.git] / src / dragonfly / Makefile
blobed1998b29c81ca28ca4b5d478b81c3a1e42047f3
1 .PHONY : all clean install
3 CC ?= cc
4 CFLAGS ?= -g -O
6 all : nc.openbsd nc.openbsd.1.gz
8 clean :
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
27 install : all
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