summaryrefslogtreecommitdiffstats
path: root/src/driclient/src/Makefile
blob: 89ffb84477f4f90cc4723a33e971ef44afc47d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TARGET		= libdriclient.a
OBJECTS		= driclient.o XF86dri.o
DRMDIR		?= /usr

CFLAGS		+= -g -Wall -fPIC -Werror -I../include -I${DRMDIR}/include -I${DRMDIR}/include/drm

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

.PHONY	= all clean

all: ${TARGET} test

${TARGET}: ${OBJECTS}
	ar rcs $@ $^
	if ! test -d ../lib; then mkdir ../lib; fi
	cp ${TARGET} ../lib

test: test.o
	$(CC) -L../lib -L${DRMDIR}/lib ${LDFLAGS} -o $@ $^ -ldriclient -lX11 -lXext -ldrm

clean:
	rm -rf ${OBJECTS} ${TARGET} ../lib/${TARGET} test test.o