diff options
author | cos <cos> | 2013-10-21 23:27:57 +0200 |
---|---|---|
committer | cos <cos> | 2013-10-21 23:27:57 +0200 |
commit | c21f516a417f818f20a87dc2a5ed9d5d8bac8225 (patch) | |
tree | 000cadd9762c32ed63d4e42e8e6a6b5de9f343a1 /Makefile | |
parent | f0a955ee965156ec5d5f9cfde3446579d519b690 (diff) | |
parent | f20b857e33d1ffcb36ae3a4bcf38f500e24c2536 (diff) | |
download | mcwm-c21f516a417f818f20a87dc2a5ed9d5d8bac8225.zip |
Merge tag '20130209-2' into debianization
20130209-2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -1,27 +1,29 @@ -VERSION=20110818 +VERSION=20130209-2 DIST=mcwm-$(VERSION) -SRC=mcwm.c list.c config.h events.h list.h -DISTFILES=LICENSE Makefile NEWS README TODO WISHLIST mcwm.man $(SRC) +SRC=mcwm.c list.c config.h events.h list.h hidden.c +DISTFILES=LICENSE Makefile NEWS README TODO WISHLIST mcwm.man hidden.man scripts $(SRC) -CC=gcc -CFLAGS=-g -std=c99 -Wall -Wextra -O2 -I/usr/local/include #-DDEBUG #-DDMALLOC -LDFLAGS=-L/usr/local/lib -lxcb -lxcb-randr -lxcb-keysyms -lxcb-icccm \ - -lxcb-atom #-ldmalloc +CFLAGS+=-g -std=c99 -Wall -Wextra -I/usr/local/include #-DDEBUG #-DDMALLOC +LDFLAGS+=-L/usr/local/lib -lxcb -lxcb-randr -lxcb-keysyms -lxcb-icccm \ + -lxcb-util #-ldmalloc RM=/bin/rm PREFIX=$(DESTDIR) -TARGETS=mcwm +TARGETS=mcwm hidden OBJS=mcwm.o list.o all: $(TARGETS) mcwm: $(OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) + $(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) -o $@ + +hidden: hidden.c + $(CC) $(CFLAGS) hidden.c $(LDFLAGS) -o $@ mcwm-static: $(OBJS) - $(CC) -o $@ $(OBJS) -static $(CFLAGS) $(LDFLAGS) \ - -lxcb-property -lxcb-event -lXau -lXdmcp + $(CC) $(OBJS) -static $(CFLAGS) $(LDFLAGS) \ + -lXau -lXdmcp -o $@ mcwm.o: mcwm.c events.h list.h config.h Makefile @@ -31,14 +33,19 @@ install: $(TARGETS) install -m 755 mcwm $(PREFIX)/bin install -m 755 -d $(PREFIX)/man/man1/ install -m 644 mcwm.man $(PREFIX)/man/man1/mcwm.1 + install -m 755 hidden $(PREFIX)/bin + install -m 644 hidden.man $(PREFIX)/man/man1/hidden.1 +uninstall: deinstall deinstall: $(RM) $(PREFIX)/bin/mcwm $(RM) $(PREFIX)/man/man1/mcwm.1 + $(RM) $(PREFIX)/bin/hidden + $(RM) $(PREFIX)/man/man1/hidden.1 $(DIST).tar.bz2: mkdir $(DIST) - cp $(DISTFILES) $(DIST)/ + cp -r $(DISTFILES) $(DIST)/ tar cf $(DIST).tar --exclude .git $(DIST) bzip2 -9 $(DIST).tar $(RM) -rf $(DIST) |