Makefile (496B)
1 .POSIX: 2 TARGET = tmisu 3 SRC = tmisu.c output.c 4 HDRS = tmisu.h output.h 5 6 PREFIX ?= /usr/local 7 8 CFLAGS = -W -Wall -std=c99 9 IFLAGS = $$(pkg-config --cflags dbus-1) 10 LFLAGS = $$(pkg-config --libs dbus-1) 11 OBJ = ${SRC:.c=.o} 12 13 all: ${TARGET} 14 15 .c.o: 16 ${CC} -c $< ${CFLAGS} ${IFLAGS} -o $@ 17 18 ${TARGET}: ${OBJ} 19 ${CC} ${CFLAGS} ${IFLAGS} ${OBJ} ${LFLAGS} ${LDFLAGS} -o ${TARGET} 20 21 install: ${TARGET} 22 mkdir -p ${DESTDIR}${PREFIX}/bin 23 cp -f ${TARGET} ${DESTDIR}${PREFIX}/bin 24 25 clean: 26 ${RM} -f ${OBJ} ${TARGET}