3 CFLAGS
=-Wall
-O2
-g
-fno-strict-aliasing
4 CFLAGS
+=-DPS3GPU_DEV_PATH
=\"/dev
/ps3gpu
\"
5 CFLAGS
+=-DDISPLAY_WIDTH
=1920 -DDISPLAY_HEIGHT
=1080 -DDISPLAY_BPP
=4
6 CFLAGS
+=-DDISPLAY_PITCH
=\
(DISPLAY_WIDTH
*DISPLAY_BPP\
)
8 SRC
=util.c matrix.c reset_gpu_state.c
12 all: cursor vram_dma gart_dma inline display_buffer solid triangle \
13 quad vertex_buffer model_view_proj
15 cursor
: $(OBJ
) cursor.o
16 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) cursor.o
$(LIB
)
18 vram_dma
: $(OBJ
) vram_dma.o
19 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) vram_dma.o
$(LIB
)
21 gart_dma
: $(OBJ
) gart_dma.o
22 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) gart_dma.o
$(LIB
)
24 inline
: $(OBJ
) inline.o
25 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) inline.o
$(LIB
)
27 display_buffer
: $(OBJ
) display_buffer.o
28 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) display_buffer.o
$(LIB
)
31 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) solid.o
$(LIB
)
33 triangle
: $(OBJ
) triangle.o
34 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) triangle.o
$(LIB
)
37 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) quad.o
$(LIB
)
39 vertex_buffer
: $(OBJ
) vertex_buffer.o
40 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) vertex_buffer.o
$(LIB
)
42 model_view_proj
: $(OBJ
) model_view_proj.o
43 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) model_view_proj.o
$(LIB
)
51 rm -f vram_dma.o vram_dma
52 rm -f gart_dma.o gart_dma
54 rm -f display_buffer.o display_buffer
56 rm -f triangle.o triangle
58 rm -f vertex_buffer.o vertex_buffer
59 rm -f model_view_proj.o model_view_proj