aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am8
1 files changed, 7 insertions, 1 deletions
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