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.
This commit is contained in:
Younes Manton 2008-07-26 16:51:09 -04:00
parent 9e445d3e63
commit a17e6c046c
3 changed files with 17 additions and 1 deletions

View File

@ -19,5 +19,5 @@ test: test.o
$(CC) -L../lib -L${DRMDIR}/lib ${LDFLAGS} -o $@ $^ -ldriclient -lX11 -lXext -ldrm
clean:
rm -rf ${OBJECTS} ${TARGET} test test.o
rm -rf ${OBJECTS} ${TARGET} ../lib/${TARGET} test test.o

View File

@ -39,8 +39,10 @@ LIBS += -ldriclient -ldrm -lnv10 -lnv30 -lnv40 -lnv50 -ldraw -ltgsi -ltranslate
all: ${TARGET}
${TARGET}: ${OBJECTS}
cd ${DRIDIR}/src; ${MAKE}
$(CC) ${LDFLAGS} -shared -o $@ $^ ${LIBS}
clean:
cd ${DRIDIR}/src; ${MAKE} clean
rm -rf ${OBJECTS} ${TARGET}

View File

@ -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