summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/cell/ppu/Makefile
blob: 0389a9554cf7744b3eff52950aae1a665452423c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Gallium3D Cell driver: PPU code

# This makefile builds the libcell.a library which gets pulled into
# the main libGL.so library


TOP = ../../../../..
include $(TOP)/configs/linux-cell


# This is the "top-level" cell PPU driver code, will get pulled into libGL.so
# by the winsys Makefile.
CELL_LIB = ../libcell.a


# This is the SPU code.  We'd like to be able to put this into the libcell.a
# archive with the PPU code, but nesting .a libs doesn't seem to work.
# So, it's pulled into libGL.so in gallium/winsys/xlib/Makefile
SPU_CODE_MODULE = ../spu/g3d_spu.a


SOURCES = \
	cell_batch.c \
	cell_clear.c \
	cell_context.c \
	cell_draw_arrays.c \
	cell_flush.c \
	cell_state_derived.c \
	cell_state_emit.c \
	cell_state_per_fragment.c \
	cell_state_shader.c \
	cell_pipe_state.c \
	cell_screen.c \
	cell_state_vertex.c \
	cell_spu.c \
	cell_surface.c \
	cell_texture.c \
	cell_vbuf.c \
	cell_vertex_fetch.c \
	cell_vertex_shader.c \
	cell_winsys.c


OBJECTS = $(SOURCES:.c=.o) \

INCLUDE_DIRS = \
	-I$(TOP)/src/mesa \
	-I$(TOP)/src/gallium/include \
	-I$(TOP)/src/gallium/auxiliary \
	-I$(TOP)/src/gallium/drivers

.c.o:
	$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@



default: $(CELL_LIB)


$(CELL_LIB): $(OBJECTS) $(SPU_CODE_MODULE)
#	ar -ru $(CELL_LIB) $(OBJECTS) $(SPU_CODE_MODULE) # doesn't work
	ar -ru $(CELL_LIB) $(OBJECTS)

#$(PROG): $(PPU_OBJECTS)
#	$(CC) -o $(PROG) $(PPU_OBJECTS) $(SPU_CODE_MODULE) $(PPU_LFLAGS)



clean:
	rm -f *.o *~ $(CELL_LIB)



depend: $(SOURCES)
	rm -f depend
	touch depend
	$(MKDEP) $(MKDEP_OPTIONS) $(INCLUDE_DIRS) $(SOURCES) 2> /dev/null

include depend