summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/g3dvl/tests/Makefile
blob: 8f983593c3a3a30838124d2a11fa7e29df686bb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
GALLIUMDIR	= ../../..

CFLAGS	+= -g -Wall -Werror				\
	   -I${GALLIUMDIR}/state_trackers/g3dvl		\
	   -I${GALLIUMDIR}/winsys/g3dvl			\
	   -I${GALLIUMDIR}/include			\
	   -I${GALLIUMDIR}/auxiliary			\
	   -I${GALLIUMDIR}/drivers
LDFLAGS	+= -L${GALLIUMDIR}/state_trackers/g3dvl		\
	   -L${GALLIUMDIR}/drivers/softpipe		\
	   -L${GALLIUMDIR}/auxiliary/tgsi		\
	   -L${GALLIUMDIR}/auxiliary/draw		\
	   -L${GALLIUMDIR}/auxiliary/util		\
	   -L${GALLIUMDIR}/auxiliary/translate		\
	   -L${GALLIUMDIR}/auxiliary/cso_cache		\
	   -L${GALLIUMDIR}/auxiliary/rtasm
LIBS	+= -lg3dvl -lsoftpipe -ldraw -ltgsi -ltranslate -lrtasm -lcso_cache -lutil -lX11 -lm

#############################################

.PHONY	= all clean

all: test_context test_surface test_i_rendering test_p_rendering test_b_rendering

test_context: test_context.o ${GALLIUMDIR}/winsys/g3dvl/xsp_winsys.o
	$(CC) ${LDFLAGS} -o $@ $^ ${LIBS}

test_surface: test_surface.o ${GALLIUMDIR}/winsys/g3dvl/xsp_winsys.o
	$(CC) ${LDFLAGS} -o $@ $^ ${LIBS}

test_i_rendering: test_i_rendering.o ${GALLIUMDIR}/winsys/g3dvl/xsp_winsys.o
	$(CC) ${LDFLAGS} -o $@ $^ ${LIBS}

test_p_rendering: test_p_rendering.o ${GALLIUMDIR}/winsys/g3dvl/xsp_winsys.o
	$(CC) ${LDFLAGS} -o $@ $^ ${LIBS}

test_b_rendering: test_b_rendering.o ${GALLIUMDIR}/winsys/g3dvl/xsp_winsys.o
	$(CC) ${LDFLAGS} -o $@ $^ ${LIBS}

clean:
	rm -rf *.o test_context test_surface test_i_rendering test_p_rendering test_b_rendering