Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: major_refactor
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (24 sloc) 0.648 kb
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 fades.o shadows.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
@cp -t $(PREFIX)/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
Jump to Line
Something went wrong with that request. Please try again.