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