summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 65acc36..d29660e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
SRCS=vidtime.c
OBJS=$(SRCS:.c=.o)
-LIBS=-lX11 -lpthread
-CFLAGS=-O0 -g
+LIBS=$(shell pkg-config x11 xpresent --libs) -lpthread
+CFLAGS=-O0 -g $(shell pkg-config x11 xpresent --cflags)
vidtime: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
+
+clean:
+ rm -f $(OBJS) vidtime