1 # Gallium3D Cell driver: SPU code
3 # This makefile builds the g3d_spu.a file that's linked into the
8 include $(TOP
)/configs
/linux-cell
13 PROG_SPU
= $(PROG
)_spu
14 PROG_SPU_A
= $(PROG
)_spu.a
15 PROG_SPU_EMBED_O
= $(PROG
)_spu-embed.o
22 spu_per_fragment_op.c \
32 SPU_OBJECTS
= $(SOURCES
:.c
=.o
) \
34 SPU_ASM_OUT
= $(SOURCES
:.c
=.s
) \
38 -I
$(TOP
)/src
/gallium
/include \
39 -I
$(TOP
)/src
/gallium
/auxiliary \
40 -I
$(TOP
)/src
/gallium
/drivers
44 $(SPU_CC
) $(SPU_CFLAGS
) -c
$<
47 $(SPU_CC
) $(SPU_CFLAGS
) -S
$<
50 # The .a file will be linked into the main/PPU executable
51 default
: $(PROG_SPU_A
)
53 $(PROG_SPU_A
): $(PROG_SPU_EMBED_O
)
54 $(SPU_AR
) $(SPU_AR_FLAGS
) $(PROG_SPU_A
) $(PROG_SPU_EMBED_O
)
56 $(PROG_SPU_EMBED_O
): $(PROG_SPU
)
57 $(SPU_EMBED
) $(SPU_EMBED_FLAGS
) $(PROG_SPU
) $(PROG_SPU
) $(PROG_SPU_EMBED_O
)
59 $(PROG_SPU
): $(SPU_OBJECTS
)
60 $(SPU_CC
) -o
$(PROG_SPU
) $(SPU_OBJECTS
) $(SPU_LFLAGS
)
64 asmfiles
: $(SPU_ASM_OUT
)
68 rm -f
*~
*.o
*.a
*.d
*.s
$(PROG_SPU
)
75 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDE_DIRS
) $(SOURCES
) 2> /dev
/null