TaKl/Makefile
2023-07-12 22:55:38 +02:00

25 lines
358 B
Makefile

FLAGS = -g -Wall -Wextra -lsqlite3
LD_FLAGS =
$(shell mkdir -p out)
out/%.o: src/%.c
$(CC) -c $(FLAGS) $^ -o $@
out/%.o: src/%.cpp
$(CXX) -c $(FLAGS) $^ -o $@
takl: out/main.o out/db.o out/tasks.o
$(CXX) $(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