$NetBSD$

Fix compiler, flags, and paths.

--- Makefile.orig	2011-09-05 07:04:16.000000000 +0000
+++ Makefile
@@ -2,9 +2,9 @@
 # (c) 2004-2009 Daniel Stoedle, daniels@cs.uit.no
 # ptunnel.exe target added by Mike Miller, mike@mikeage.net
 
-CC	 		= gcc
-CFLAGS		= -Wall -g
-LDOPTS		= -lpthread -lpcap
+CC	 	?= gcc
+CFLAGS		?= -Wall -g
+LDOPTS		?= -lpthread -lpcap
 PT_OBJS		= ptunnel.o md5.o
 
 WIN32_CC    = mingw32-gcc
@@ -12,9 +12,9 @@ WIN32_CFLAGS = -g -Wall -DWIN32 -I"c:\Pr
 WIN32_LDOPTS = -lwpcap -lwsock32 -L"c:\Program Files\WpdPack\Lib"
 WIN32_PT_OBJS = ptunnel.obj md5.obj
 
-prefix		= /usr
+prefix		= ${PREFIX}
 bindir		= $(prefix)/bin
-mandir		= $(prefix)/share/man/man8
+mandir		= $(prefix)/man/man8
 
 all: ptunnel
 
