1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00
picom/Makefile
Christopher Jeffrey 8f4eafaf79 reorganize tree
2012-02-27 05:22:33 -06:00

29 lines
631 B
Makefile

PACKAGES = x11 xcomposite xfixes xdamage xrender
LIBS = `pkg-config --libs $(PACKAGES)` -lm
INCS = `pkg-config --cflags $(PACKAGES)`
CFLAGS = -Wall
PREFIX = /usr
MANDIR = $(PREFIX)/share/man/man1
OBJS = compton.o
%.o: src/%.c src/%.h
$(CC) $(CFLAGS) $(INCS) -c src/$*.c
compton: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
install: compton
@cp -t $(PREFIX)/bin compton
@[ -d "$(MANDIR)" ] \
&& cp -t "$(MANDIR)" man/compton.1
@cp -t $(PREFIX)/bin bin/settrans
uninstall:
@rm -f $(PREFIX)/bin/compton
@rm -f $(MANDIR)/compton.1
@rm -f $(PREFIX)/bin/settrans
clean:
@rm -f $(OBJS) compton
.PHONY: uninstall clean