r300/compiler: Compile the compiler seperately into an archive
[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 CFLAGS += $(RADEON_CFLAGS)
7
8 LIBNAME = r300_dri.so
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 ifeq ($(RADEON_LDFLAGS),)
17 CS_SOURCES = radeon_cs_space_drm.c
18 endif
19
20 COMMON_SOURCES = \
21 ../../common/driverfuncs.c \
22 ../common/mm.c \
23 ../common/utils.c \
24 ../common/texmem.c \
25 ../common/vblank.c \
26 ../common/xmlconfig.c \
27 ../common/dri_util.c
28
29 RADEON_COMMON_SOURCES = \
30 radeon_texture.c \
31 radeon_common_context.c \
32 radeon_common.c \
33 radeon_dma.c \
34 radeon_lock.c \
35 radeon_bo_legacy.c \
36 radeon_cs_legacy.c \
37 radeon_mipmap_tree.c \
38 radeon_span.c \
39 radeon_fbo.c
40
41 DRIVER_SOURCES = \
42 radeon_screen.c \
43 r300_context.c \
44 r300_draw.c \
45 r300_ioctl.c \
46 r300_cmdbuf.c \
47 r300_state.c \
48 r300_render.c \
49 r300_tex.c \
50 r300_texstate.c \
51 r300_vertprog.c \
52 r300_fragprog_common.c \
53 r300_shader.c \
54 r300_emit.c \
55 r300_swtcl.c \
56 $(RADEON_COMMON_SOURCES) \
57 $(EGL_SOURCES) \
58 $(CS_SOURCES)
59
60 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
61
62 DRIVER_DEFINES = -DCOMPILE_R300 -DR200_MERGED=0 \
63 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300 \
64 # -DRADEON_BO_TRACK \
65 -Wall
66
67 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
68
69 PIPE_DRIVERS = compiler/libr300compiler.a
70
71 ##### TARGETS #####
72
73 include ../Makefile.template
74
75 symlinks:
76
77 # Mark the archive phony so that we always check for recompilation
78 .PHONY : compiler/libr300compiler.a
79
80 compiler/libr300compiler.a:
81 cd compiler && $(MAKE)