c92f8e5cba2d8f71c9cab329c3735840443f5829
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
31 cell_state_derived.c \
45 OBJECTS
= $(SOURCES
:.c
=.o
) \
49 -I
$(TOP
)/src
/gallium
/include \
50 -I
$(TOP
)/src
/gallium
/auxiliary \
51 -I
$(TOP
)/src
/gallium
/drivers
54 $(CC
) -c
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
58 $(CC
) -S
$(INCLUDE_DIRS
) $(CFLAGS
) $< -o
$@
64 $(CELL_LIB
): $(OBJECTS
) $(SPU_CODE_MODULE
)
65 # ar -ru $(CELL_LIB) $(OBJECTS) $(SPU_CODE_MODULE) # doesn't work
66 ar -ru
$(CELL_LIB
) $(OBJECTS
)
68 #$(PROG): $(PPU_OBJECTS)
69 # $(CC) -o $(PROG) $(PPU_OBJECTS) $(SPU_CODE_MODULE) $(PPU_LFLAGS)
74 rm -f
*.o
*~
$(CELL_LIB
)
81 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDE_DIRS
) $(SOURCES
) 2> /dev
/null