radeon: fix library name for consistency
[mesa.git] / src / mesa / drivers / dri / r300 / Makefile
1 # src/mesa/drivers/dri/r300/Makefile
2
3 TOP = ../../../../..
4 include $(TOP)/configs/current
5
6 LIBNAME = r300_dri.so
7
8 MINIGLX_SOURCES = server/radeon_dri.c
9
10 ifeq ($(USING_EGL), 1)
11 EGL_SOURCES = server/radeon_egl.c
12 endif
13
14 COMMON_SOURCES = \
15 ../../common/driverfuncs.c \
16 ../common/mm.c \
17 ../common/utils.c \
18 ../common/texmem.c \
19 ../common/vblank.c \
20 ../common/xmlconfig.c \
21 ../common/dri_util.c
22
23 DRIVER_SOURCES = \
24 radeon_bo_legacy.c \
25 radeon_cs_legacy.c \
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 r300_context.c \
33 r300_ioctl.c \
34 r300_cmdbuf.c \
35 r300_state.c \
36 r300_render.c \
37 r300_texmem.c \
38 r300_tex.c \
39 r300_texstate.c \
40 r300_mipmap_tree.c \
41 radeon_program.c \
42 radeon_program_alu.c \
43 radeon_program_pair.c \
44 radeon_nqssadce.c \
45 r300_vertprog.c \
46 r300_fragprog.c \
47 r300_fragprog_swizzle.c \
48 r300_fragprog_emit.c \
49 r500_fragprog.c \
50 r500_fragprog_emit.c \
51 r300_shader.c \
52 r300_emit.c \
53 r300_swtcl.c \
54 $(EGL_SOURCES)
55
56 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
57
58 DRIVER_DEFINES = -DCOMPILE_R300 -DR200_MERGED=0 \
59 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300 \
60 # -DRADEON_BO_TRACK \
61 -Wall
62
63 SYMLINKS = \
64 server/radeon_dri.c \
65 server/radeon_dri.h \
66 server/radeon.h \
67 server/radeon_macros.h \
68 server/radeon_reg.h \
69 server/radeon_egl.c
70
71 COMMON_SYMLINKS = \
72 radeon_chipset.h \
73 radeon_screen.c \
74 radeon_screen.h \
75 radeon_span.h \
76 radeon_buffer.h \
77 radeon_bo_legacy.c \
78 radeon_cs_legacy.c \
79 radeon_bo_legacy.h \
80 radeon_cs_legacy.h
81
82 DRI_LIB_DEPS += -ldrm_radeon
83
84 ##### TARGETS #####
85
86 include ../Makefile.template
87
88 server:
89 mkdir -p server
90
91 $(SYMLINKS): server
92 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
93
94 $(COMMON_SYMLINKS):
95 @[ -e $@ ] || ln -sf ../radeon/$@ ./
96
97 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)