From: David Woodhouse <dwmw2@infradead.org>
To: "Erwin Authried" <eauth@softsys.co.at>
Cc: mtd@infradead.org
Subject: Re: Makefile for 2.0
Date: Mon, 23 Apr 2001 10:10:59 +0100 [thread overview]
Message-ID: <4590.988017059@redhat.com> (raw)
In-Reply-To: <000001c0cb83$f2a185c0$6401a8c0@home.at>
eauth@softsys.co.at said:
> I just tried to compile the rearranged sources with the 2.0 kernel, it
> seems that the Makefile doesn't support 2.0 anymore. There are no .o
> files produced, besides an empty mtdlink.o. What's the purpose of
> GNUmakefile?
The GNUmakefile is there to make compilation on 2.0 and 2.2 kernels work,
as well as compilation outside the source tree. GNU make will use that file
first, in preference to the Makefile in the same directory. That means I
can have perfectly clean 2.4-style Makefiles and use the GNUmakefile trick
to make them work in other kernels.
Note the trick with setting TOPDIR so that the Makefile includes the
_local_ Rules.make file, which has the necessary fixups so that everything
actually works.
Evidently I missed something, but it _ought_ to work.
ifeq ($(VERSION),2)
ifneq ($(PATCHLEVEL),4)
ifneq ($(PATCHLEVEL),5)
OLDTOPDIR := $(TOPDIR)
TOPDIR := $(shell pwd)
endif
endif
endif
include Makefile
ifeq ($(VERSION),2)
ifeq ($(PATCHLEVEL),0)
O_OBJS += initcalls.o
endif
endif
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
prev parent reply other threads:[~2001-04-23 9:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-22 23:28 Makefile for 2.0 Erwin Authried
2001-04-23 9:10 ` David Woodhouse [this message]
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=4590.988017059@redhat.com \
--to=dwmw2@infradead.org \
--cc=eauth@softsys.co.at \
--cc=mtd@infradead.org \
/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