forked from trailofbits/polytracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 690 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This is intentionally a very simple top-level Makefile, just to drive the
# semi-complicated CMake build process.
# This Makefile provides a few top-level targets
.PHONY: install clean check
CC := clang
CXX := clang++
CFLAGS := -DSANITIZER_DEBUG=1 -Wall -Wextra -Wno-unused-parameter
CXXFLAGS := $(CFLAGS)
install: .cmake_init
$(MAKE) -C build install
.cmake_init:
mkdir -p build
cd build && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug ../
touch $@
clean:
rm -rf build .cmake_init
check: install
env PATH="$$PATH:$$PWD/build/bin/polytracker" polytracker/test/test-polytracker