1 ##===- utils/unittest/googletest/Makefile ------------------*- Makefile -*-===##
3 # The LLVM Compiler Infrastructure
5 # This file is distributed under the University of Illinois Open Source
6 # License. See LICENSE.TXT for details.
8 ##===----------------------------------------------------------------------===##
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
)
16 LIBRARYNAME
= GoogleTest
18 CPP.Flags
+= -I
$(LLVM_SRC_ROOT
)/utils
/unittest
/googletest
/include/
19 CPP.Flags
+= $(NO_MISSING_FIELD_INITIALIZERS
) $(NO_VARIADIC_MACROS
)
22 CPP.Flags
+= -DGTEST_OS_WINDOWS
=1
27 include $(LEVEL
)/Makefile.common