1AM_CFLAGS = \
2	$(PTHREAD_CFLAGS)
3AM_CPPFLAGS = \
4	-I$(top_srcdir)/src/gtest/include \
5	-I$(top_srcdir)/src \
6	-I$(top_srcdir)/src/mapi \
7	-I$(top_builddir)/src/mesa \
8	-I$(top_srcdir)/src/mesa \
9	-I$(top_srcdir)/include \
10	$(DEFINES) $(INCLUDE_DIRS)
11
12TESTS = main-test
13check_PROGRAMS = main-test
14
15main_test_SOURCES =			\
16	enum_strings.cpp
17
18main_test_LDADD = \
19	$(top_builddir)/src/mesa/libmesa.la \
20	$(top_builddir)/src/gtest/libgtest.la \
21	$(PTHREAD_LIBS) \
22	$(DLOPEN_LIBS) \
23	$(CLOCK_LIB)
24
25if HAVE_SHARED_GLAPI
26main_test_SOURCES +=			\
27	dispatch_sanity.cpp		\
28	mesa_formats.cpp			\
29	mesa_extensions.cpp			\
30	program_state_string.cpp
31
32main_test_LDADD += \
33	$(top_builddir)/src/mapi/shared-glapi/libglapi.la
34else
35main_test_SOURCES +=			\
36	stubs.cpp
37endif
38
39EXTRA_DIST = meson.build
40