You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
420 B
20 lines
420 B
#! /usr/bin/env python3
|
|
|
|
from invoke import task
|
|
|
|
|
|
CC = "gcc"
|
|
|
|
@task
|
|
def clean(c):
|
|
c.run("rm bfilter.so")
|
|
|
|
@task
|
|
def fnv(c):
|
|
c.run("cd libfnv && ./configure && make")
|
|
|
|
@task
|
|
def build(c):
|
|
fnv(c)
|
|
c.run("%s -g -DLIB -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -std=c99 -I ./libfnv/libfnv/include -lfnv -lm -L. -O3 ./bfilter.c -Wl,-rpath./;" % CC)
|
|
c.run("%s -shared -o bfilter.so bfilter.o;" % CC)
|
|
|