changeset 22571:f02e65d6586f

Add pci_names.c as prerequisite of the all target instead of the .o files.
author diego
date Wed, 14 Mar 2007 23:37:48 +0000
parents 3ddc79315de0
children a5e0e1210f0f
files libdha/Makefile
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libdha/Makefile	Wed Mar 14 23:34:17 2007 +0000
+++ b/libdha/Makefile	Wed Mar 14 23:37:48 2007 +0000
@@ -40,8 +40,7 @@
 CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/
 endif
 
-.c.o: pci_names.c
-	$(CC) -c $(CFLAGS) -o $@ $<
+all: pci_names.c $(LIBNAME) $(SHORTNAME)
 
 $(LIBNAME):     $(OBJS)
 ifeq ($(TARGET_WIN32),yes)
@@ -52,8 +51,6 @@
 	ln -sf $@ $(VSHORTNAME)
 endif
 
-all:    $(LIBNAME) $(SHORTNAME)
-
 pci_names.c:	oth/pci.db
 	LC_ALL=C $(AWK) -f pci_db2c.awk $<