2011-11-06 19:20:45 -05:00
|
|
|
PACKAGES = x11 xcomposite xfixes xdamage xrender
|
|
|
|
LIBS = `pkg-config --libs ${PACKAGES}` -lm
|
|
|
|
INCS = `pkg-config --cflags ${PACKAGES}`
|
|
|
|
CFLAGS = -Wall
|
|
|
|
PREFIX = /usr/local
|
|
|
|
MANDIR = ${PREFIX}/share/man/man1
|
|
|
|
|
|
|
|
OBJS=compton.o
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) $(INCS) -c $*.c
|
|
|
|
|
|
|
|
compton: $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
|
|
|
|
|
|
|
$(OBJS): compton.h
|
|
|
|
|
|
|
|
install: compton
|
|
|
|
@cp -t ${PREFIX}/bin compton
|
|
|
|
@[ -d "${MANDIR}" ] \
|
|
|
|
&& cp -t "${MANDIR}" compton.1
|
|
|
|
|
|
|
|
uninstall:
|
2011-12-05 07:52:11 -05:00
|
|
|
@rm -f ${PREFIX}/bin/compton
|
2011-11-06 19:20:45 -05:00
|
|
|
@rm -f ${MANDIR}/compton.1
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OBJS) compton
|
|
|
|
|
|
|
|
.PHONY: uninstall clean
|