public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Question regarding headers to be exported
@ 2020-11-10 16:27 Lukasz Majewski
  2020-11-12  8:11 ` Szabolcs Nagy
  0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Majewski @ 2020-11-10 16:27 UTC (permalink / raw)
  To: libc-help; +Cc: Adhemerval Zanella via Libc-help, Florian Weimer

[-- Attachment #1: Type: text/plain, Size: 1041 bytes --]

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

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-12  8:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 16:27 Question regarding headers to be exported Lukasz Majewski
2020-11-12  8:11 ` Szabolcs Nagy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).