aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-12-09 20:15:32 +0100
committerMateja <mail@matejamaric.com>2020-12-09 20:15:32 +0100
commit9ffc6e0c8745a2dffb1fb98188c346e4f124f3a1 (patch)
treea9feaa2ed69f7b00561471ffba864ce84d256269
parentf5644c06b741ee51089a10286fd89a739d3d572f (diff)
downloadmterm-9ffc6e0c8745a2dffb1fb98188c346e4f124f3a1.tar.gz
mterm-9ffc6e0c8745a2dffb1fb98188c346e4f124f3a1.zip
Add compile_commands.json for clangd.
-rw-r--r--Makefile12
-rw-r--r--compile_commands.json55
2 files changed, 61 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 25fff3d..58b44f6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
-CC := gcc
-CFLAGS := -O2 -Wall $(shell pkg-config --cflags vte-2.91)
-LIBS := $(shell pkg-config --libs vte-2.91)
+CC := gcc
+CFLAGS := -O2 -Wall $(shell pkg-config --cflags vte-2.91)
+LIBS := $(shell pkg-config --libs vte-2.91)
-PREFIX ?= /usr/local
-BINDIR ?= ${PREFIX}/bin
+PREFIX ?= /usr/local
+BINDIR ?= ${PREFIX}/bin
DATADIR ?= ${PREFIX}/share
-MANDIR ?= ${DATADIR}/man
+MANDIR ?= ${DATADIR}/man
mterm: main.c config.h; $(CC) $(CFLAGS) $? $(LIBS) -o $@
diff --git a/compile_commands.json b/compile_commands.json
new file mode 100644
index 0000000..4dde6f6
--- /dev/null
+++ b/compile_commands.json
@@ -0,0 +1,55 @@
+[
+ {
+ "directory": "/home/fish/work/projects/public/mterm",
+ "command": "/usr/bin/gcc",
+ "arguments": [
+ "-O2",
+ "-Wall",
+ "-pthread",
+ "-I/usr/local/include/vte-2.91",
+ "-I/usr/include/gtk-3.0",
+ "-I/usr/include/at-spi2-atk/2.0",
+ "-I/usr/include/at-spi-2.0",
+ "-I/usr/include/dbus-1.0",
+ "-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include",
+ "-I/usr/include/gtk-3.0",
+ "-I/usr/include/cairo",
+ "-I/usr/include/libdrm",
+ "-I/usr/include/pango-1.0",
+ "-I/usr/include/harfbuzz",
+ "-I/usr/include/pango-1.0",
+ "-I/usr/include/fribidi",
+ "-I/usr/include/atk-1.0",
+ "-I/usr/include/cairo",
+ "-I/usr/include/pixman-1",
+ "-I/usr/include/freetype2",
+ "-I/usr/include/libpng16",
+ "-I/usr/include/gdk-pixbuf-2.0",
+ "-I/usr/include/gio-unix-2.0",
+ "-I/usr/include/libmount",
+ "-I/usr/include/blkid",
+ "-I/usr/include/uuid",
+ "-I/usr/include/glib-2.0",
+ "-I/usr/lib/x86_64-linux-gnu/glib-2.0/include",
+ "-I/usr/include/p11-kit-1",
+ "-L/usr/local/lib",
+ "-lvte-2.91",
+ "-lgtk-3",
+ "-lgdk-3",
+ "-lpangocairo-1.0",
+ "-lpango-1.0",
+ "-latk-1.0",
+ "-lcairo-gobject",
+ "-lcairo",
+ "-lgdk_pixbuf-2.0",
+ "-lgio-2.0",
+ "-lgobject-2.0",
+ "-lglib-2.0",
+ "-lz",
+ "-lpcre2-8",
+ "-lgnutls"
+ ],
+ "file": "term.c config.h",
+ "output": "mterm"
+ }
+]