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.
49 lines
1.1 KiB
49 lines
1.1 KiB
# 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.
|
|
|
|
ROOT_DIR = ../..
|
|
include $(ROOT_DIR)/Makefile.config
|
|
|
|
C_MODELS_DIR = c
|
|
CPP_MODELS_DIR = cpp
|
|
JAVA_MODELS_DIR = java
|
|
OBJC_MODELS_DIR = objc
|
|
|
|
CLANG_SUBDIRS = $(C_MODELS_DIR) $(CPP_MODELS_DIR)
|
|
ifneq (no, $(XCODE_SELECT))
|
|
CLANG_SUBDIRS += $(OBJC_MODELS_DIR)
|
|
endif
|
|
|
|
all:
|
|
ifeq ($(BUILD_C_ANALYZERS),yes)
|
|
all: clang
|
|
endif
|
|
ifeq ($(BUILD_JAVA_ANALYZERS),yes)
|
|
all: java
|
|
endif
|
|
|
|
.PHONY: java clang clean clean_specs $(CLANG_SUBDIRS)
|
|
|
|
clean_specs:
|
|
$(REMOVE) $(SPECS_LIB_DIR)/*.specs
|
|
|
|
$(CLANG_SUBDIRS):
|
|
$(QUIET)$(MAKE) -C $@ install
|
|
|
|
clang: $(CLANG_SUBDIRS)
|
|
|
|
java:
|
|
$(QUIET)$(MAKE) -C $@ install
|
|
|
|
clean: clean_specs
|
|
$(QUIET)$(MAKE) -C $(JAVA_MODELS_DIR) clean
|
|
$(QUIET)$(MAKE) -C $(C_MODELS_DIR) clean
|
|
$(QUIET)$(MAKE) -C $(CPP_MODELS_DIR) clean
|
|
ifneq (no, $(XCODE_SELECT))
|
|
$(QUIET)$(MAKE) -C $(OBJC_MODELS_DIR) clean
|
|
endif
|