Skip to content

Instantly share code, notes, and snippets.

@bkj
Last active October 9, 2017 18:48
Show Gist options
  • Save bkj/01a86e83791c2cccecd1cf33fb237d0e to your computer and use it in GitHub Desktop.
Save bkj/01a86e83791c2cccecd1cf33fb237d0e to your computer and use it in GitHub Desktop.
# Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD+Patents license found in the
# LICENSE file in the root directory of this source tree.
# -*- makefile -*-
# tested on CentOS 7, Ubuntu 16 and Ubuntu 14, see below to adjust flags to distribution.
CC=g++
CFLAGS=-fPIC -m64 -Wall -g -O3 -mavx -msse4 -mpopcnt -fopenmp -Wno-sign-compare -std=c++11 -fopenmp -DFINTEGER=long
LDFLAGS=-g -fPIC -fopenmp
# common linux flags
SHAREDEXT=so
SHAREDFLAGS=-shared
FAISSSHAREDFLAGS=-shared
BLASLDFLAGS?=/usr/lib/libopenblas.so.0
SWIGEXEC=swig
PYTHONCFLAGS=-I${ANACONDA_HOME}/include/python2.7/ -I${ANACONDA_HOME}/lib/python2.7/site-packages/numpy/core/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment