From owner-freebsd-drivers@FreeBSD.ORG Tue Jul 2 08:53:51 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7F1392B9 for ; Tue, 2 Jul 2013 08:53:51 +0000 (UTC) (envelope-from insanegod.god@gmail.com) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 1D2CA1DFA for ; Tue, 2 Jul 2013 08:53:50 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id q56so4159447wes.3 for ; Tue, 02 Jul 2013 01:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Kt4MN+ARyhBapYcTkttCyJRBcZ7fUblwi5SZJKIgI94=; b=voBBY656MTpp+pkW0d0XPhhRZVvm26DY8f14f5mTpZwrikizPVDv/r4NSVy0+bSHjz +v17U/L9Y72JO+hNl2ZiQH6/sUNXuIxbcBX8nEeBoArNdh7w2cVYEkOd9kCXetYCKo8F CS/x01aPO17ZlLGvM09f6f2H0McNbcTI6SdO7D9H05tDathEUvcw8uVlCD9gzojeRgUl qeaUAWvy1OlHfVX4v7SKvG6XLbvflrlHV852RdSnq4a54Ppo2HU5FsuFztoToaQQmvjS IPyr9n6FAbYFjbWKahR9QMMx4JXnnCb5GSwoJ20gdccz9RJESQ5HuAq0TPZ2NDLeNyU1 4iKA== MIME-Version: 1.0 X-Received: by 10.194.58.239 with SMTP id u15mr22622543wjq.87.1372755230323; Tue, 02 Jul 2013 01:53:50 -0700 (PDT) Received: by 10.194.93.233 with HTTP; Tue, 2 Jul 2013 01:53:50 -0700 (PDT) Date: Tue, 2 Jul 2013 01:53:50 -0700 Message-ID: Subject: Newbie question - Custom compiler flags in Makefile From: Arjun To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 08:53:51 -0000 Hey, I am writing a memory driver and i am using the standard freebsd driver Makefile which includes .bsd.kmod.mk So, this comes with its own compiler flags. Specifically, i dont want the -Wmissing-prototypes option. How do i remove it. In general, how can one change the default compiler flags for compilation. ? I read bsd.sys.mk file and it seems that for the above option to be removed, i need to have WARNS <3. But i want all other -W options except for this. How do i do this.? Any help is appreciated. Thanks