| 1 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 2008 Free Software Foundation, Inc. |
| 2 | # This file is part of the GNU Hurd. |
| 3 | # |
| 4 | # The GNU Hurd is free software; you can redistribute it and/or modify |
| 5 | # it under the terms of the GNU General Public License as published by |
| 6 | # the Free Software Foundation; either version 2, or (at your option) |
| 7 | # any later version. |
| 8 | # |
| 9 | # The GNU Hurd is distributed in the hope that it will be useful, |
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | # GNU General Public License for more details. |
| 13 | # |
| 14 | # You should have received a copy of the GNU General Public License |
| 15 | # along with the GNU Hurd; see the file COPYING. If not, write to |
| 16 | # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
| 17 | |
| 18 | dir := eth-multiplexer |
| 19 | makemode := server |
| 20 | target = eth-multiplexer |
| 21 | |
| 22 | #CFLAGS += -DDEBUG |
| 23 | SRCS = ethernet.c vdev.c multiplexer.c dev_stat.c netfs_impl.c device_impl.c dead-name.c demuxer.c |
| 24 | MIGSTUBS = deviceServer.o |
| 25 | MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h |
| 26 | device-MIGSFLAGS=-DMACH_PAYLOAD_TO_PORT=ports_payload_get_name -DDEVICE_ENABLE_DEVICE_OPEN_NEW |
| 27 | OBJS = $(SRCS:.c=.o) $(MIGSTUBS) |
| 28 | LCLHDRS = ethernet.h util.h vdev.h netfs_impl.h |
| 29 | HURDLIBS = ports ihash iohelp fshelp shouldbeinlibc netfs bpf |
| 30 | LDLIBS = -lpthread |
| 31 | |
| 32 | CFLAGS += -I$(top_srcdir)/libbpf |
| 33 | |
| 34 | include ../Makeconf |