Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2006 17:28:10 +0800
From:      <hongz@promisechina.com>
To:        <freebsd-questions@freebsd.org>
Subject:   help:Makefile template about device driver with multiple directories 
Message-ID:  <1149758882$89597$34525373@hongz@promisechina.com>

next in thread | raw e-mail | index | archive | help
Hi guys:

 

I have one urgent question to ask, please help me on this!

 

The following is a Makefile template for device driver with all sources
codes locating in the same directory. My question is how to write the
Makefile when the driver source codes located different directories. For
example, my driver source codes maybe include: osd/*.c engine/*.c and
cam/*.c.  Could someone provide me such a Makefile template? Your help will
be highly appreciated!

 

.PATH:  .

KMOD    = shasta

 

SRCS    =  shasta.c  event.c .

SRCS += device_if.h bus_if.h pci_if.h

SRCS += opt_scsi.h opt_cam.h

 ....  

.include <bsd.kmod.mk>

 

Yours,

 

Hong




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1149758882$89597$34525373>