summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/spu/Makefile
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-12-05 14:57:19 -0700
committerBen Skeggs <skeggsb@gmail.com>2007-12-09 12:05:25 +1100
commit6f44a21348cb70601fc138150bb603fa527d6b63 (patch)
treed784668707a70f1ca5168c79ea00ced5fb480ee5 /src/mesa/pipe/cell/spu/Makefile
parent5cb718673016159d06e08a832db594b99c20ad5a (diff)
Add dependency checking for Cell driver sources.
Diffstat (limited to 'src/mesa/pipe/cell/spu/Makefile')
-rw-r--r--src/mesa/pipe/cell/spu/Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/mesa/pipe/cell/spu/Makefile b/src/mesa/pipe/cell/spu/Makefile
index 00f931e1c1..700a6c61cd 100644
--- a/src/mesa/pipe/cell/spu/Makefile
+++ b/src/mesa/pipe/cell/spu/Makefile
@@ -1,4 +1,4 @@
-# Gallium3D Cell driver: PPU code
+# Gallium3D Cell driver: SPU code
# This makefile builds the g3d_spu.a file that's linked into the
# PPU code/library.
@@ -15,7 +15,13 @@ PROG_SPU_A = $(PROG)_spu.a
PROG_SPU_EMBED_O = $(PROG)_spu-embed.o
-SPU_OBJECTS = main.o tri.o
+SOURCES = \
+ main.c \
+ tri.c
+
+SPU_OBJECTS = $(SOURCES:.c=.o) \
+
+INCLUDE_DIRS = -I$(TOP)/src/mesa
# The .a file will be linked into the main/PPU executable
@@ -40,3 +46,13 @@ tri.o: tri.c
clean:
rm -f *.o *.a *.d $(PROG_SPU)
+
+
+
+depend: $(SOURCES)
+ rm -f depend
+ touch depend
+ $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(SOURCES) 2> /dev/null
+
+include depend
+