Skip to content

Commit

Permalink
Merge pull request #64 from LocutusOfBorg/patch-1
Browse files Browse the repository at this point in the history
Update Makefile to use environment FLAGS
  • Loading branch information
axiak committed Sep 3, 2015
2 parents e34df25 + e994522 commit 9dfd9e2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Makefile
@@ -1,6 +1,8 @@
CC ?= gcc

bloomfilter: mmapbitarray.* bloomfilter.*
gcc -lm -O3 mmapbitarray.c md5.c MurmurHash3.cpp bloomfilter.c -o bf
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 mmapbitarray.c md5.c MurmurHash3.cpp bloomfilter.c -o bf -lm $(LDFLAGS)

mbarray: mmapbitarray.*
gcc -lm -O3 -DMBAQUERY mmapbitarray.c -o mbaquery
gcc -lm -O3 -DMBACREATE mmapbitarray.c -o mbacreate
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 -DMBAQUERY mmapbitarray.c -o mbaquery -lm $(LDFLAGS)
$(CC) $(CFLAGS) $(CPPFLAGS) -O3 -DMBACREATE mmapbitarray.c -o mbacreate -lm $(LDFLAGS)

0 comments on commit 9dfd9e2

Please sign in to comment.