xf86ctrl

mplay control using xf86 media keys
git clone https://git.sinitax.com/sinitax/xf86ctrl
Log | Files | Refs | LICENSE | sfeed.txt

Makefile (430B)


      1PREFIX ?= /usr/local
      2BINDIR ?= /bin
      3
      4LDLIBS = -lX11 -lutil
      5CFLAGS = -Wunused-function -Wunused-variable -Wconversion
      6
      7ifeq ($(DEBUG),1)
      8CFLAGS += -Og -g
      9else
     10CFLAGS += -O2
     11endif
     12
     13all: xf86ctrl
     14
     15clean:
     16	rm -f main
     17
     18xf86ctrl: main.c
     19	$(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)
     20
     21install:
     22	install -m755 xf86ctrl -t "$(DESTDIR)$(PREFIX)$(BINDIR)"
     23
     24uninstall:
     25	rm -f "$(DESTDIR)$(PREFIX)$(BINDIR)/xf86ctrl"
     26
     27.PHONY: all clea install uninstall