summaryrefslogtreecommitdiff
path: root/src/libXvMC
diff options
context:
space:
mode:
authorYounes Manton <younes.m@gmail.com>2008-07-26 16:51:09 -0400
committerYounes Manton <younes.m@gmail.com>2008-07-26 16:55:46 -0400
commita17e6c046cd990f2ed4d0dfe9ed0a59bccd9aade (patch)
treed58f27532f5d9f6cce89b8c72b14f85ecedd211a /src/libXvMC
parent9e445d3e6374c2a9b163f1262ea5a1047e596cae (diff)
g3dvl: Recursively build dependencies.
Run `make` in src/libXvMC and everything should be built for Nouveau. Run `make DRIVER=softpipe` in src/libXvMC for SoftPipe.
Diffstat (limited to 'src/libXvMC')
-rw-r--r--src/libXvMC/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libXvMC/Makefile b/src/libXvMC/Makefile
index 83fcfc523c..c154e17dc3 100644
--- a/src/libXvMC/Makefile
+++ b/src/libXvMC/Makefile
@@ -42,9 +42,23 @@ endif
all: ${TARGET}
+ifeq (${DRIVER}, softpipe)
+${TARGET}: ${OBJECTS}
+ cd ${GALLIUMDIR}/state_trackers/g3dvl; ${MAKE}
+ $(CC) ${LDFLAGS} -shared -Wl,-soname,${SONAME} -o $@ $^ ${LIBS}
+
+clean:
+ cd ${GALLIUMDIR}/state_trackers/g3dvl; ${MAKE} clean
+ rm -rf ${OBJECTS} ${TARGET}
+else
${TARGET}: ${OBJECTS}
+ cd ${GALLIUMDIR}/state_trackers/g3dvl; ${MAKE}
+ cd ${GALLIUMDIR}/winsys/g3dvl/nouveau; ${MAKE}
$(CC) ${LDFLAGS} -shared -Wl,-soname,${SONAME} -o $@ $^ ${LIBS}
clean:
+ cd ${GALLIUMDIR}/state_trackers/g3dvl; ${MAKE} clean
+ cd ${GALLIUMDIR}/winsys/g3dvl/nouveau; ${MAKE} clean
rm -rf ${OBJECTS} ${TARGET}
+endif