nv50: use flush_notify to reduce number of relocs
[mesa.git] / src / xvmc / Makefile
1 TARGET = libXvMCg3dvl.so
2 SONAME = libXvMCg3dvl.so.1
3 GALLIUMDIR = ../gallium
4
5 OBJECTS = block.o surface.o context.o subpicture.o attributes.o
6
7 ifeq (${DRIVER}, softpipe)
8 OBJECTS += ${GALLIUMDIR}/winsys/g3dvl/xsp_winsys.o
9 endif
10
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
17
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
27 else
28 LDFLAGS += -L${GALLIUMDIR}/state_trackers/g3dvl \
29 -L${GALLIUMDIR}/winsys/g3dvl/nouveau \
30 -L${GALLIUMDIR}/auxiliary/util
31 endif
32
33 ifeq (${DRIVER}, softpipe)
34 LIBS += -lg3dvl -lsoftpipe -ldraw -ltgsi -ltranslate -lrtasm -lcso_cache -lutil -lm
35 else
36 LIBS += -lg3dvl -lnouveau_dri -lutil
37 endif
38
39 #############################################
40
41 ifeq (${DRIVER}, softpipe)
42 .PHONY = all clean g3dvl
43 else
44 .PHONY = all clean g3dvl nouveau_winsys
45 endif
46
47 all: ${TARGET}
48
49 ifeq (${DRIVER}, softpipe)
50 ${TARGET}: ${OBJECTS} g3dvl
51 $(CC) ${LDFLAGS} -shared -Wl,-soname,${SONAME} -o $@ ${OBJECTS} ${LIBS}
52
53 g3dvl:
54 cd ${GALLIUMDIR}/state_trackers/g3dvl; ${MAKE}
55
56 clean:
57 cd ${GALLIUMDIR}/state_trackers/g3dvl; ${MAKE} clean
58 rm -rf ${OBJECTS} ${TARGET}
59 else
60 ${TARGET}: ${OBJECTS} g3dvl nouveau_winsys
61 $(CC) ${LDFLAGS} -shared -Wl,-soname,${SONAME} -o $@ ${OBJECTS} ${LIBS}
62
63 g3dvl:
64 cd ${GALLIUMDIR}/state_trackers/g3dvl; ${MAKE}
65
66 nouveau_winsys:
67 cd ${GALLIUMDIR}/winsys/g3dvl/nouveau; ${MAKE}
68
69 clean:
70 cd ${GALLIUMDIR}/state_trackers/g3dvl; ${MAKE} clean
71 cd ${GALLIUMDIR}/winsys/g3dvl/nouveau; ${MAKE} clean
72 rm -rf ${OBJECTS} ${TARGET}
73 endif