summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/tests/Makefile.am')
-rw-r--r--src/mesa/main/tests/Makefile.am14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mesa/main/tests/Makefile.am b/src/mesa/main/tests/Makefile.am
index 74e02a8ccca..3d1a5d8923f 100644
--- a/src/mesa/main/tests/Makefile.am
+++ b/src/mesa/main/tests/Makefile.am
@@ -3,7 +3,7 @@ AM_CPPFLAGS = \
-I$(top_builddir)/src/mapi \
-I$(top_builddir)/src/mesa \
-I$(top_builddir)/include \
- $(X11_CFLAGS)
+ $(API_DEFINES) $(DEFINES) $(INCLUDE_DIRS)
TESTS = main-test
check_PROGRAMS = main-test
@@ -14,4 +14,14 @@ main_test_SOURCES = \
main_test_LDADD = \
$(top_builddir)/src/mesa/libmesa.la \
$(top_builddir)/src/gtest/libgtest.la \
- -lpthread
+ -lpthread -ldl
+
+if HAVE_SHARED_GLAPI
+AM_CPPFLAGS += -DHAVE_SHARED_GLAPI
+
+main_test_LDADD += \
+ $(top_builddir)/src/mapi/shared-glapi/libglapi.la
+else
+main_test_SOURCES += \
+ stubs.cpp
+endif