diff options
Diffstat (limited to 'src/driclient/src/Makefile')
-rw-r--r-- | src/driclient/src/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/driclient/src/Makefile b/src/driclient/src/Makefile new file mode 100644 index 0000000000..5d913ad5fa --- /dev/null +++ b/src/driclient/src/Makefile @@ -0,0 +1,23 @@ +TARGET = libdriclient.a +OBJECTS = driclient.o XF86dri.o +DRMDIR ?= /usr + +CFLAGS += -g -Wall -fPIC -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 + |