Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / ipfilter / samples / Makefile
1 CC=gcc
2 all:
3         @echo "Please do one of the following:"
4         @echo "make bsd"
5         @echo "make bsdi"
6         @echo "make freebsd"
7         @echo "make freebsd22"
8         @echo "make netbsd"
9         @echo "make openbsd"
10         @echo "make sunos4"
11         @echo "make sunos5"
12
13 sunos5:
14         $(CC) -DSOLARIS2=`uname -r | sh -c 'IFS=. read j n x; echo $$n'` \
15                 -I.. userauth.c -o userauth -lsocket -lnsl
16         $(CC) -DSOLARIS2=`uname -r | sh -c 'IFS=. read j n x; echo $$n'` \
17                 -I.. proxy.c -o proxy -lsocket -lnsl
18
19 freebsd freebsd22 netbsd bsd bsdi sunos4 openbsd:
20         $(CC) -I.. userauth.c -o userauth
21         $(CC) -I.. proxy.c -o proxy
22
23 clean:
24         /bin/rm -f userauth proxy