summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2014-09-06 17:59:12 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2014-09-06 18:58:08 -0700
commita52eab1b02f245bc7abb618e6e6847d426055c5f (patch)
treec7cb24704397c99b46a53190ee98bfc4551c77b1 /Makefile
parente388c580e6fdb910fec66bd851f8924506dc059d (diff)
Compile with -O3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3fb457e..e2b8160 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
VERSION=0.1beta
CPPFLAGS=-DVERSION=\"${VERSION}\"
-CFLAGS+=-Wall -Wextra -g -std=c99 -O2
+CFLAGS+=-Wall -Wextra -g -std=c99 -O3
PREFIX?=/usr/local
INSTALL=install
@@ -11,13 +11,13 @@ INSTALL_DATA=${INSTALL} -m 644
all: fzy fzytest
fzytest: fzytest.o match.o
- $(CC) $(CCFLAGS) -o $@ $^
+ $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $^
test: fzytest
-./fzytest
fzy: fzy.o match.o tty.o
- $(CC) $(CCFLAGS) -o $@ $^
+ $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $^
%.o: %.c fzy.h
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<