blob: b2a2af67b9c372d856d1e81c4f0a3dee486e1945 (
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
|
VERSION=201000622
DIST=mcwm-$(VERSION)
DISTFILES=LICENSE Makefile NEWS README TODO WISHLIST config.h mcwm.c
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
TARGETS=mcwm
all: $(TARGETS)
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
$(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
|