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.
29 lines
797 B
29 lines
797 B
7 years ago
|
# Copyright (c) 2018 - 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.
|
||
|
|
||
|
ROOT_DIR = ../../..
|
||
|
include $(ROOT_DIR)/Makefile.config
|
||
|
|
||
|
INFER_BUILD_DIR = ../_build/default
|
||
|
|
||
|
default: llvm_sil
|
||
|
|
||
|
$(BIN_DIR)/llvm_sil:
|
||
|
rm -f $(INFER_BUILD_DIR)/llvm_sil.ml
|
||
|
make -C .. infer
|
||
|
cp llvm_sil.ml $(INFER_BUILD_DIR)
|
||
|
cd $(INFER_BUILD_DIR) && \
|
||
|
ocamlfind ocamlopt -package llair -linkpkg llvm_sil.ml -o $(BIN_DIR)/llvm_sil
|
||
|
rm -f $(INFER_BUILD_DIR)/llvm_sil.ml
|
||
|
|
||
|
.PHONY: llvm_sil
|
||
|
llvm_sil: $(BIN_DIR)/llvm_sil
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -f $(INFER_BUILD_DIR)/llvm_sil.ml $(BIN_DIR)/llvm_sil
|