summaryrefslogtreecommitdiff
path: root/src/glsl/Makefile
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-25 12:23:20 -0700
committerEric Anholt <eric@anholt.net>2010-06-25 12:23:20 -0700
commit2a3d46dd46779136e14c3e939a5b761c58576862 (patch)
tree8b360a81c0d2955c2813a060a7a86e0867f6d2d2 /src/glsl/Makefile
parent0a1b54df7ac118722bb627c61cb322cb4e248ace (diff)
glsl2: Fix dependencies. (at least partially)
Diffstat (limited to 'src/glsl/Makefile')
-rw-r--r--src/glsl/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/glsl/Makefile b/src/glsl/Makefile
index 91e4d2e05d..f4e32b9185 100644
--- a/src/glsl/Makefile
+++ b/src/glsl/Makefile
@@ -77,6 +77,11 @@ INCLUDES = \
-I../mesa/shader \
$(LIBRARY_INCLUDES)
+ALL_SOURCES = \
+ $(C_SOURCES) \
+ $(CXX_SOURCES) \
+ $(GLSL2_CXX_SOURCES) \
+ $(GLSL2_C_SOURCES)
##### TARGETS #####
@@ -85,10 +90,10 @@ default: depend lib$(LIBNAME).a $(APPS)
lib$(LIBNAME).a: $(OBJECTS) Makefile $(TOP)/src/glsl/Makefile.template
$(MKLIB) -cplusplus -o $(LIBNAME) -static $(OBJECTS)
-depend: $(CXX_SOURCES) $(GLSL2_CXX_SOURCES) $(GLSL2_C_SOURCES)
+depend: $(ALL_SOURCES) Makefile
rm -f depend
touch depend
- $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $@ 2> /dev/null
+ $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(ALL_SOURCES) 2> /dev/null
# Remove .o and backup files
clean: