Change 'make install' to install tblgen, for better support of out-of-tree targets,
[oota-llvm.git] / utils / unittest / googletest / Makefile
1 ##===- utils/unittest/googletest/Makefile ------------------*- Makefile -*-===##
2 #
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
7 #
8 ##===----------------------------------------------------------------------===##
9
10 LEVEL := ../../..
11 include $(LEVEL)/Makefile.config
12 NO_MISSING_FIELD_INITIALIZERS := $(shell $(CXX) -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers)
13 NO_VARIADIC_MACROS := $(shell $(CXX) -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros)
14
15
16 LIBRARYNAME = GoogleTest
17 BUILD_ARCHIVE = 1
18 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include/
19 CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VARIADIC_MACROS)
20
21 ifeq ($(OS),MingW)
22   CPP.Flags += -DGTEST_OS_WINDOWS=1
23 endif
24
25 NO_INSTALL = 1
26
27 include $(LEVEL)/Makefile.common