flashrom: Remove pciutils check from Makefile
Signed-off-by: Peter Stuge <peter@stuge.se>
|
|
|
|
| 31 | 31 | flashrom.o w39v080fa.o sharplhf00l04.o w29ee011.o spi.o it87spi.o \ |
| 32 | 32 | ichspi.o |
| 33 | 33 | |
| 34 | | all: pciutils dep $(PROGRAM) |
| | 34 | all: dep $(PROGRAM) |
| 35 | 35 | |
| 36 | 36 | # Set the flashrom version string from the highest revision number |
| 37 | 37 | # of the checked out flashrom files. |
| … |
… |
|
| 54 | 54 | dep: |
| 55 | 55 | @$(CC) -MM *.c > .dependencies |
| 56 | 56 | |
| 57 | | pciutils: |
| 58 | | @echo; echo -n "Checking for pciutils and zlib... " |
| 59 | | @$(shell ( echo "#include <pci/pci.h>"; \ |
| 60 | | echo "struct pci_access *pacc;"; \ |
| 61 | | echo "int main(int argc, char **argv)"; \ |
| 62 | | echo "{ pacc = pci_alloc(); return 0; }"; ) > .test.c ) |
| 63 | | @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) &>/dev/null && \ |
| 64 | | echo "found." || ( echo "not found."; echo; \ |
| 65 | | echo "Please install pciutils-devel and zlib-devel."; \ |
| 66 | | echo "See README for more information."; echo; \ |
| 67 | | rm -f .test.c .test; exit 1) |
| 68 | | @rm -f .test.c .test |
| 69 | | |
| 70 | 57 | install: $(PROGRAM) |
| 71 | 58 | $(INSTALL) $(PROGRAM) $(PREFIX)/sbin |
| 72 | 59 | mkdir -p $(PREFIX)/share/man/man8 |