aboutsummaryrefslogtreecommitdiff
path: root/util/superiotool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util/superiotool/Makefile')
-rw-r--r--util/superiotool/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/util/superiotool/Makefile b/util/superiotool/Makefile
index 6cb3042739..6a6b69762f 100644
--- a/util/superiotool/Makefile
+++ b/util/superiotool/Makefile
@@ -1,7 +1,7 @@
##
## This file is part of the superiotool project.
##
-## Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
+## Copyright (C) 2007-2010 Uwe Hermann <uwe@hermann-uwe.de>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -39,6 +39,15 @@ ifeq ($(OS_ARCH), Darwin)
LDFLAGS = -framework IOKit -framework DirectIO -lpci -lz
endif
+# Support for PCI-attached "Super I/Os" (e.g. in VIA VT82686A/B).
+CONFIG_PCI = yes
+
+ifeq ($(CONFIG_PCI), yes)
+CFLAGS += -DPCI_SUPPORT
+LDFLAGS += -lpci
+OBJS += pci.o via.o
+endif
+
all: $(PROGRAM)
superiotool.o: *.c superiotool.h