public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Makefile for 2.0
@ 2001-04-22 23:28 Erwin Authried
  2001-04-23  9:10 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Erwin Authried @ 2001-04-22 23:28 UTC (permalink / raw)
  To: mtd

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?

-Erwin


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Makefile for 2.0
  2001-04-22 23:28 Makefile for 2.0 Erwin Authried
@ 2001-04-23  9:10 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-04-23  9:10 UTC (permalink / raw)
  To: Erwin Authried; +Cc: mtd


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-04-23  9:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-22 23:28 Makefile for 2.0 Erwin Authried
2001-04-23  9:10 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox