mplay

Controllable music player
git clone https://git.sinitax.com/sinitax/mplay
Log | Files | Refs | sfeed.txt

Makefile (400B)


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