You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.4 KiB
82 lines
2.4 KiB
9 years ago
|
# Copyright (c) 2015 - present Facebook, Inc.
|
||
|
# All rights reserved.
|
||
|
#
|
||
|
# This source code is licensed under the BSD style license found in the
|
||
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||
|
|
||
8 years ago
|
SHELL = bash
|
||
9 years ago
|
|
||
8 years ago
|
include $(ROOT_DIR)/Makefile.autoconf
|
||
|
|
||
|
PLATFORM = $(shell uname)
|
||
9 years ago
|
|
||
8 years ago
|
COPY = cp -f
|
||
9 years ago
|
COPY_DIR = cp -Rf
|
||
8 years ago
|
REMOVE = rm -f
|
||
|
REMOVE_DIR = rm -rf
|
||
9 years ago
|
|
||
9 years ago
|
ABSOLUTE_ROOT_DIR = $(shell cd $(ROOT_DIR) && pwd)
|
||
|
|
||
9 years ago
|
DEPENDENCIES_DIR = $(ABSOLUTE_ROOT_DIR)/dependencies
|
||
|
DOCKER_DIR = $(ABSOLUTE_ROOT_DIR)/docker
|
||
9 years ago
|
EXAMPLES_DIR = $(ABSOLUTE_ROOT_DIR)/examples
|
||
9 years ago
|
INFER_DIR = $(ABSOLUTE_ROOT_DIR)/infer
|
||
9 years ago
|
FCP_DIR = $(ABSOLUTE_ROOT_DIR)/facebook-clang-plugins
|
||
9 years ago
|
M4_DIR = $(ABSOLUTE_ROOT_DIR)/m4
|
||
9 years ago
|
SCRIPT_DIR = $(ABSOLUTE_ROOT_DIR)/scripts
|
||
|
|
||
|
FCP_CLANG_OCAML_DIR = $(FCP_DIR)/clang-ocaml
|
||
9 years ago
|
|
||
9 years ago
|
ANNOTATIONS_DIR = $(INFER_DIR)/annotations
|
||
9 years ago
|
BIN_DIR = $(INFER_DIR)/bin
|
||
9 years ago
|
ETC_DIR = $(INFER_DIR)/etc
|
||
9 years ago
|
LIB_DIR = $(INFER_DIR)/lib
|
||
9 years ago
|
MODELS_DIR = $(INFER_DIR)/models
|
||
8 years ago
|
JAVA_BUILTINS_DIR = $(MODELS_DIR)/java/builtins
|
||
9 years ago
|
SRC_DIR = $(INFER_DIR)/src
|
||
9 years ago
|
|
||
8 years ago
|
BUILD_DIR = $(INFER_DIR)/_build
|
||
9 years ago
|
INFER_BUILD_DIR = $(BUILD_DIR)/infer
|
||
|
TEST_BUILD_DIR = $(BUILD_DIR)/test
|
||
|
|
||
9 years ago
|
JAVA_LIB_DIR = $(LIB_DIR)/java
|
||
9 years ago
|
SPECS_LIB_DIR = $(LIB_DIR)/specs
|
||
|
|
||
9 years ago
|
PYTHON_DIR = $(LIB_DIR)/python
|
||
|
PYTHON_LIB_DIR = $(PYTHON_DIR)/inferlib
|
||
9 years ago
|
CAPTURE_LIB_DIR = $(PYTHON_LIB_DIR)/capture
|
||
|
|
||
|
INFERANALYZE_BIN = $(BIN_DIR)/InferAnalyze
|
||
|
INFERCLANG_BIN = $(BIN_DIR)/InferClang
|
||
|
INFERPRINT_BIN = $(BIN_DIR)/InferPrint
|
||
9 years ago
|
INFERUNIT_BIN = $(BIN_DIR)/InferUnit
|
||
8 years ago
|
INFER_BIN = $(BIN_DIR)/infer
|
||
9 years ago
|
INFERTRACEBUGS_BIN = $(BIN_DIR)/inferTraceBugs
|
||
9 years ago
|
INFERTRACEBUGS_BIN_RELPATH = infer/bin/inferTraceBugs
|
||
9 years ago
|
|
||
9 years ago
|
ifeq ($(BUILD_JAVA_ANALYZERS),yes)
|
||
|
JAVA_HOME=$(USER_JAVA_HOME)
|
||
9 years ago
|
endif
|
||
|
|
||
9 years ago
|
JAVA_DEPS = $(addprefix $(PYTHON_LIB_DIR)/, \
|
||
8 years ago
|
analyze.py bucklib.py config.py issues.py jwlib.py source.py utils.py) \
|
||
8 years ago
|
$(addprefix $(CAPTURE_LIB_DIR)/, util.py) \
|
||
9 years ago
|
$(INFER_BIN) \
|
||
9 years ago
|
$(INFERANALYZE_BIN) \
|
||
|
$(INFERPRINT_BIN)
|
||
|
|
||
|
CLANG_DEPS = $(addprefix $(PYTHON_LIB_DIR)/, \
|
||
|
analyze.py config.py issues.py source.py utils.py) \
|
||
|
$(addprefix $(CAPTURE_LIB_DIR)/, make.py util.py) \
|
||
9 years ago
|
$(INFER_BIN) \
|
||
9 years ago
|
$(INFERANALYZE_BIN) \
|
||
|
$(INFERCLANG_BIN) \
|
||
|
$(INFERPRINT_BIN)
|
||
|
|
||
|
JAVA_MODELS_JAR = $(LIB_DIR)/java/models.jar
|
||
8 years ago
|
|
||
|
define silent_on_success
|
||
8 years ago
|
$(1) >/dev/null 2>/dev/null || ($(1) && exit 1)
|
||
8 years ago
|
endef
|