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