af9d0d4efd44882f7df471c9a10a44919053fb8e
[mesa.git] / src / mesa / drivers / dri / r300 / Makefile
1 # src/mesa/drivers/dri/r300/Makefile
2
3
4 TOP = ../../../../..
5 include $(TOP)/configs/current
6
7 LIBNAME = r300_dri.so
8 DEFINES += -DCOMPILE_R300 -DGLX_DIRECT_RENDERING -DR200_MERGED=0
9
10 MINIGLX_SOURCES = server/radeon_dri.c
11
12 ifeq ($(USING_EGL), 1)
13 EGL_SOURCES = server/radeon_egl.c
14 endif
15
16 COMMON_SOURCES = \
17 ../../common/driverfuncs.c \
18 ../common/mm.c \
19 ../common/utils.c \
20 ../common/texmem.c \
21 ../common/vblank.c \
22 ../common/xmlconfig.c \
23 ../common/dri_util.c
24
25 DRIVER_SOURCES = \
26 radeon_screen.c \
27 radeon_context.c \
28 radeon_ioctl.c \
29 radeon_lock.c \
30 radeon_span.c \
31 radeon_state.c \
32 radeon_mm.c \
33 radeon_vtxfmt_a.c \
34 \
35 r300_context.c \
36 r300_ioctl.c \
37 r300_cmdbuf.c \
38 r300_state.c \
39 r300_render.c \
40 r300_texmem.c \
41 r300_tex.c \
42 r300_texstate.c \
43 r300_texprog.c \
44 r300_vertexprog.c \
45 r300_fragprog.c \
46 r300_shader.c \
47 r300_maos.c \
48 $(EGL_SOURCES)
49
50 # \
51 # r200_context.c \
52 # r200_ioctl.c \
53 # r200_state.c \
54 # r200_state_init.c \
55 # r200_cmdbuf.c \
56 # r200_pixel.c \
57 # r200_tex.c \
58 # r200_texmem.c \
59 # r200_texstate.c \
60 # r200_swtcl.c \
61 # r200_maos.c \
62 # r200_sanity.c \
63 # r200_vtxfmt.c \
64 # r200_vtxfmt_c.c \
65 # r200_vtxfmt_sse.c \
66 # r200_vtxfmt_x86.c
67
68
69 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
70
71 X86_SOURCES =
72 #r200_vtxtmp_x86.S
73
74 DEFINES += -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300
75
76 SYMLINKS = \
77 server/radeon_dri.c \
78 server/radeon_dri.h \
79 server/radeon.h \
80 server/radeon_macros.h \
81 server/radeon_reg.h \
82 server/radeon_egl.c
83
84 COMMON_SYMLINKS = \
85 radeon_chipset.h \
86 radeon_screen.c \
87 radeon_screen.h
88
89 ##### TARGETS #####
90
91
92 include ../Makefile.template
93
94 $(SYMLINKS):
95 mkdir -p server
96 for i in $(SYMLINKS) ; do rm -f $$i && test -f ../radeon/$$i && ln -s ../../radeon/$$i $$i ; done
97
98 $(COMMON_SYMLINKS):
99 @[ -e $@ ] || ln -sf ../radeon/$@ ./
100
101 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)
102