mumble/makefile

27 lines
386 B
Makefile
Raw Normal View History

2023-04-29 22:27:11 +00:00
# make
# make build
# (sudo) make install
# make format
# make clean
# make uninstall
## C compiler
CC=tcc # much faster compilation than gcc
2023-04-29 22:56:11 +00:00
## Debugging options
DEBUG=-g#-g
2023-04-29 22:27:11 +00:00
## Main file
2023-04-29 22:56:11 +00:00
SRC=./src/mumble.c
2023-04-29 22:27:11 +00:00
## Formatter
STYLE_BLUEPRINT=webkit
FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT)
build: $(SRC)
2023-04-29 22:56:11 +00:00
$(CC) $(SRC) -o mumble $(DEBUG)
2023-04-29 22:27:11 +00:00
format: $(SRC)
$(FORMATTER) $(SRC)