summaryrefslogtreecommitdiffstats
path: root/src/gallium/Makefile.template
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/Makefile.template')
-rw-r--r--src/gallium/Makefile.template6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/Makefile.template b/src/gallium/Makefile.template
index 1ba0724949a..bff399ec64f 100644
--- a/src/gallium/Makefile.template
+++ b/src/gallium/Makefile.template
@@ -23,6 +23,10 @@ INCLUDES = \
-I$(TOP)/src/gallium/drivers \
$(LIBRARY_INCLUDES)
+ifeq ($(MESA_LLVM),1)
+LIBRARY_DEFINES += $(LLVM_CFLAGS)
+endif
+
##### TARGETS #####
@@ -45,7 +49,7 @@ tags:
# Remove .o and backup files
clean:
- rm -f $(OBJECTS) $(GENERATED_SOURCES) $(PROGS) lib$(LIBNAME).a depend depend.bak
+ rm -f $(OBJECTS) $(GENERATED_SOURCES) $(PROGS) lib$(LIBNAME).a depend depend.bak $(CLEAN_EXTRA)
# Dummy target
install: