# HG changeset patch # User diego # Date 1199310630 0 # Node ID 4627866e3697563a15955790963361225a0cfcab # Parent 4107f7e9402b75898495729ca12484e9f84edeef Properly express dependencies for generated .c and .h files. This fixes parallel make runs, compare Bugzilla #967. diff -r 4107f7e9402b -r 4627866e3697 vidix/Makefile --- a/vidix/Makefile Wed Jan 02 20:36:55 2008 +0000 +++ b/vidix/Makefile Wed Jan 02 21:50:30 2008 +0000 @@ -34,20 +34,24 @@ # that includes svgalib_helper.o: #CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/ -libs: pci_names.c +PCI_FILES = pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h -dep depend:: pci_names.c +libs: $(PCI_FILES) + +dep depend:: $(PCI_FILES) include ../mpcommon.mak +$(OBJS_MPLAYER): $(PCI_FILES) + mga_crtc2_vid.o: mga_vid.c $(CC) -c $(CFLAGS) -DCRTC2 -o $@ $< rage128_vid.o: radeon_vid.c $(CC) -c $(CFLAGS) -DRAGE128 -o $@ $< -pci_dev_ids.c pci_ids.h pci_names.c pci_names.h pci_vendors.h: pci.db +$(PCI_FILES): pci.db LC_ALL=C awk -f pci_db2c.awk $< $(VIDIX_PCIDB) clean:: - rm -f pci_*.c pci_*.h + rm -f $(PCI_FILES)