summaryrefslogtreecommitdiff
path: root/src/driclient/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/driclient/src/Makefile')
-rw-r--r--src/driclient/src/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/driclient/src/Makefile b/src/driclient/src/Makefile
new file mode 100644
index 00000000000..34435a2086e
--- /dev/null
+++ b/src/driclient/src/Makefile
@@ -0,0 +1,19 @@
+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}
+
+${TARGET}: ${OBJECTS}
+ ar rcs $@ $^
+ if ! test -d ../lib; then mkdir ../lib; fi
+ cp ${TARGET} ../lib
+
+clean:
+ rm -rf ${OBJECTS} ${TARGET} ../lib/${TARGET}