blob: e091f8e7405860d1e47a3ec8e956165bac0d0166 (
plain) (
blame)
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
44
|
CC=cc
CFLAGS=
LDFLAGS=
X11LIB = /usr/X11R6/lib
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
CFLAGS += -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\"
LDFLAGS += -L${X11LIB} -lX11 ${XINERAMALIBS}
CFLAGS += `pkg-config --cflags xft pango pangoxft`
LDFLAGS += `pkg-config --libs xft pango pangoxft`
VERSION = 6.2
SRC = dwm.c drw.c util.c
OBJ = ${SRC:.c=.o}
.c.o:
@echo CC $<
echo $(CFLAGS)
echo $(LDFLAGS)
${CC} ${CFLAGS} -c $<
dwm: ${OBJ}
@echo CC -o $@
echo $(CFLAGS)
${CC} -o $@-pixel ${OBJ} ${LDFLAGS}
kconfig2h:
$(CC) -c kconf2h/kconf2h_parser.c
$(CC) kconf2h/kconf2h.c kconf2h_parser.o -o kconf2h/kconf2h
menuconfig: kconfig2h
./mconf Kconfig
kconf2h/kconf2h .config kconfig.h
clean:
rm -rf dwm-pixel
rm -rf *.o
|