forked from facebookarchive/facebook-clang-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (35 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright (c) 2014, 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.
.PHONY: all test clean xcode
LEVEL=.
include Makefile.common
ifneq "$(CLANG_PLUGINS_EXTRA_REPO)" ""
-include $(CLANG_PLUGINS_EXTRA_REPO)/Makefile.include
CMAKE_SETTINGS+=-D CLANG_PLUGINS_EXTRA_REPO="$(CLANG_PLUGINS_EXTRA_REPO)"
endif
CMAKE_SETTINGS+=-D CMAKE_C_COMPILER="$(CC)"
CMAKE_SETTINGS+=-D CMAKE_CXX_COMPILER="$(CXX)"
CMAKE_SETTINGS+=-D CMAKE_CXX_FLAGS="$(CFLAGS)"
CMAKE_SETTINGS+=-D CMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)"
all:
make -C analyzer all
make -C libtooling/atdlib all
make -C libtooling all
test: all
make -C analyzer test
make -C libtooling/atdlib test
make -C libtooling test
clean:
make -C analyzer clean
make -C libtooling/atdlib clean
make -C libtooling clean
rm -rf xcode *~
xcode: CMakeLists.txt libtooling/CMakeLists.txt analyzer/CMakeLists.txt
mkdir -p xcode && cd xcode && cmake -G Xcode $(CMAKE_SETTINGS) ..
# Local Variables:
# mode: makefile
# End: