aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/trivial/Makefile
diff options
context:
space:
mode:
authorAlon Levy <[email protected]>2011-06-22 14:31:11 +0200
committerBrian Paul <[email protected]>2011-06-24 08:59:42 -0600
commitc9760c5c89ecbd71b373e3b367b5e6d3a287e010 (patch)
treecee5b76d0f3d34e4f85f8dce9520a8278fce724c /src/gallium/tests/trivial/Makefile
parentfebf5e4147612641fc23f202d5813958bee3af13 (diff)
gallium/tests/trivial: make it build
Signed-off-by: Alon Levy <[email protected]> Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/tests/trivial/Makefile')
-rw-r--r--src/gallium/tests/trivial/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/tests/trivial/Makefile b/src/gallium/tests/trivial/Makefile
index 2ed63419c7e..e82000070de 100644
--- a/src/gallium/tests/trivial/Makefile
+++ b/src/gallium/tests/trivial/Makefile
@@ -11,7 +11,12 @@ INCLUDES = \
-I$(TOP)/src/gallium/winsys \
$(PROG_INCLUDES)
-LINKS = \
+ifeq ($(MESA_LLVM),1)
+LINKS = $(TOP)/src/gallium/drivers/llvmpipe/libllvmpipe.a
+LDFLAGS += $(LLVM_LDFLAGS)
+endif
+
+LINKS += \
$(TOP)/src/gallium/drivers/rbug/librbug.a \
$(TOP)/src/gallium/drivers/trace/libtrace.a \
$(TOP)/src/gallium/drivers/galahad/libgalahad.a \
@@ -46,4 +51,4 @@ $(OBJECTS): %.o: %.c
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $(PROG_DEFINES) $< -o $@
$(PROGS): %: %.o $(LINKS)
- $(CC) $(LDFLAGS) $< $(LINKS) -lm -lpthread -ldl -o $@
+ $(CC) $(LDFLAGS) $< $(LINKS) $(LLVM_LIBS) -lm -lpthread -ldl -o $@