0d3a51f39625bad60e196399f9190d883b328318
[mesa.git] / src / mesa / main / tests / Makefile.am
1 SUBDIRS = hash_table
2
3 AM_CFLAGS = \
4 $(X11_CFLAGS) \
5 $(PTHREAD_CFLAGS)
6 AM_CPPFLAGS = \
7 -I$(top_srcdir)/src/gtest/include \
8 -I$(top_srcdir)/src/mapi \
9 -I$(top_srcdir)/src/mesa \
10 -I$(top_builddir)/src/mesa \
11 -I$(top_srcdir)/include \
12 $(DEFINES) $(INCLUDE_DIRS)
13
14 TESTS = main-test
15 check_PROGRAMS = main-test
16
17 main_test_SOURCES = \
18 enum_strings.cpp
19
20 main_test_LDADD = \
21 $(top_builddir)/src/mesa/libmesa.la \
22 $(top_builddir)/src/gtest/libgtest.la \
23 $(PTHREAD_LIBS) \
24 $(DLOPEN_LIBS)
25
26 if HAVE_SHARED_GLAPI
27 AM_CPPFLAGS += -DHAVE_SHARED_GLAPI
28
29 main_test_SOURCES += \
30 dispatch_sanity.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