24 lines
310 B
Makefile
24 lines
310 B
Makefile
FLAGS = -g -Wall -Wextra
|
|
LD_FLAGS = -lsqlite3
|
|
|
|
|
|
$(shell mkdir -p out)
|
|
|
|
|
|
out/%.o: src/%.c
|
|
$(CC) -c $(FLAGS) $^ -o $@
|
|
|
|
takl: out/main.o out/db.o out/tasks.o
|
|
$(CC) $(FLAGS) $(LD_FLAGS) $^ -o $@
|
|
|
|
|
|
install: takl
|
|
sudo cp takl /usr/bin/takl
|
|
|
|
uninstall: takl
|
|
sudo rm /usr/bin/takl
|
|
|
|
|
|
clean:
|
|
rm out -r
|
|
rm ./takl
|