mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
25 lines
538 B
Makefile
25 lines
538 B
Makefile
PLATFORM := $(shell uname -s)
|
|
ifeq ($(PLATFORM),Darwin)
|
|
BUILD_DIR=build/darwin
|
|
else
|
|
BUILD_DIR=build/linux
|
|
endif
|
|
|
|
all:
|
|
mkdir -p $(BUILD_DIR)
|
|
cd $(BUILD_DIR) && cmake ../.. && make --no-print-directory $(MAKEFLAGS)
|
|
|
|
debug:
|
|
mkdir -p $(BUILD_DIR)
|
|
cd $(BUILD_DIR) && cmake -DCMAKE_BUILD_TYPE=Debug ../../ && make --no-print-directory $(MAKEFLAGS)
|
|
|
|
deps:
|
|
./tools/provision.sh
|
|
|
|
distclean:
|
|
rm -rf .sources $(BUILD_DIR) doxygen/html doxygen/latex
|
|
|
|
%::
|
|
mkdir -p $(BUILD_DIR)
|
|
cd $(BUILD_DIR) && cmake ../.. && make --no-print-directory $@
|