| 1 |
# Copyright (C) 2017 Free Software Foundation, Inc. |
| 2 |
# |
| 3 |
# This file is part of the GNU Hurd. |
| 4 |
# |
| 5 |
# The GNU Hurd is free software; you can redistribute it and/or |
| 6 |
# modify it under the terms of the GNU General Public License as |
| 7 |
# published by the Free Software Foundation; either version 2, or (at |
| 8 |
# your option) any later version. |
| 9 |
# |
| 10 |
# The GNU Hurd is distributed in the hope that it will be useful, but |
| 11 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
# General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with the GNU Hurd. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
|
| 18 |
dir = pci-arbiter |
| 19 |
makemode = server |
| 20 |
|
| 21 |
PORTDIR = $(srcdir)/port |
| 22 |
|
| 23 |
SRCS = main.c pci-ops.c netfs_impl.c \ |
| 24 |
pcifs.c ncache.c options.c func_files.c \ |
| 25 |
device_map.c pciServer.c startup_notifyServer.c |
| 26 |
OBJS = $(SRCS:.c=.o) $(MIGSTUBS) |
| 27 |
|
| 28 |
HURDLIBS= fshelp ports shouldbeinlibc netfs iohelp ihash trivfs machdev |
| 29 |
LDLIBS = -lpthread $(libpciaccess_LIBS) |
| 30 |
|
| 31 |
target = pci-arbiter |
| 32 |
|
| 33 |
include ../Makeconf |
| 34 |
|
| 35 |
CFLAGS += -I$(PORTDIR)/include $(libpciaccess_CFLAGS) |
| 36 |
|
| 37 |
pci-MIGSFLAGS = -imacros $(srcdir)/mig-mutate.h |
| 38 |
|
| 39 |
# cpp doesn't automatically make dependencies for -imacros dependencies. argh. |
| 40 |
pci_S.h pciServer.c: mig-mutate.h |