From 6519dd488987d4a672b99de03e558d126798630c Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Fri, 17 Jun 2016 22:56:38 -0700 Subject: Use threading when matching/scoring --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5ccac95..974aabd 100644 --- a/Makefile +++ b/Makefile @@ -11,20 +11,21 @@ INSTALL=install INSTALL_PROGRAM=$(INSTALL) INSTALL_DATA=${INSTALL} -m 644 +LIBS=-lpthread OBJECTS=src/fzy.o src/match.o src/tty.o src/choices.o src/options.o src/tty_interface.o TESTOBJECTS=test/fzytest.c src/match.o src/choices.o all: fzy test/fzytest: $(TESTOBJECTS) - $(CC) $(CFLAGS) $(CCFLAGS) -Isrc -o $@ $(TESTOBJECTS) + $(CC) $(CFLAGS) $(CCFLAGS) -Isrc -o $@ $(TESTOBJECTS) $(LIBS) test: check check: test/fzytest $(DEBUGGER) ./test/fzytest fzy: $(OBJECTS) - $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $(OBJECTS) + $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $(OBJECTS) $(LIBS) %.o: %.c config.h $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< -- cgit v1.2.3