[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Retrieving the "include" directory for Emacs Modules
From: |
Björn Bidar |
Subject: |
Re: Retrieving the "include" directory for Emacs Modules |
Date: |
Sat, 07 Dec 2024 21:09:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Marco Antoniotti <marcoxa@gmail.com> 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
- Retrieving the "include" directory for Emacs Modules, Marco Antoniotti, 2024/12/07
- Re: Re: Retrieving the "include" directory for Emacs Modules, Marco Antoniotti, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/08
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/09
- Re: Re: Retrieving the "include" directory for Emacs Modules, Marco Antoniotti, 2024/12/08