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
)
43 -I
$(TOP
)/src
/gallium
/include \
44 -I
$(TOP
)/src
/gallium
/auxiliary \
45 -I
$(TOP
)/src
/gallium
/drivers
49 $(SPU_CC
) $(SPU_CFLAGS
) -c
$<
52 $(SPU_CC
) $(SPU_CFLAGS
) -O3
-S
$<
55 # The .a file will be linked into the main/PPU executable
56 default
: $(PROG_SPU_A
)
58 $(PROG_SPU_A
): $(PROG_SPU_EMBED_O
)
59 $(SPU_AR
) $(SPU_AR_FLAGS
) $(PROG_SPU_A
) $(PROG_SPU_EMBED_O
)
61 $(PROG_SPU_EMBED_O
): $(PROG_SPU
)
62 $(SPU_EMBED
) $(SPU_EMBED_FLAGS
) $(PROG_SPU
) $(PROG_SPU
) $(PROG_SPU_EMBED_O
)
64 $(PROG_SPU
): $(SPU_OBJECTS
)
65 $(SPU_CC
) -o
$(PROG_SPU
) $(SPU_OBJECTS
) $(SPU_LFLAGS
)
69 asmfiles
: $(SPU_ASM_OUT
)
73 rm -f
*~
*.o
*.a
*.d
*.s
$(PROG_SPU
)
80 $(MKDEP
) $(MKDEP_OPTIONS
) $(INCLUDE_DIRS
) $(SOURCES
) 2> /dev
/null