help:Makefile template for device drivers with multiple directories

Artem Ignatiev zazubrik at mail.ru
Thu Jun 8 15:55:00 UTC 2006


On 08.06.2006, at 14:13, <hongz at promisechina.com>  
<hongz at 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


More information about the freebsd-hackers mailing list