using vpath not possible --- patch to Rules.make

From: Carsten Paeth (calle@calle.in-berlin.de)
Date: Tue Mar 21 2000 - 11:44:28 EST


Hello.

While writing a driver, I realize that vpath is not working
because of one rule in Rules.make (2.3.99-pre1).
Would be nice to have it in 2.4.

best regards

calle

--- Rules.make.orig Thu Aug 26 18:41:36 1999
+++ Rules.make Tue Mar 21 17:19:47 2000
@@ -244,8 +244,8 @@
 endif # CONFIG_MODVERSIONS
 
 ifneq "$(strip $(SYMTAB_OBJS))" ""
-$(SYMTAB_OBJS): $(TOPDIR)/include/linux/modversions.h $(SYMTAB_OBJS:.o=.c)
- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -DEXPORT_SYMTAB -c $(@:.o=.c)
+$(SYMTAB_OBJS): $(SYMTAB_OBJS:.o=.c) $(TOPDIR)/include/linux/modversions.h
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -DEXPORT_SYMTAB -c $<
         @ ( \
             echo 'ifeq ($(strip $(subst $(comma),:,$(CFLAGS) $(EXTRA_CFLAGS) $(CFLAGS_$@) -DEXPORT_SYMTAB)),$$(strip $$(subst $$(comma),:,$$(CFLAGS) $$(EXTRA_CFLAGS) $$(CFLAGS_$@) -DEXPORT_SYMTAB)))' ; \
             echo 'FILES_FLAGS_UP_TO_DATE += $@' ; \

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:33 EST