1 # Gallium3D Cell driver: PPU code
3 # This makefile builds the libcell.a library which gets pulled into
4 # the main libGL.so library
8 include $(TOP
)/configs
/current
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
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
32 cell_state_derived.c \
46 OBJECTS
= $(SOURCES
:.c
=.o
) \
50 -I
$(TOP
)/src
/gallium
/include \
51 -I
$(TOP
)/src
/gallium
/auxiliary \
52 -I
$(TOP
)/src
/gallium
/drivers
55 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
59 $(CC
) -S
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
65 $(CELL_LIB
): $(OBJECTS
) $(SPU_CODE_MODULE
)
66 # ar -ru $(CELL_LIB) $(OBJECTS) $(SPU_CODE_MODULE) # doesn't work
67 ar -ru
$(CELL_LIB
) $(OBJECTS
)
69 #$(PROG): $(PPU_OBJECTS)
70 # $(CC) -o $(PROG) $(PPU_OBJECTS) $(SPU_CODE_MODULE) $(PPU_LFLAGS)
75 rm -f
*.o
*~
$(CELL_LIB
)
82 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDE_DIRS
) $(SOURCES
) 2> /dev
/null