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
21 spu_per_fragment_op.c \
34 SPU_OBJECTS
= $(SOURCES
:.c
=.o
) \
36 SPU_ASM_OUT
= $(SOURCES
:.c
=.s
) \
40 -I
$(TOP
)/src
/gallium
/include \
41 -I
$(TOP
)/src
/gallium
/auxiliary \
42 -I
$(TOP
)/src
/gallium
/drivers
46 $(SPU_CC
) $(SPU_CFLAGS
) -c
$<
49 $(SPU_CC
) $(SPU_CFLAGS
) -O3
-S
$<
52 # The .a file will be linked into the main/PPU executable
53 default
: $(PROG_SPU_A
)
55 $(PROG_SPU_A
): $(PROG_SPU_EMBED_O
)
56 $(SPU_AR
) $(SPU_AR_FLAGS
) $(PROG_SPU_A
) $(PROG_SPU_EMBED_O
)
58 $(PROG_SPU_EMBED_O
): $(PROG_SPU
)
59 $(SPU_EMBED
) $(SPU_EMBED_FLAGS
) $(PROG_SPU
) $(PROG_SPU
) $(PROG_SPU_EMBED_O
)
61 $(PROG_SPU
): $(SPU_OBJECTS
)
62 $(SPU_CC
) -o
$(PROG_SPU
) $(SPU_OBJECTS
) $(SPU_LFLAGS
)
66 asmfiles
: $(SPU_ASM_OUT
)
70 rm -f
*~
*.o
*.a
*.d
*.s
$(PROG_SPU
)
77 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDE_DIRS
) $(SOURCES
) 2> /dev
/null