QUOTE: Love yourself first, then others.

rx

A terminal-based radio player

Makefile (374B)


      1 CC=cc
      2 CFLAGS=-Werror -Wall -Wextra -pedantic
      3 MODFLAGS=-shared -fPIC
      4 LIBS=-lraylib -lmpv
      5 DEBUG=-g -rdynamic
      6 
      7 build: src/*.c
      8 	mkdir -p ./build
      9 	$(CC) -o ./build/rx $(CFLAGS) $(LIBS) $(DEBUG) $^
     10 
     11 build-byb: mods/byb.c
     12 	$(CC) -o ./build/byb.so $(CFLAGS) $(MODFLAGS) $(DEBUG) -lcurl $^
     13 
     14 install: build
     15 	cp build/rx ~/.local/bin/rx
     16 
     17 run: build
     18 	./build/rx
     19 
     20 clean:
     21 	rm -rf ./build