From owner-freebsd-questions Wed Mar 12 1:30:48 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A238037B401 for ; Wed, 12 Mar 2003 01:30:47 -0800 (PST) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7DA843FA3 for ; Wed, 12 Mar 2003 01:30:44 -0800 (PST) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: by relay1.ntu-kpi.kiev.ua (Postfix, from userid 426) id 25F0119BA7; Wed, 12 Mar 2003 11:30:39 +0200 (EET) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id D989119B99 for ; Wed, 12 Mar 2003 11:30:37 +0200 (EET) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with ESMTP id h2C9ZEc34472 for ; Wed, 12 Mar 2003 11:35:14 +0200 (EET) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (localhost [127.0.0.1]) by pm514-9.comsys.ntu-kpi.kiev.ua (8.12.6/8.12.6) with ESMTP id h2C9Ti6t000318 for ; Wed, 12 Mar 2003 11:29:44 +0200 (EET) (envelope-from simon@pm514-9.comsys.ntu-kpi.kiev.ua) Received: (from simon@localhost) by pm514-9.comsys.ntu-kpi.kiev.ua (8.12.6/8.12.6/Submit) id h2C9ThiV000317 for freebsd-questions@freebsd.org; Wed, 12 Mar 2003 11:29:43 +0200 (EET) Date: Wed, 12 Mar 2003 11:29:43 +0200 From: Andrey Simonenko To: freebsd-questions@freebsd.org Subject: Using Assembler files in a kernel module. What to write to module's Makefile? Message-ID: <20030312092943.GA197@pm514-9.comsys.ntu-kpi.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, If I have Assembler source files in a kernel module. Where should I place names of Assembler source files in a port's Makefile? If I place them to Makefile's SRCS variable, then they are compiled with "as", but that Assembler source files "#include " and "as" can't compile such Assembler sources. Currently I specify assembler.o in OBJS and manually write target assembler.o, which builds assembler.o with "${CC} -x assembler-with-cpp ...". Is there standard method for compiling Assembler source files in a kernel module? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message