summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e77f938..bdfb0cb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
CFLAGS=-Wall -O0 -g $(shell pkg-config --cflags xcb-shm xcb-aux xcb-dri3 xcb-present xshmfence)
-LIBS=$(shell pkg-config --libs xcb-shm xcb-aux xcb-dri3 xcb-present xshmfence)
+LIBS=$(shell pkg-config --libs xcb-shm xcb-aux xcb-dri3 xcb-present xshmfence xcb-sync xcb-xfixes)
-all: shmfd dri3 futex xfence present pipefence shmtest
+all: shmfd dri3 futex xfence present pipefence shmtest condtest
SHMFD_OBJS=shmfd.o
@@ -38,6 +38,11 @@ SHMTEST_OBJS=shmtest.o
shmtest: $(SHMTEST_OBJS)
$(CC) $(CFLAGS) -o $@ $(SHMTEST_OBJS)
+CONDTEST_OBJS=condtest.o
+
+condtest: $(CONDTEST_OBJS)
+ $(CC) $(CFLAGS) -o $@ $(CONDTEST_OBJS) -lpthread
+
clean:
rm -f shmfd $(SHMFD_OBJS)
rm -f dri3 $(DRI3_OBJS)