patch-2.1.78 linux/scripts/Makefile

Next file: linux/scripts/Menuconfig
Previous file: linux/net/netsyms.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.77/linux/scripts/Makefile linux/scripts/Makefile
@@ -25,15 +25,15 @@
 	${HOSTCC} -o tkparse tkparse.o tkcond.o tkgen.o
 
 tkparse.o: tkparse.c tkparse.h
-	$(HOSTCC) $(HOSTCFLAGS) -c -o tkparse.o tkparse.c
 
 tkcond.o: tkcond.c tkparse.h
-	$(HOSTCC) $(HOSTCFLAGS) -c -o tkcond.o tkcond.c
 
 tkgen.o: tkgen.c tkparse.h
-	$(HOSTCC) $(HOSTCFLAGS) -c -o tkgen.o tkgen.c
+
+tkparse.o tkcond.o tkgen.o:
+	$(HOSTCC) $(HOSTCFLAGS) -c -o $@ $(@:.o=.c)
 
 clean:
-	rm -f *~ kconfig.tk *.o tkparse
+	rm -f *~ kconfig.tk *.o tkparse mkdep split-include
 
 include $(TOPDIR)/Rules.make

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov