From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 8 11:55:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5D6E16C278 for ; Thu, 8 Jun 2006 10:13:14 +0000 (UTC) (envelope-from hongz@promisechina.com) Received: from mxdxt7.hichina.com (mxdxt7.hichina.com [218.244.143.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3FD543D45 for ; Thu, 8 Jun 2006 10:13:13 +0000 (GMT) (envelope-from hongz@promisechina.com) Received: from 222.128.58.137 (HELO hongzhao) (envelope-from hongz@promisechina.com) by mxdxt7.hichina.com (quarkmail-1.2.1) with ESMTP id S5174536AbWFHKMw for freebsd-hackers@freebsd.org; Thu, 8 Jun 2006 18:12:52 +0800 From: To: Date: Thu, 8 Jun 2006 18:13:00 +0800 MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcaK5B8o0/X10pXPRFaHIMNoxyce0w== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Message-ID: <1149761572$95415$77000985@hongz@promisechina.com> X-Mailman-Approved-At: Thu, 08 Jun 2006 12:00:34 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: hongz@promisechina.com Subject: help:Makefile template for device drivers with multiple directories X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 11:55:46 -0000 Hi guys: 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! Thanks! Hong Note: Makefile template .PATH: . KMOD = shasta SRCS = shasta.c SRCS += device_if.h bus_if.h pci_if.h SRCS += opt_scsi.h opt_cam.h .. .include