summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/g3dvl/nouveau/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/g3dvl/nouveau/Makefile')
-rw-r--r--src/gallium/winsys/g3dvl/nouveau/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/winsys/g3dvl/nouveau/Makefile b/src/gallium/winsys/g3dvl/nouveau/Makefile
index 7fa29d2f5fb..5d11bde322b 100644
--- a/src/gallium/winsys/g3dvl/nouveau/Makefile
+++ b/src/gallium/winsys/g3dvl/nouveau/Makefile
@@ -34,15 +34,16 @@ LIBS += -ldriclient -ldrm -lnv10 -lnv30 -lnv40 -lnv50 -ldraw -ltgsi -ltranslate
#############################################
-.PHONY = all clean
+.PHONY = all clean libdriclient
all: ${TARGET}
-${TARGET}: ${OBJECTS}
+${TARGET}: ${OBJECTS} libdriclient
+ $(CC) ${LDFLAGS} -shared -o $@ ${OBJECTS} ${LIBS}
+
+libdriclient:
cd ${DRIDIR}/src; ${MAKE}
- $(CC) ${LDFLAGS} -shared -o $@ $^ ${LIBS}
clean:
cd ${DRIDIR}/src; ${MAKE} clean
rm -rf ${OBJECTS} ${TARGET}
-