Add makefile

This commit is contained in:
Evan Burkey 2024-06-07 08:58:36 -07:00
parent a61a59e281
commit 5d4bf996c2
2 changed files with 14 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,2 +1,4 @@
.idea
cmake-build*
build/
compile_commands.json

12
Makefile Normal file
View File

@ -0,0 +1,12 @@
CMAKE_OPTS=-DCMAKE_EXPORT_COMPILE_COMMANDS=1
all:
mkdir -p build
cd build && \
cmake ${CMAKE_OPTS} .. && \
make && \
cp compile_commands.json ..
clean:
rm -rf build
rm -f compile_commands.json