TaKl/Makefile
2023-07-12 11:08:40 +02:00

19 lines
275 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 $@
clean:
rm out -r
rm ./takl