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 label display_buffer solid \
13 triangle quad vertex_buffer model_view_proj texture \
16 cursor
: $(OBJ
) cursor.o
17 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) cursor.o
$(LIB
)
19 vram_dma
: $(OBJ
) vram_dma.o
20 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) vram_dma.o
$(LIB
)
22 gart_dma
: $(OBJ
) gart_dma.o
23 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) gart_dma.o
$(LIB
)
25 inline
: $(OBJ
) inline.o
26 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) inline.o
$(LIB
)
29 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) label.o
$(LIB
)
31 display_buffer
: $(OBJ
) display_buffer.o
32 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) display_buffer.o
$(LIB
)
35 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) solid.o
$(LIB
)
37 triangle
: $(OBJ
) triangle.o
38 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) triangle.o
$(LIB
)
41 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) quad.o
$(LIB
)
43 vertex_buffer
: $(OBJ
) vertex_buffer.o
44 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) vertex_buffer.o
$(LIB
)
46 model_view_proj
: $(OBJ
) model_view_proj.o
47 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) model_view_proj.o
$(LIB
)
49 texture
: $(OBJ
) texture.o
50 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) texture.o
$(LIB
)
52 timestamp
: $(OBJ
) timestamp.o
53 $(CC
) $(LDFLAGS
) -o
$@
$(OBJ
) timestamp.o
$(LIB
)
61 rm -f vram_dma.o vram_dma
62 rm -f gart_dma.o gart_dma
65 rm -f display_buffer.o display_buffer
67 rm -f triangle.o triangle
69 rm -f vertex_buffer.o vertex_buffer
70 rm -f model_view_proj.o model_view_proj
71 rm -f texture.o texture
72 rm -f timestamp.o timestamp