forked from JLErvin/berry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mk
43 lines (35 loc) · 1.38 KB
/
config.mk
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
33
34
35
36
37
38
39
40
41
42
43
# To enable debug output:
#DEBUG_CPPFLAGS = -DDEBUG
#DEBUG_CFLAGS = -g
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
datarootdir = $(prefix)/share
MANPREFIX = $(prefix)/man
MANDIR = $(MANPREFIX)/man1
__NAME__ = berry
__NAME_WM__ = $(__NAME__)
__NAME_C__ = $(__NAME__)c
__NAME_UPPERCASE__ = `echo $(__NAME__) | sed 's/.*/\U&/'`
__NAME_CAPITALIZED__ = `echo $(__NAME__) | sed 's/^./\U&\E/'`
__NAME_WM_UPPERCASE__ = `echo $(__NAME_WM__) | sed 's/.*/\U&/'`
__NAME_WM_CAPITALIZED__ = `echo $(__NAME_WM__) | sed 's/^./\U&\E/'`
__NAME_C_UPPERCASE__ = `echo $(__NAME_C__) | sed 's/.*/\U&/'`
__NAME_C_CAPITALIZED__ = `echo $(__NAME_C__) | sed 's/^./\U&\E/'`
NAME_DEFINES = \
-D__NAME__=\"$(__NAME__)\" \
-D__NAME_UPPERCASE__=\"$(__NAME_UPPERCASE__)\" \
-D__NAME_CAPITALIZED__=\"$(__NAME_CAPITALIZED__)\" \
-D__NAME_WM__=\"$(__NAME_WM__)\" \
-D__NAME_WM_UPPERCASE__=\"$(__NAME_WM_UPPERCASE__)\" \
-D__NAME_WM_CAPITALIZED__=\"$(__NAME_WM_CAPITALIZED__)\" \
-D__NAME_C__=\"$(__NAME_C__)\" \
-D__NAME_C_UPPERCASE__=\"$(__NAME_C_UPPERCASE__)\" \
-D__NAME_C_CAPITALIZED__=\"$(__NAME_C_CAPITALIZED__)\" \
CPPFLAGS += $(NAME_DEFINES) -DSRVR_$$HOSTNAME $(DEBUG_CPPFLAGS)
CFLAGS += -Wall -O3 $(DEBUG_CFLAGS)
CFLAGS += -Icore -Iinclude -I/usr/include/freetype2
LDFLAGS += -lX11 -lXrandr -lXft