diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | src/Makefile.am | 8 |
2 files changed, 8 insertions, 1 deletions
@@ -53,3 +53,4 @@ testsuite.dir # Created e.g. by `bear -- gmake` for clangd. # You may also have to create a symbolic link, so clangd finds it. compile_commands.json +compile_flags.txt diff --git a/src/Makefile.am b/src/Makefile.am index fa6c0e4..eb532e3 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,6 +12,7 @@ include $(top_srcdir)/bootstrap.am include $(top_srcdir)/contrib/scintilla.am # FIXME: Common flags should be in configure.ac +# See also compile_flags.txt. AM_CFLAGS = -std=gnu11 -Wall -Wno-initializer-overrides -Wno-unused-value AM_CPPFLAGS += -I$(top_srcdir)/contrib/rb3ptr -I$(top_srcdir)/contrib/terex \ -I$(top_srcdir)/contrib/sj.h @@ -22,7 +23,12 @@ if STATIC_EXECUTABLES AM_LDFLAGS += -all-static endif -BUILT_SOURCES = +BUILT_SOURCES = compile_flags.txt + +# for clangd +compile_flags.txt : GNUmakefile + printf '%s\n' $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) >$@ dist_noinst_SCRIPTS = symbols-extract.tes |
