cell: remove unneeded blend/depth_stencil subclasses
[mesa.git] / src / gallium / drivers / cell / ppu / Makefile
1 # Gallium3D Cell driver: PPU code
2
3 # This makefile builds the libcell.a library which gets pulled into
4 # the main libGL.so library
5
6
7 TOP = ../../../../..
8 include $(TOP)/configs/current
9
10
11 # This is the "top-level" cell PPU driver code, will get pulled into libGL.so
12 # by the winsys Makefile.
13 CELL_LIB = ../libcell.a
14
15
16 # This is the SPU code. We'd like to be able to put this into the libcell.a
17 # archive with the PPU code, but nesting .a libs doesn't seem to work.
18 # So, it's pulled into libGL.so in gallium/winsys/xlib/Makefile
19 SPU_CODE_MODULE = ../spu/g3d_spu.a
20
21
22 SOURCES = \
23 cell_batch.c \
24 cell_clear.c \
25 cell_context.c \
26 cell_draw_arrays.c \
27 cell_flush.c \
28 cell_gen_fragment.c \
29 cell_gen_fp.c \
30 cell_state_derived.c \
31 cell_state_emit.c \
32 cell_state_shader.c \
33 cell_pipe_state.c \
34 cell_screen.c \
35 cell_state_vertex.c \
36 cell_spu.c \
37 cell_surface.c \
38 cell_texture.c \
39 cell_vbuf.c \
40 cell_vertex_fetch.c \
41 cell_vertex_shader.c \
42 cell_winsys.c
43
44
45 OBJECTS = $(SOURCES:.c=.o) \
46
47 INCLUDE_DIRS = \
48 -I$(TOP)/src/mesa \
49 -I$(TOP)/src/gallium/include \
50 -I$(TOP)/src/gallium/auxiliary \
51 -I$(TOP)/src/gallium/drivers
52
53 .c.o:
54 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
55
56
57
58 default: $(CELL_LIB)
59
60
61 $(CELL_LIB): $(OBJECTS) $(SPU_CODE_MODULE)
62 # ar -ru $(CELL_LIB) $(OBJECTS) $(SPU_CODE_MODULE) # doesn't work
63 ar -ru $(CELL_LIB) $(OBJECTS)
64
65 #$(PROG): $(PPU_OBJECTS)
66 # $(CC) -o $(PROG) $(PPU_OBJECTS) $(SPU_CODE_MODULE) $(PPU_LFLAGS)
67
68
69
70 clean:
71 rm -f *.o *~ $(CELL_LIB)
72
73
74
75 depend: $(SOURCES)
76 rm -f depend
77 touch depend
78 $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(SOURCES) 2> /dev/null
79
80 include depend
81
82
83