From owner-freebsd-hackers Sun Aug 12 15:57:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from blackcomb.panasas.com (gw2.panasas.com [65.194.124.178]) by hub.freebsd.org (Postfix) with ESMTP id 1D84E37B406 for ; Sun, 12 Aug 2001 15:57:26 -0700 (PDT) (envelope-from rgrover@panasas.com) Received: from tiltill.panasas.com (IDENT:rgrover@tiltill.panasas.com [172.17.132.191]) by blackcomb.panasas.com (8.9.3/8.9.3) with SMTP id SAA25730 for ; Sun, 12 Aug 2001 18:57:24 -0400 From: Rohit Grover Organization: Panasas Inc. To: freebsd-hackers@freebsd.org Subject: can't generate vnode_if.h automatically Date: Sun, 12 Aug 2001 15:35:52 -0700 X-Mailer: KMail [version 1.0.29] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <01081215572400.07250@tiltill.panasas.com> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am writing a module which needs to include 'sys/vnode.h'. vnode.h tries to include vnode_if.h. I checked the Makefiles of some other modules requiring vnode.h (eg. 'vn', 'nfs') and discovered that they add vnode_if.h to to the variable 'SRCS'. This automagically generates vnode_if.h in the current directory while running make for these modules. I copied the makefile from one of these modules and changed 'SRCS' to point to my sources. 'vnode_if.h' was included in 'SRCS' in my makefile too. Unfortunately, this did not work for me. vnode_if.h was not generated before compiling my sources and therefore my build failed. Interestingly, when I executed the command 'make depend', vnode_if.h was correctly created for me. I'd like to know why I don't need to do a 'make depend' for modules like 'vn' or 'nfs' before building them. regards, Rohit. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message