1 TARGET
= libXvMCg3dvl.so
2 SONAME
= libXvMCg3dvl.so
.1
3 GALLIUMDIR
= ..
/gallium
5 OBJECTS
= block.o surface.o context.o subpicture.o attributes.o
7 ifeq (${DRIVER}, softpipe
)
8 OBJECTS
+= ${GALLIUMDIR}/winsys
/g3dvl
/xsp_winsys.o
11 CFLAGS
+= -g
-fPIC
-Wall
-Werror
=implicit-function-declaration \
12 -I
${GALLIUMDIR}/state_trackers
/g3dvl \
13 -I
${GALLIUMDIR}/winsys
/g3dvl \
14 -I
${GALLIUMDIR}/include \
15 -I
${GALLIUMDIR}/auxiliary \
16 -I
${GALLIUMDIR}/drivers
18 ifeq (${DRIVER}, softpipe
)
19 LDFLAGS
+= -L
${GALLIUMDIR}/state_trackers
/g3dvl \
20 -L
${GALLIUMDIR}/drivers
/softpipe \
21 -L
${GALLIUMDIR}/auxiliary
/tgsi \
22 -L
${GALLIUMDIR}/auxiliary
/draw \
23 -L
${GALLIUMDIR}/auxiliary
/translate \
24 -L
${GALLIUMDIR}/auxiliary
/cso_cache \
25 -L
${GALLIUMDIR}/auxiliary
/util \
26 -L
${GALLIUMDIR}/auxiliary
/rtasm
28 LDFLAGS
+= -L
${GALLIUMDIR}/state_trackers
/g3dvl \
29 -L
${GALLIUMDIR}/winsys
/g3dvl
/nouveau \
30 -L
${GALLIUMDIR}/auxiliary
/util
33 ifeq (${DRIVER}, softpipe
)
34 LIBS
+= -lg3dvl
-lsoftpipe
-ldraw
-ltgsi
-ltranslate
-lrtasm
-lcso_cache
-lutil
-lm
36 LIBS
+= -lg3dvl
-lnouveau_dri
-lutil
39 #############################################
41 ifeq (${DRIVER}, softpipe
)
42 .PHONY
= all clean g3dvl
44 .PHONY
= all clean g3dvl nouveau_winsys
49 ifeq (${DRIVER}, softpipe
)
50 ${TARGET}: ${OBJECTS} g3dvl
51 $(CC
) ${LDFLAGS} -shared
-Wl
,-soname
,${SONAME} -o
$@
${OBJECTS} ${LIBS}
54 cd
${GALLIUMDIR}/state_trackers
/g3dvl
; ${MAKE}
57 cd
${GALLIUMDIR}/state_trackers
/g3dvl
; ${MAKE} clean
58 rm -rf
${OBJECTS} ${TARGET}
60 ${TARGET}: ${OBJECTS} g3dvl nouveau_winsys
61 $(CC
) ${LDFLAGS} -shared
-Wl
,-soname
,${SONAME} -o
$@
${OBJECTS} ${LIBS}
64 cd
${GALLIUMDIR}/state_trackers
/g3dvl
; ${MAKE}
67 cd
${GALLIUMDIR}/winsys
/g3dvl
/nouveau
; ${MAKE}
70 cd
${GALLIUMDIR}/state_trackers
/g3dvl
; ${MAKE} clean
71 cd
${GALLIUMDIR}/winsys
/g3dvl
/nouveau
; ${MAKE} clean
72 rm -rf
${OBJECTS} ${TARGET}