From 9ffc6e0c8745a2dffb1fb98188c346e4f124f3a1 Mon Sep 17 00:00:00 2001
From: Mateja <mail@matejamaric.com>
Date: Wed, 9 Dec 2020 20:15:32 +0100
Subject: Add compile_commands.json for clangd.

---
 Makefile              | 12 +++++------
 compile_commands.json | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+), 6 deletions(-)
 create mode 100644 compile_commands.json

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"
+  }
+]
-- 
cgit v1.2.3