blob: 9d66a5530b0d2db0ab4b372b4c1a76ad93220c83 (
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
|
VERSION=201000624-3
DIST=mcwm-$(VERSION)
DISTFILES=LICENSE Makefile NEWS README TODO WISHLIST config.h mcwm.c \
events.h
CC=gcc
CFLAGS=-g -std=c99 -Wall -I/usr/local/include -L/usr/local/lib -lxcb \
-lxcb-keysyms -lxcb-icccm -lxcb-atom #-DDEBUG
RM=/bin/rm
PREFIX=/usr/local
TARGETS=mcwm
all: $(TARGETS)
mcwm: mcwm.c config.h events.h Makefile
mcwm-static: mcwm.c config.h
$(CC) -o mcwm-static mcwm.c -static -g -std=c99 -Wall \
-I/usr/local/include/ -L/usr/local/lib \
-lxcb -lxcb-keysyms -lxcb-icccm -lxcb-atom -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)
distclean: clean
$(RM) -f $(DIST).tar.bz2
|