From: Erik Mouw <J.A.K.Mouw@ITS.TUDelft.NL>
To: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Cc: dhinds@zen.stanford.edu, Linus Torvalds <torvalds@transmeta.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: [PATCH] Minor cleanup in drivers/net/pcmcia/Makefile
Date: Thu, 24 May 2001 15:51:38 +0200 [thread overview]
Message-ID: <20010524155138.F1477@arthur.ubicom.tudelft.nl> (raw)
Hi,
Because make can't track intermediate targets made in a rule, the
ibmtr_cs drivers was rebuild every time you run "make modules". This
patch fixes that by making the intermediate files explicit rules in the
Makefile. Patch is against linux-2.4.5-pre5, but should apply cleanly
against other kernel versions as well. Please apply.
Erik
--- drivers/net/pcmcia/Makefile.orig Thu May 24 15:33:26 2001
+++ drivers/net/pcmcia/Makefile Thu May 24 15:35:53 2001
@@ -38,8 +38,10 @@
include $(TOPDIR)/Rules.make
tmp-ibmtr.o: ../tokenring/ibmtr.c
- $(CC) $(CFLAGS) -D__NO_VERSION__ -DPCMCIA -c -o $@ ../tokenring/ibmtr.c
+ $(CC) $(CFLAGS) -D__NO_VERSION__ -DPCMCIA -c -o $@ $<
-ibmtr_cs.o: tmp-ibmtr.o ibmtr_cs.c
- $(CC) $(CFLAGS) -DPCMCIA -c -o tmp-$@ ibmtr_cs.c
- $(LD) -r -o $@ tmp-$@ tmp-ibmtr.o
+tmp-ibmtr_cs.o: ibmtr_cs.c
+ $(CC) $(CFLAGS) -DPCMCIA -c -o $@ $<
+
+ibmtr_cs.o: tmp-ibmtr.o tmp-ibmtr_cs.o
+ $(LD) -r -o $@ tmp-ibmtr_cs.o tmp-ibmtr.o
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
reply other threads:[~2001-05-24 13:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010524155138.F1477@arthur.ubicom.tudelft.nl \
--to=j.a.k.mouw@its.tudelft.nl \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dhinds@zen.stanford.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).