From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [IPv6:2001:a60:0:28:0:1:25:1]) by sourceware.org (Postfix) with ESMTPS id A976F3860C35 for ; Tue, 10 Nov 2020 16:27:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A976F3860C35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=lukma@denx.de Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4CVtZ95PdJz1rwDg; Tue, 10 Nov 2020 17:27:45 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4CVtZ957B4z1r56P; Tue, 10 Nov 2020 17:27:45 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id uW-Bf3w52ynv; Tue, 10 Nov 2020 17:27:44 +0100 (CET) X-Auth-Info: PQ5YsRyISQCMqCq/Vi0X1shtGFO0Blj9ZwRi+MqgLAA= Received: from jawa (89-64-5-98.dynamic.chello.pl [89.64.5.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 10 Nov 2020 17:27:44 +0100 (CET) Date: Tue, 10 Nov 2020 17:27:05 +0100 From: Lukasz Majewski To: "libc-help@sourceware.org" Cc: Adhemerval Zanella via Libc-help , Florian Weimer Subject: Question regarding headers to be exported Message-ID: <20201110172705.455af5e5@jawa> Organization: denx.de X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/37gYgxbQEVJBsbpdMOwtRw_"; protocol="application/pgp-signature" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2020 16:27:48 -0000 --Sig_/37gYgxbQEVJBsbpdMOwtRw_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Dear Community, Recently, I've been delving into Makefiles to understand the idea behind the way headers are exported (installed) on the target system. There is sysdep_headers variable, which adds some files (like sys/timerfd.h, bits/shmlba.h) but also some files are exported when they are placed in the ./include/* directory (includedir variable). One example is struct_timespec.h: ./include/bits/types/struct_timespec.h -> here we just have #include to exported one ./time/bits/types/struct_timespec.h I'm wondering why all exported files are not just added to "sysdep_headers" (or any other variable)? Why do we have some indirection with "includedir" variable (and repetition of directory tree) ? Thanks in advance for the explanation. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/37gYgxbQEVJBsbpdMOwtRw_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAl+qv1oACgkQAR8vZIA0 zr2UDgf/b4YBxFjitc874wdHqQXRJE8hifXcf890BkCPNjGYMxLwoRqdZiZ310+L SCRDEHOAnpkeMtaae6F5I0zWYthS/h97ynYPVr0/tMBz0I78w5SLIAURAtIM5cwT y4A+r7jl46poapFAm6G5tFpLeDLXWIdgLWEBb1n100wVhI3qvEsYzzfuLgrLXG5P Fx/hxLBYy7G8GxV8InxsujISIKo7psYUcpRnc7uzlePbOPNBtNFUfcc2jVrP/hE/ y3kfVrwDwP7KsZQE4vlAZnmAR7aNO4JTiMawVtHoggadR0u5zPUxRkeD5DmT0J/l gu21o0HVYi2dWCuXbFXeOcWRgU2x3w== =DAaB -----END PGP SIGNATURE----- --Sig_/37gYgxbQEVJBsbpdMOwtRw_--