blob: 793d9dbff27d87c68e3a68be14c2ba5e5c05eca6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
run: BUILD/main
./$^
BUILD/main: BUILD/CMakeCache.txt main.cc jit.h ccompiler.h
ninja -C BUILD
BUILD/CMakeCache.txt: CMakeLists.txt
# When building against a specific LLVM/CLANG build use
# -DCLANG_INSTALL_PREFIX=<PATH>
# to configure the root of the installation.
cmake -B BUILD -S . -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=1
ln -sfn BUILD/compile_commands.json
touch $@
fmt:
clang-format -i *.cc *.h
clean:
$(RM) -r BUILD compile_commands.json
|