summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-06-17 22:56:38 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-06-22 18:32:15 -0700
commit6519dd488987d4a672b99de03e558d126798630c (patch)
tree62d347dfbefab1477763b1816e70a71d0ddb8798 /Makefile
parenta9b4925cf02c6be7064916b07d0031df7c4d5b5a (diff)
Use threading when matching/scoring
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
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 $@ $<