Makefile (271B)
1 CC=cc 2 CFLAGS=-Wall -Wextra -Werror -pedantic 3 DEBUG=-g -rdynamic 4 LIBS=-lstr -ltoml 5 6 default: build 7 8 build: src/*.c 9 $(CC) -o rc $(CFLAGS) $(LIBS) $^ 10 11 run: build 12 ./rc 13 14 install: build 15 sudo cp ./rc /usr/local/bin/rc 16 17 uninstall: 18 sudo rm /usr/local/bin/rc 19 20 clean: 21 rm ./rc