blob: de84857e09cf81c5e6e046434ea28a5f994b2ec2 (
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
|
VERSION=201000624
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: mcwm.c config.h
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
|