Skip to contentSkip to conversation

makefile question

DISCUSSION Mockern 2 participants 2 messages May 1, 2007

lore
Share & tools
lore

Mockern

author
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Mockern

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...