Merge branch 'llvm-cliptest-viewport'
[mesa.git] / src / gallium / drivers / llvmpipe / Makefile
1 TOP = ../../../..
2 include $(TOP)/configs/current
3
4 LIBNAME = llvmpipe
5
6 DEFINES += -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS
7
8 C_SOURCES = \
9 lp_bld_alpha.c \
10 lp_bld_blend_aos.c \
11 lp_bld_blend_logicop.c \
12 lp_bld_blend_soa.c \
13 lp_bld_depth.c \
14 lp_bld_interp.c \
15 lp_clear.c \
16 lp_context.c \
17 lp_draw_arrays.c \
18 lp_fence.c \
19 lp_flush.c \
20 lp_jit.c \
21 lp_memory.c \
22 lp_perf.c \
23 lp_query.c \
24 lp_rast.c \
25 lp_rast_debug.c \
26 lp_rast_tri.c \
27 lp_scene.c \
28 lp_scene_queue.c \
29 lp_screen.c \
30 lp_setup.c \
31 lp_setup_line.c \
32 lp_setup_point.c \
33 lp_setup_tri.c \
34 lp_setup_vbuf.c \
35 lp_state_blend.c \
36 lp_state_clip.c \
37 lp_state_derived.c \
38 lp_state_fs.c \
39 lp_state_setup.c \
40 lp_state_gs.c \
41 lp_state_rasterizer.c \
42 lp_state_sampler.c \
43 lp_state_so.c \
44 lp_state_surface.c \
45 lp_state_vertex.c \
46 lp_state_vs.c \
47 lp_surface.c \
48 lp_tex_sample.c \
49 lp_texture.c \
50 lp_tile_image.c \
51 lp_tile_soa.c
52
53 CPP_SOURCES = \
54
55 PROGS := lp_test_format \
56 lp_test_blend \
57 lp_test_conv \
58 lp_test_printf \
59 lp_test_round \
60 lp_test_sincos
61
62 # Need this for the lp_test_*.o files
63 CLEAN_EXTRA = *.o
64
65 include ../../Makefile.template
66
67 lp_test_sincos.o : sse_mathfun.h
68
69 PROGS_DEPS := ../../auxiliary/libgallium.a
70
71 lp_tile_soa.c: lp_tile_soa.py ../../auxiliary/util/u_format_parse.py ../../auxiliary/util/u_format_pack.py ../../auxiliary/util/u_format.csv
72 python lp_tile_soa.py ../../auxiliary/util/u_format.csv > $@
73
74 LDFLAGS += $(LLVM_LDFLAGS)
75 LIBS += -L../../auxiliary/ -lgallium libllvmpipe.a $(LLVM_LIBS) $(GL_LIB_DEPS)
76 LD=g++
77
78 $(PROGS): lp_test_main.o libllvmpipe.a
79