xref: /freebsd/lib/googletest/gtest/Makefile (revision e32fecd0c2c3ee37c47ee100f169e7eb0282a873)
1# $FreeBSD$
2
3.include <bsd.init.mk>
4
5.PATH:	${GOOGLETEST_SRCROOT}/include ${GOOGLETEST_SRCROOT}/src
6
7LIB_CXX=	gtest
8SHLIB_MAJOR=	0
9PRIVATELIB=	true
10
11CXXFLAGS+=	-I${GOOGLETEST_SRCROOT}/include
12CXXFLAGS+=	-I${GOOGLETEST_SRCROOT}
13
14INCSGROUPS=	MAIN_INCS INTERNAL_INCS INTERNAL_CUSTOM_INCS
15
16MAIN_INCSDIR=	${INCLUDEDIR}${PRIVATELIB:D/private/${LIB}}
17MAIN_INCS+=	gtest/gtest-death-test.h
18MAIN_INCS+=	gtest/gtest-message.h
19MAIN_INCS+=	gtest/gtest-param-test.h
20MAIN_INCS+=	gtest/gtest-printers.h
21MAIN_INCS+=	gtest/gtest-spi.h
22MAIN_INCS+=	gtest/gtest-test-part.h
23MAIN_INCS+=	gtest/gtest-typed-test.h
24MAIN_INCS+=	gtest/gtest.h
25MAIN_INCS+=	gtest/gtest_pred_impl.h
26MAIN_INCS+=	gtest/gtest_prod.h
27
28INTERNAL_INCSDIR=	${MAIN_INCSDIR}/internal
29INTERNAL_INCS+=	gtest/internal/gtest-death-test-internal.h
30INTERNAL_INCS+=	gtest/internal/gtest-filepath.h
31INTERNAL_INCS+=	gtest/internal/gtest-internal.h
32INTERNAL_INCS+=	gtest/internal/gtest-linked_ptr.h
33INTERNAL_INCS+=	gtest/internal/gtest-param-util-generated.h
34INTERNAL_INCS+=	gtest/internal/gtest-param-util.h
35INTERNAL_INCS+=	gtest/internal/gtest-port-arch.h
36INTERNAL_INCS+=	gtest/internal/gtest-port.h
37INTERNAL_INCS+=	gtest/internal/gtest-string.h
38INTERNAL_INCS+=	gtest/internal/gtest-tuple.h
39INTERNAL_INCS+=	gtest/internal/gtest-type-util.h
40
41INTERNAL_CUSTOM_INCSDIR= ${INTERNAL_INCSDIR}/custom
42INTERNAL_CUSTOM_INCS+=	gtest/internal/custom/gtest-port.h
43INTERNAL_CUSTOM_INCS+=	gtest/internal/custom/gtest-printers.h
44INTERNAL_CUSTOM_INCS+=	gtest/internal/custom/gtest.h
45
46SRCS+=		gtest-all.cc
47
48LIBADD+=	pthread regex
49
50.include <bsd.lib.mk>
51