cc773d40b8eea5da04021ab94361b74014f784a5
[glamo-dri-tests.git] / Makefile
1 CFLAGS=-g -W -Wall
2 LIBS=-lX11 -lXext -ldrm
3 CC=gcc
4
5 gdri-cmdq-submission: gdri-cmdq-submission.o dri2.o utils.o
6         $(CC) gdri-cmdq-submission.o dri2.o utils.o -o gdri-cmdq-submission ${LIBS}
7
8 dri2.o: dri2.c
9         $(CC) -c ${CFLAGS} ${CROSS_CFLAGS} dri2.c -o dri2.o
10
11 gdri-cmdq-submission.o: gdri-cmdq-submission.c
12         $(CC) -c ${CFLAGS} ${CROSS_CFLAGS} gdri-cmdq-submission.c -o gdri-cmdq-submission.o
13
14 utils.o: utils.c
15         $(CC) -c ${CFLAGS} ${CROSS_CFLAGS} utils.c -o utils.o
16
17 clean:
18         rm -rf dri2.o gdri-cmdq-submission.o utils.o gdri-cmdq-submission
19
20 install:
21         install -d -m 755 ${PREFIX}/bin
22         install -m 755 gdri-cmdq-submission ${PREFIX}/bin
23
24 .PHONY: clean install