move display resolution and device path to Makefile; dump FIFO content to console...
[ps3freebsd_ps3gpu_test.git] / Makefile
blob2f0a585ce378f411a7e43bd2fea22621eaf188ac
2 CC=gcc
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\)
7 LDFLAGS=
8 LIB=-lm
10 all: cursor vram_dma gart_dma inline display_buffer solid triangle
12 cursor: util.o reset_gpu_state.o cursor.o
13 $(CC) $(LDFLAGS) -o $@ util.o reset_gpu_state.o cursor.o $(LIB)
15 vram_dma: util.o reset_gpu_state.o vram_dma.o
16 $(CC) $(LDFLAGS) -o $@ util.o reset_gpu_state.o vram_dma.o $(LIB)
18 gart_dma: util.o reset_gpu_state.o gart_dma.o
19 $(CC) $(LDFLAGS) -o $@ util.o reset_gpu_state.o gart_dma.o $(LIB)
21 inline: util.o reset_gpu_state.o inline.o
22 $(CC) $(LDFLAGS) -o $@ util.o reset_gpu_state.o inline.o $(LIB)
24 display_buffer: util.o reset_gpu_state.o display_buffer.o
25 $(CC) $(LDFLAGS) -o $@ util.o reset_gpu_state.o display_buffer.o $(LIB)
27 solid: util.o reset_gpu_state.o solid.o
28 $(CC) $(LDFLAGS) -o $@ util.o reset_gpu_state.o solid.o $(LIB)
30 triangle: util.o reset_gpu_state.o triangle.o
31 $(CC) $(LDFLAGS) -o $@ util.o reset_gpu_state.o triangle.o $(LIB)
33 %.o: %.c
34 $(CC) $(CFLAGS) -c $<
36 clean:
37 rm -f util.o reset_gpu_state.o
38 rm -f cursor.o cursor
39 rm -f vram_dma.o vram_dma
40 rm -f gart_dma.o gart_dma
41 rm -f inline.o inline
42 rm -f display_buffer.o display_buffer
43 rm -f solid.o solid
44 rm -f triangle.o triangle