blob: 059ab42ded0cf22eb1ece2ed79e08d48019ee195 (
plain)
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
45
46
47
48
49
|
VERSION=20100710
DIST=mcwm-$(VERSION)
SRC=mcwm.c list.c config.h events.h list.h
DISTFILES=LICENSE Makefile NEWS README TODO WISHLIST mcwm.man $(SRC)
CC=gcc
CFLAGS=-g -std=c99 -Wall -Wextra -I/usr/local/include #-DDEBUG #-DDMALLOC
LDFLAGS=-L/usr/local/lib -lxcb -lxcb-keysyms -lxcb-icccm -lxcb-atom # -ldmalloc
RM=/bin/rm
PREFIX=/usr/local
TARGETS=.depend mcwm
OBJS=mcwm.o list.o
all: $(TARGETS)
mcwm: $(OBJS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS)
mcwm-static: $(OBJS)
$(CC) -o $@ $(OBJS) -static $(CFLAGS) $(LDFLAGS) \
-lxcb-property -lxcb-event -lXau -lXdmcp
install: $(TARGETS)
install -m 755 mcwm $(PREFIX)/bin
deinstall:
$(RM) $(PREFIX)/bin/mcwm
$(DIST).tar.bz2:
mkdir $(DIST)
cp $(DISTFILES) $(DIST)/
tar cf $(DIST).tar --exclude .git $(DIST)
bzip2 -9 $(DIST).tar
$(RM) -rf $(DIST)
dist: $(DIST).tar.bz2
clean:
$(RM) -f $(TARGETS) *.o
distclean: clean
$(RM) -f $(DIST).tar.bz2
.depend:
mkdep $(CFLAGS) $(SRC)
depend: .depend
|