Added local build and apple fix for generating .so files

Summary: Closes https://github.com/caffe2/caffe2/pull/147

Reviewed By: bwasti

Differential Revision: D4564024

Pulled By: JoelMarcey

fbshipit-source-id: 526a5ab700f9356a3c93a6c64dc38e44a173559c
This commit is contained in:
Bram Wasti
2017-02-15 20:49:42 -08:00
committed by Facebook Github Bot
parent 7d9a0a41fd
commit 7ee9984556
5 changed files with 74 additions and 18 deletions

View File

@ -1,19 +1,19 @@
# This makefile does nothing but delegating the actual compilation to build.py.
# This makefile does nothing but delegating the actual building to cmake.
all:
@mkdir -p build && cd build && cmake .. && make
#android:
# @python brewtool/build_android.py build
local:
@./scripts/build_local.sh
clean:
@rm -r build/
android:
@./scripts/build_android.sh
#test:
# @python brewtool/build.py test
ios:
@./scripts/build_ios.sh
#lint:
# @find caffe2 -type f -exec python brewtool/cpplint.py {} \;
clean: # This will remove ALL build folders.
@rm -r build*/
linecount:
@cloc --read-lang-def=caffe.cloc caffe2 || \