picom/Makefile

30 lines
631 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
2012-02-20 10:38:16 +00:00
PREFIX = /usr
2011-12-07 18:35:22 +00:00
MANDIR = $(PREFIX)/share/man/man1
OBJS = compton.o
2011-11-07 00:20:45 +00:00
2012-02-27 07:42:38 +00:00
%.o: src/%.c src/%.h
$(CC) $(CFLAGS) $(INCS) -c src/$*.c
2011-11-07 00:20:45 +00:00
compton: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
install: compton
2011-12-07 18:35:22 +00:00
@cp -t $(PREFIX)/bin compton
@[ -d "$(MANDIR)" ] \
2012-02-27 07:42:38 +00:00
&& cp -t "$(MANDIR)" man/compton.1
@cp -t $(PREFIX)/bin bin/settrans
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
2012-01-10 20:51:09 +00:00
@rm -f $(PREFIX)/bin/settrans
2011-11-07 00:20:45 +00:00
clean:
2011-12-09 14:46:40 +00:00
@rm -f $(OBJS) compton
2011-11-07 00:20:45 +00:00
.PHONY: uninstall clean