-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.mk
More file actions
32 lines (24 loc) · 750 Bytes
/
config.mk
File metadata and controls
32 lines (24 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# dwm version
VERSION = 6.8
VERSION := $(shell git describe --tags --abbrev=0)-planet36
# Customize below to fit your system
# paths
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
# Xinerama, comment if you don't want it
#XINERAMALIBS = -lXinerama
#XINERAMAFLAGS = -DXINERAMA
# includes and libs
INCS = `pkg-config --cflags xft`
LIBS = `pkg-config --libs fontconfig x11 xft` $(XINERAMALIBS)
# flags
CPPFLAGS = -MMD -MP
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE $(INCS) $(XINERAMAFLAGS)
CFLAGS = -std=c23
CFLAGS += -pipe -Wall -Wextra -Wpedantic -Wfatal-errors
CFLAGS += -O3 -flto=auto -march=native
CFLAGS += -Wno-shadow
CFLAGS += -Wno-sign-compare
CFLAGS += -Wno-unused-parameter
LDLIBS = $(LIBS)