all repos — barito @ 91391e96c5b1ff0e2e0b4459193d690cec7edce1

an x11 bar

makefile (view raw)

 1PROG = barito
 2SRCS = ${PROG}.c
 3OBJS = ${SRCS:.c=.o}
 4
 5INCS = -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2
 6LIBS = -L/usr/X11R6/lib -lfontconfig -lXft -lX11
 7
 8CC = clang
 9CFLAGS = -g -O0 -Wall -Wextra ${INCS}
10LDFLAGS = ${LIBS}
11
12all: ${PROG}
13
14${PROG}: ${OBJS}
15	${CC} -o $@ ${OBJS} ${LDFLAGS}
16
17.c.o:
18	${CC} ${CFLAGS} -c $<
19
20clean:
21	-rm ${OBJS} ${PROG}
22
23test: ${PROG}
24	./${PROG}
25
26.PHONY: all clean test