Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2006 18:27:21 +0400
From:      Artem Ignatiev <zazubrik@mail.ru>
To:        <hongz@promisechina.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: help:Makefile template for device drivers with multiple directories
Message-ID:  <7512EDAE-5535-438C-A5C7-64932C75E3A1@mail.ru>
In-Reply-To: <1149761572$95415$77000985@hongz@promisechina.com>
References:  <1149761572$95415$77000985@hongz@promisechina.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 08.06.2006, at 14:13, <hongz@promisechina.com>  
<hongz@promisechina.com> wrote:

> Need your helps again! The following is a Makefile template for a  
> device
> driver in FreeBSD. But when my driver source codes locate in multiple
> directories (such as under osd/, engine/, and cam/), how to write the
> Makefile? I have tried but still can not get through this, please  
> give me a
> help!

Are those sources of a single driver, or just subdrivers? FWIW, look  
at bsd.subdir.mk
Or you can try writing
SRCS+= osd/something.c engine/something_else.c cam/whatever_that_does.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7512EDAE-5535-438C-A5C7-64932C75E3A1>