picom/Makefile

30 lines
567 B
Makefile
Raw Normal View History

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