2007-05-01 12:38:38

by Mockern

[permalink] [raw]
Subject: makefile question

Hi,

I have a question about Makefile for my drivers.

I have 4 idedntical drivers, there are only 2 differences: major and minor numbers of each driver.

How can I build 4 drivers from one source file? Could you give me an example of Makefile?

Thank you,

Andy


2007-05-01 12:46:53

by Valdis Klētnieks

[permalink] [raw]
Subject: Re: makefile question

On Tue, 01 May 2007 16:38:22 +0400, Mockern said:

> I have 4 idedntical drivers, there are only 2 differences: major and minor
> numbers of each driver.

That's the *only* difference? You don't have different major/minor pairs that
correspond to different PCI IDs, or something? I'm confused as to what you're
trying to achieve here - if the problem is that /dev/mydev0 through /dev/mydev3
have different major/minors on different systems, there's probably eaiser ways
to fix that in userspace...


Attachments:
(No filename) (226.00 B)