From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Bj=C3=B6rn?= Bidar Newsgroups: gmane.emacs.help Subject: Re: Retrieving the "include" directory for Emacs Modules Date: Sat, 07 Dec 2024 21:09:31 +0200 Message-ID: <40324.4545379252$1733598608@news.gmane.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13052"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Marco Antoniotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 20:10:00 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tK0Bk-0003Es-Dh for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 20:10:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tK0BR-0007Kc-Kt; Sat, 07 Dec 2024 14:09:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tK0BP-0007K6-1p for help-gnu-emacs@gnu.org; Sat, 07 Dec 2024 14:09:39 -0500 Original-Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tK0BK-000679-A3 for help-gnu-emacs@gnu.org; Sat, 07 Dec 2024 14:09:37 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 38FF2D00054; Sat, 7 Dec 2024 21:09:32 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1733598572; bh=kzwLfNriJokFKTio9c8RBxQdrcv1xN1KdlqZXRd27MA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=2WFW+SB4iEWGXfrn2CM/pPENXpAt/KB9zhHrsryPHiny66ZtKHF0PFUBLKcQSWadJ wVZXWUWRP5aCP5LjrmCwGT4qI2jRXbBymRmMx6V5OzkbUAeMLChktbWELkTpGnjGTt uDW5ttrRiYxUAvZjtQiz6i/mQNeB+8NdvU7LWNGtP5eQOSJbPJIy9FQzqtuf0aSwvd 1eCItBZBMWqHgI45GimTBWjNPWmLcgWm+8LVVFi5a0xZsvEVLajaUh+FWttsn7Nrs2 lF2tFwVqh1vKWTuBbTYhfNx/EehnWczl5U2CVHc2BHBbA3Fh6EyeRlPBftq7AoK+S4 qzokdbA3hfzAfoRH/re0NAvPu5ZIF1ygrWSRjKMBrM5cqd2xR1IG1ucFn9DGotN4Ga vJibKL7/N0VCm8VHSiXL1BY7lg3tj4i0pZe/UE00igW4wXsT3g1xaJFoB6lnUewdo4 eMErQPuyt6ZX3qH4HKOjGORA0cXtysUNTipgsrNEkMi++43ygUE63HxEih+CQtHYBO 5ehXEw5rpR5/KMOYpYKrgSxORUDlDJ+nauRPe4MNkq7V72tX8jXLPfv1/U9MI4YX5J p4YiPzOzkDu36RnFudOpWy7X7C2dsEgqWQGzPWzZBwHpemvn3V5MAleDpd5tGAr//v mVKPNREJpUEzOpbAgdR0nlgw= In-Reply-To: (Marco Antoniotti's message of "Sat, 7 Dec 2024 17:27:16 +0100") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@thaodan.de; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148661 Archived-At: Marco Antoniotti writes: > Hi > > To compile Emacs C modules we need the proper 'include' directory. I.e., > we need to stick that information into Makefiles. > > We do have lisp-directory (and we can surmise the location of the include > directory from it), but it would be nice to have something like > em-include-directory (the em- prefix for "Emacs Module"). > > Meanwhile, any idea about how to make this somewhat portable? You mean in the makefile or in lisp? If it's in the makefile you should find out the directory the makefile is in and then go from there. E.g.: MAKEFILEDIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) CFLAGS += -I$(MAKEFILEDIR)/include