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