From owner-freebsd-hackers@freebsd.org Wed Jun 27 20:13:58 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A628100EAB7 for ; Wed, 27 Jun 2018 20:13:58 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DF44070F46 for ; Wed, 27 Jun 2018 20:13:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.ysv.freebsd.org (Postfix) id 9ADFF100EAB6; Wed, 27 Jun 2018 20:13:57 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78871100EAB4 for ; Wed, 27 Jun 2018 20:13:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E3D070F43 for ; Wed, 27 Jun 2018 20:13:57 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x230.google.com with SMTP id g7-v6so3051214ioh.11 for ; Wed, 27 Jun 2018 13:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=1OyMKVQyjL+OdlAmNXy4YOSyoPJfRigUOuSaiBKIOHc=; b=GQ+1xL7d9GIBrayJ8bAvFjNRDI2wVvPcnddG2PkCRApHDGnJu9gQ+fnDxk9isV2iu+ E0g1v0VD0Eqfs63hhB9jh9x6RFiLy38IKxbZdTT7ON/qdWZbG5RRDulqFPq1W5zMNkJn qSeICCCNmbvV9M3hqHG8qAbJzpKKO1EPlmLN6G4MVxJM0sqqWz0KMnQQEmM9VoTmapYY bCuqofquTD+bc14zocEnHnxUAOciOTZtm4Fvf+99wDz/guHDsOnIVSj5ElWGu8Axq4D/ 02785qil1SFc/DAkzFUp6fDihzeiH+Onqpjw4PzR0LVYWOMkPeJyR9ywFPwbuxgp3fQy s4xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=1OyMKVQyjL+OdlAmNXy4YOSyoPJfRigUOuSaiBKIOHc=; b=QYhtMzZB0LQekZ2yNcIOemNWub942+JIHkeHmMtnYB/tVUhHxaUj0lfE+98U4KFnPu 1elk0BZnqeHijpobN80ElFzeKjXu88vSVREPMQRh2icQY/UtLkhEHcZGECxBaa4QMtu2 jAdeZHXN0OMcbz1S1viI2BihJ1yWyoBPUkDCuPO7jNhFmnPIeiTR2lvYtpwBrUk5+Oog GEAVtfurrTQQQuiSzen+InlrLo2K5jSmZFKDvB2gmnBrNc4r/e8oGzmH69NXN/FxRzsS QmPXjd5RukDK48sc6tp/WM9WxgSTWBVGWI3Ktc+8auSb6BY3u8AxnnP80vmuFAdoYawb mKxw== X-Gm-Message-State: APt69E2mUz70d/3aUaML4C7S85za+rVJIJruWvj1VGwDjVHqqTDmMUhe IyD4GOyNUAX42w3PoLOHOeDEBT5UgW06STJ0qxje7w== X-Google-Smtp-Source: AAOMgpefGIXE6ms3dNXosZDjooQSCCtKSNEZT4X0pEFhdjTaxNs68PT1Y62LKtmRp7PUfS26LPztAdred3bXRufnM9c= X-Received: by 2002:a6b:280a:: with SMTP id o10-v6mr6211618ioo.168.1530130436391; Wed, 27 Jun 2018 13:13:56 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:5945:0:0:0:0:0 with HTTP; Wed, 27 Jun 2018 13:13:55 -0700 (PDT) X-Originating-IP: [50.227.106.226] In-Reply-To: <62709.1530130106@kaos.jnpr.net> References: <62709.1530130106@kaos.jnpr.net> From: Warner Losh Date: Wed, 27 Jun 2018 14:13:55 -0600 X-Google-Sender-Auth: ZpUloZ-EfbBp1EHy85l7GKnIlME Message-ID: Subject: Re: makefile question To: "Simon J. Gerraty" Cc: Hartmut Brandt , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2018 20:13:58 -0000 On Wed, Jun 27, 2018 at 2:08 PM, Simon J. Gerraty wrote: > Warner Losh wrote: > > > In libbsnmp a header file is created during the build process, which > > > obviously ends up in the object tree. Now I need to include this file > > > when building the daemon and modules from usr.sbin. I have the feeling > > > that doing > > > > > > CFLAGS += -I../../../lib/libbsnmp/libbsnmp > > > > > > > use ${SRCTOP}/lib/... here > > I think he said it's a generated header. > > Looks like share/mk/src.sys.obj.mk now sets OBJTOP > or at least OBJROOT even for non-meta-mode build. > > So -I${OBJTOP}/lib/libbsnmp/libbsnmp should probably work. > Oh, you're right. I missed that detail. Warner