aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-06-01 20:45:38 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-06-01 20:45:38 +0200
commit137306044139d30d4b6d604f2a5c031ed5a70cca (patch)
tree80e48fc5f629452f0126f4d74d2626eb2389e791
parentf9ecb7e5b111193db0f5d714e748762ee2b8be1b (diff)
downloaddns-137306044139d30d4b6d604f2a5c031ed5a70cca.tar.gz
clangd settings
-rw-r--r--.gitignore2
-rw-r--r--Makefile5
2 files changed, 6 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 7a75f37..972774c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
obj/
build/
tags
+
+compile_flags.txt
diff --git a/Makefile b/Makefile
index 40430bd..c642e1f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC = clang
-CFLAGS = -Wall -std=c89 -D _DEFAULT_SOURCE
+CFLAGS = -Wall -std=c89 -D_DEFAULT_SOURCE
LDFLAGS = -lm
BUILDDIR = build
SOURCEDIR = src
@@ -44,3 +44,6 @@ clean:
.PHONY: all
all: clean build
+
+devsetup:
+ @echo "$(CFLAGS)" | tr ' ' '\n' > compile_flags.txt