summaryrefslogtreecommitdiff
path: root/net/vde2/files/patch-Makefile
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2005-03-11 13:51:32 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2005-03-11 13:51:32 +0000
commit032fc7a937a99728fd73f642950e45fb59ea55e5 (patch)
treef9cff82a48e3421e2b160246e1931048dfaf8a87 /net/vde2/files/patch-Makefile
parentUnbreak: USE_KDEBASE instead of KDELIBS since libkate* is over there (diff)
VDE is a user-mode ethernet simulation. It's quite useful for
hooking together multiple qemu instances into a single virtual network without needing root access. It can also be used for tunneling or other network simulation tasks. PR: ports/76874 Submitted by: Craig Boston <craig@yekse.gank.org>
Notes
Notes: svn path=/head/; revision=130884
Diffstat (limited to 'net/vde2/files/patch-Makefile')
-rw-r--r--net/vde2/files/patch-Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/net/vde2/files/patch-Makefile b/net/vde2/files/patch-Makefile
new file mode 100644
index 000000000000..5d0cf76b3e4b
--- /dev/null
+++ b/net/vde2/files/patch-Makefile
@@ -0,0 +1,40 @@
+--- Makefile Sat Jan 29 15:02:08 2005
++++ Makefile Sun Jan 30 13:46:59 2005
+@@ -1,14 +1,15 @@
+-TUNTAP = $(shell [ -e /usr/include/linux/if_tun.h ] && echo -DTUNTAP)
++TUNTAP = $(shell [ -e /usr/include/net/if_tun.h ] && echo -DTUNTAP)
+
+ OBJSSW = hash.o port.o vde_switch.o tuntap.o
+ BINSW = vde_switch
+ BIN = $(BINSW) dpipe vde_plug
+ #CFLAGS = -g -Wall $(TUNTAP) -DINFO -O3
+-CFLAGS = -Wall $(TUNTAP) -O3
++CFLAGS += -Wall $(TUNTAP) -O
+
+-BIN_DIR ?= /usr/local/bin
+-LIB_DIR ?= /usr/local/lib
+-MAN_DIR ?= /usr/local/man
++PREFIX ?= /usr/local
++BIN_DIR ?= $(PREFIX)/bin
++LIB_DIR ?= $(PREFIX)/lib
++MAN_DIR ?= $(PREFIX)/man
+
+ ifneq ($(TUNTAP),)
+ OBJS += tuntap.o
+@@ -30,13 +31,13 @@
+ vde_switch.o: vde_switch.c vde.h switch.h hash.h port.h tuntap.h
+
+ $(BINSW) : $(OBJSSW)
+- $(CC) $(CFLAGS) -o $(BINSW) $(OBJSSW)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(BINSW) $(OBJSSW)
+
+ dpipe: dpipe.o
+- $(CC) $(CFLAGS) -o dpipe dpipe.o
++ $(CC) $(CFLAGS) $(LDFLAGS) -o dpipe dpipe.o
+
+ vde_plug: vde_plug.o
+- $(CC) $(CFLAGS) -o vde_plug vde_plug.o
++ $(CC) $(CFLAGS) $(LDFLAGS) -o vde_plug vde_plug.o
+
+ clean :
+ rm -f $(BIN) *.o *~