1 # Gallium3D Cell driver: SPU code
3 # This makefile builds the g3d_spu.a file that's linked into the
8 include $(TOP
)/configs
/current
13 PROG_SPU
= $(PROG
)_spu
14 PROG_SPU_A
= $(PROG
)_spu.a
15 PROG_SPU_EMBED_O
= $(PROG
)_spu-embed.o
23 spu_per_fragment_op.c \
36 SPU_OBJECTS
= $(SOURCES
:.c
=.o
) \
38 SPU_ASM_OUT
= $(SOURCES
:.c
=.s
) \
42 -I
$(TOP
)/src
/gallium
/include \
43 -I
$(TOP
)/src
/gallium
/auxiliary \
44 -I
$(TOP
)/src
/gallium
/drivers
48 $(SPU_CC
) $(SPU_CFLAGS
) -c
$<
51 $(SPU_CC
) $(SPU_CFLAGS
) -O3
-S
$<
54 # The .a file will be linked into the main/PPU executable
55 default
: $(PROG_SPU_A
)
57 $(PROG_SPU_A
): $(PROG_SPU_EMBED_O
)
58 $(SPU_AR
) $(SPU_AR_FLAGS
) $(PROG_SPU_A
) $(PROG_SPU_EMBED_O
)
60 $(PROG_SPU_EMBED_O
): $(PROG_SPU
)
61 $(SPU_EMBED
) $(SPU_EMBED_FLAGS
) $(PROG_SPU
) $(PROG_SPU
) $(PROG_SPU_EMBED_O
)
63 $(PROG_SPU
): $(SPU_OBJECTS
)
64 $(SPU_CC
) -o
$(PROG_SPU
) $(SPU_OBJECTS
) $(SPU_LFLAGS
)
68 asmfiles
: $(SPU_ASM_OUT
)
72 rm -f
*~
*.o
*.a
*.d
*.s
$(PROG_SPU
)
79 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDE_DIRS
) $(SOURCES
) 2> /dev
/null