3b6b0adc44
* master: (22 commits) Prevent a NULL pointer deference if monitor_create fails Fix the 'T' command parsing Put the elements of rgba_t in the right order. Thanks to @mrshankly for noticing it Document #97 - Nested clickable areas Support colors in #rrggbb form Make bar compile with -Wall and no warning Treat getopt return value as int instead of char. Avoids bar getting stuck in an endless loop on PPC platforms. (Thanks to @electro7) Clean up the code doing color parsing and handling. Implement gradients as a bonus feature (not yet exposed) Strip all the unnecessary stuff when parsing the font list Fix typo in README.pod about the scroll up/down buttons change comment style move a declaration to the top of the function remove duplicate test area_add: Use str directly typo, whitin -> within Allow having clickable areas inside another Fix a silly bound-checking error. (#101) Close a long-standing PR by configuring the window position after mapping it Set the window title Fixed two memory leaks. Don't treat unicode sequences over two bytes long as latin1 codepoints (fixes #99). Allow explicitly specifying the font with %{Tindex} Add break from main loop when X conn has error ...
42 lines
964 B
Makefile
42 lines
964 B
Makefile
CC ?= gcc
|
|
STRIP ?= strip
|
|
CFLAGS = -Wall -std=c99 -I/usr/include/freetype2 -Os
|
|
LDFLAGS = -lxcb -lxcb-xinerama -lxcb-randr -lX11 -lX11-xcb -lXft -lfreetype -lz -lfontconfig
|
|
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
|
|
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
|
|
|
EXEC = bar
|
|
SRCS = bar.c
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
PREFIX?=/usr
|
|
BINDIR=${PREFIX}/bin
|
|
|
|
all: ${EXEC}
|
|
|
|
doc: README.pod
|
|
pod2man --section=1 --center="bar Manual" --name "bar" --release="bar $(shell git describe --always)" README.pod > bar.1
|
|
|
|
.c.o:
|
|
${CC} ${CFLAGS} -o $@ -c $<
|
|
|
|
${EXEC}: ${OBJS}
|
|
${CC} -o ${EXEC} ${OBJS} ${LDFLAGS}
|
|
|
|
debug: ${EXEC}
|
|
debug: CC += ${CFDEBUG}
|
|
|
|
clean:
|
|
rm -f ./*.o ./*.1
|
|
rm -f ./${EXEC}
|
|
|
|
install: bar doc
|
|
install -D -m 755 bar ${DESTDIR}${BINDIR}/bar
|
|
install -D -m 644 bar.1 ${DESTDIR}${PREFIX}/share/man/man1/bar.1
|
|
|
|
uninstall:
|
|
rm -f ${DESTDIR}${BINDIR}/bar
|
|
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/bar.1
|
|
|
|
.PHONY: all debug clean install
|