mesa: Import a copy of the open-addressing hash table code I wrote.
[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_builddir)/src/gtest/include \
8 -I$(top_builddir)/src/mapi \
9 -I$(top_builddir)/src/mesa \
10 -I$(top_builddir)/include \
11 $(API_DEFINES) $(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
31 main_test_LDADD += \
32 $(top_builddir)/src/mapi/shared-glapi/libglapi.la
33 else
34 main_test_SOURCES += \
35 stubs.cpp
36 endif