2013-11-22 01:31:18 +04:00
|
|
|
# The makefile for caffe. Extremely hacky.
|
2013-09-22 21:18:13 +04:00
|
|
|
PROJECT := caffe
|
2013-11-16 04:58:53 +04:00
|
|
|
TEST_GPUID := 0
|
2013-10-11 02:20:20 +04:00
|
|
|
|
2013-11-26 21:47:26 +04:00
|
|
|
include Makefile.config
|
2013-11-22 01:31:18 +04:00
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
# After this line, things should happen automatically.
|
|
|
|
##############################################################################
|
|
|
|
|
2013-10-11 02:20:20 +04:00
|
|
|
# The target static library and shared library name
|
2013-09-13 04:10:48 +04:00
|
|
|
NAME := lib$(PROJECT).so
|
2013-10-11 02:20:20 +04:00
|
|
|
STATIC_NAME := lib$(PROJECT).a
|
2013-11-22 01:31:18 +04:00
|
|
|
|
|
|
|
##############################
|
|
|
|
# Get all source files
|
|
|
|
##############################
|
|
|
|
# CXX_SRCS are the source files excluding the test ones.
|
2014-01-13 15:34:34 +04:00
|
|
|
CXX_SRCS := $(shell find src/$(PROJECT) ! -name "test_*.cpp" -name "*.cpp")
|
2013-11-29 01:55:17 +04:00
|
|
|
# HXX_SRCS are the header files
|
2014-01-13 15:34:34 +04:00
|
|
|
HXX_SRCS := $(shell find include/$(PROJECT) ! -name "*.hpp")
|
2013-11-22 01:31:18 +04:00
|
|
|
# CU_SRCS are the cuda source files
|
2014-01-13 15:34:34 +04:00
|
|
|
CU_SRCS := $(shell find src/$(PROJECT) -name "*.cu")
|
2013-11-22 01:31:18 +04:00
|
|
|
# TEST_SRCS are the test source files
|
2014-01-13 15:34:34 +04:00
|
|
|
TEST_SRCS := $(shell find src/$(PROJECT) -name "test_*.cpp")
|
2013-10-16 01:35:14 +04:00
|
|
|
GTEST_SRC := src/gtest/gtest-all.cpp
|
2013-11-29 01:55:17 +04:00
|
|
|
# TEST_HDRS are the test header files
|
2014-01-13 15:34:34 +04:00
|
|
|
TEST_HDRS := $(shell find src/$(PROJECT) -name "test_*.hpp")
|
2014-02-25 10:45:29 +04:00
|
|
|
# TOOL_SRCS are the source files for the tool binaries
|
|
|
|
TOOL_SRCS := $(shell find tools -name "*.cpp")
|
2013-11-29 01:55:17 +04:00
|
|
|
# EXAMPLE_SRCS are the source files for the example binaries
|
2013-10-16 01:35:14 +04:00
|
|
|
EXAMPLE_SRCS := $(shell find examples -name "*.cpp")
|
2013-11-22 01:31:18 +04:00
|
|
|
# PROTO_SRCS are the protocol buffer definitions
|
2014-01-13 15:34:34 +04:00
|
|
|
PROTO_SRCS := $(wildcard src/$(PROJECT)/proto/*.proto)
|
2014-02-26 12:41:19 +04:00
|
|
|
# NONGEN_CXX_SRCS includes all source/header files except those generated
|
|
|
|
# automatically (e.g., by proto).
|
2014-02-26 06:58:49 +04:00
|
|
|
NONGEN_CXX_SRCS := $(shell find \
|
|
|
|
src/$(PROJECT) \
|
|
|
|
include/$(PROJECT) \
|
|
|
|
python/$(PROJECT) \
|
|
|
|
matlab/$(PROJECT) \
|
2014-02-26 09:20:16 +04:00
|
|
|
examples \
|
|
|
|
tools \
|
2014-02-26 00:49:57 +04:00
|
|
|
-regex ".*\.\(cpp\|hpp\|cu\|cuh\)")
|
2014-02-26 12:41:19 +04:00
|
|
|
LINT_REPORT := $(BUILD_DIR)/cpp_lint.log
|
|
|
|
FAILED_LINT_REPORT := $(BUILD_DIR)/cpp_lint.error_log
|
2014-01-13 15:34:34 +04:00
|
|
|
# PY$(PROJECT)_SRC is the python wrapper for $(PROJECT)
|
|
|
|
PY$(PROJECT)_SRC := python/$(PROJECT)/py$(PROJECT).cpp
|
|
|
|
PY$(PROJECT)_SO := python/$(PROJECT)/py$(PROJECT).so
|
|
|
|
# MAT$(PROJECT)_SRC is the matlab wrapper for $(PROJECT)
|
|
|
|
MAT$(PROJECT)_SRC := matlab/$(PROJECT)/mat$(PROJECT).cpp
|
|
|
|
MAT$(PROJECT)_SO := matlab/$(PROJECT)/$(PROJECT)
|
2013-11-22 01:31:18 +04:00
|
|
|
|
|
|
|
##############################
|
|
|
|
# Derive generated files
|
|
|
|
##############################
|
2013-10-11 02:20:20 +04:00
|
|
|
# The generated files for protocol buffers
|
2013-09-13 04:10:48 +04:00
|
|
|
PROTO_GEN_HEADER := ${PROTO_SRCS:.proto=.pb.h}
|
|
|
|
PROTO_GEN_CC := ${PROTO_SRCS:.proto=.pb.cc}
|
2013-09-17 22:47:03 +04:00
|
|
|
PROTO_GEN_PY := ${PROTO_SRCS:.proto=_pb2.py}
|
2013-11-22 01:31:18 +04:00
|
|
|
# The objects corresponding to the source files
|
2013-11-22 05:00:57 +04:00
|
|
|
# These objects will be linked into the final shared library, so we
|
2014-02-25 10:45:29 +04:00
|
|
|
# exclude the tool, example, and test objects.
|
2014-01-13 15:34:34 +04:00
|
|
|
CXX_OBJS := $(addprefix $(BUILD_DIR)/, ${CXX_SRCS:.cpp=.o})
|
|
|
|
CU_OBJS := $(addprefix $(BUILD_DIR)/, ${CU_SRCS:.cu=.cuo})
|
|
|
|
PROTO_OBJS := $(addprefix $(BUILD_DIR)/, ${PROTO_GEN_CC:.cc=.o})
|
2013-09-16 22:25:43 +04:00
|
|
|
OBJS := $(PROTO_OBJS) $(CXX_OBJS) $(CU_OBJS)
|
2014-02-25 10:45:29 +04:00
|
|
|
# tool, example, and test objects
|
|
|
|
TOOL_OBJS := $(addprefix $(BUILD_DIR)/, ${TOOL_SRCS:.cpp=.o})
|
2014-01-13 15:34:34 +04:00
|
|
|
EXAMPLE_OBJS := $(addprefix $(BUILD_DIR)/, ${EXAMPLE_SRCS:.cpp=.o})
|
|
|
|
TEST_OBJS := $(addprefix $(BUILD_DIR)/, ${TEST_SRCS:.cpp=.o})
|
|
|
|
GTEST_OBJ := $(addprefix $(BUILD_DIR)/, ${GTEST_SRC:.cpp=.o})
|
2014-02-25 10:45:29 +04:00
|
|
|
# tool, example, and test bins
|
|
|
|
TOOL_BINS := ${TOOL_OBJS:.o=.bin}
|
2014-01-13 15:34:34 +04:00
|
|
|
EXAMPLE_BINS := ${EXAMPLE_OBJS:.o=.bin}
|
2013-10-11 02:20:20 +04:00
|
|
|
TEST_BINS := ${TEST_OBJS:.o=.testbin}
|
2013-09-13 04:10:48 +04:00
|
|
|
|
2013-11-22 01:31:18 +04:00
|
|
|
##############################
|
|
|
|
# Derive include and lib directories
|
|
|
|
##############################
|
2013-09-16 22:33:38 +04:00
|
|
|
CUDA_INCLUDE_DIR := $(CUDA_DIR)/include
|
2013-11-25 10:13:34 +04:00
|
|
|
CUDA_LIB_DIR := $(CUDA_DIR)/lib64 $(CUDA_DIR)/lib
|
2013-09-16 22:33:38 +04:00
|
|
|
MKL_INCLUDE_DIR := $(MKL_DIR)/include
|
2013-09-16 22:47:20 +04:00
|
|
|
MKL_LIB_DIR := $(MKL_DIR)/lib $(MKL_DIR)/lib/intel64
|
2013-09-13 04:10:48 +04:00
|
|
|
|
2013-11-22 01:31:18 +04:00
|
|
|
INCLUDE_DIRS += ./src ./include $(CUDA_INCLUDE_DIR) $(MKL_INCLUDE_DIR)
|
|
|
|
LIBRARY_DIRS += $(CUDA_LIB_DIR) $(MKL_LIB_DIR)
|
2014-02-24 00:29:14 +04:00
|
|
|
LIBRARIES := cudart cublas curand \
|
|
|
|
mkl_rt \
|
|
|
|
pthread \
|
|
|
|
glog protobuf leveldb \
|
|
|
|
snappy \
|
|
|
|
boost_system \
|
2014-02-26 07:14:51 +04:00
|
|
|
hdf5_hl hdf5 \
|
2014-02-03 14:41:04 +04:00
|
|
|
opencv_core opencv_highgui opencv_imgproc
|
2013-11-22 01:31:18 +04:00
|
|
|
PYTHON_LIBRARIES := boost_python python2.7
|
2013-09-13 04:10:48 +04:00
|
|
|
WARNINGS := -Wall
|
|
|
|
|
2013-11-26 21:47:26 +04:00
|
|
|
COMMON_FLAGS := -DNDEBUG -O2 $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))
|
|
|
|
CXXFLAGS += -pthread -fPIC $(COMMON_FLAGS)
|
|
|
|
NVCCFLAGS := -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)
|
2013-10-11 02:20:20 +04:00
|
|
|
LDFLAGS += $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) \
|
2013-11-26 21:49:29 +04:00
|
|
|
$(foreach library,$(LIBRARIES),-l$(library))
|
2013-11-22 01:31:18 +04:00
|
|
|
PYTHON_LDFLAGS := $(LDFLAGS) $(foreach library,$(PYTHON_LIBRARIES),-l$(library))
|
2013-09-13 04:10:48 +04:00
|
|
|
|
|
|
|
|
2013-11-22 01:31:18 +04:00
|
|
|
##############################
|
|
|
|
# Define build targets
|
|
|
|
##############################
|
2014-02-26 12:41:19 +04:00
|
|
|
.PHONY: all init test clean linecount lint tools examples py mat distribute py$(PROJECT) mat$(PROJECT) proto
|
2013-09-13 04:10:48 +04:00
|
|
|
|
2014-02-25 10:45:29 +04:00
|
|
|
all: init $(NAME) $(STATIC_NAME) tools examples
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo $(CXX_OBJS)
|
2014-01-20 02:34:12 +04:00
|
|
|
|
|
|
|
init:
|
2014-01-13 15:34:34 +04:00
|
|
|
@ mkdir -p $(foreach obj,$(OBJS),$(dir $(obj)))
|
2014-02-25 10:45:29 +04:00
|
|
|
@ mkdir -p $(foreach obj,$(TOOL_OBJS),$(dir $(obj)))
|
2014-01-13 15:34:34 +04:00
|
|
|
@ mkdir -p $(foreach obj,$(EXAMPLE_OBJS),$(dir $(obj)))
|
|
|
|
@ mkdir -p $(foreach obj,$(TEST_OBJS),$(dir $(obj)))
|
2014-01-20 02:34:12 +04:00
|
|
|
@ mkdir -p $(foreach obj,$(GTEST_OBJ),$(dir $(obj)))
|
2013-11-13 01:49:37 +04:00
|
|
|
|
2013-09-19 10:43:20 +04:00
|
|
|
linecount: clean
|
2014-01-13 15:34:34 +04:00
|
|
|
cloc --read-lang-def=$(PROJECT).cloc src/$(PROJECT)/
|
2013-09-17 22:47:03 +04:00
|
|
|
|
2014-02-26 12:41:19 +04:00
|
|
|
lint: $(LINT_REPORT)
|
|
|
|
|
|
|
|
$(LINT_REPORT): $(NONGEN_CXX_SRCS)
|
|
|
|
@ mkdir -p $(BUILD_DIR)
|
|
|
|
@ (python ./scripts/cpp_lint.py $(NONGEN_CXX_SRCS) > $(LINT_REPORT) 2>&1 \
|
|
|
|
&& (rm -f $(FAILED_LINT_REPORT); echo "No linter errors!")) || ( \
|
|
|
|
mv $(LINT_REPORT) $(FAILED_LINT_REPORT); \
|
|
|
|
grep -v "^Done processing " $(FAILED_LINT_REPORT); \
|
|
|
|
echo "Found 1 or more linter errors; see log at $(FAILED_LINT_REPORT)"; \
|
|
|
|
exit 1)
|
2014-02-25 23:44:28 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
test: init $(TEST_BINS)
|
2013-09-20 02:19:50 +04:00
|
|
|
|
2014-02-25 10:45:29 +04:00
|
|
|
tools: init $(TOOL_BINS)
|
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
examples: init $(EXAMPLE_BINS)
|
2013-10-02 01:00:18 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
py$(PROJECT): py
|
|
|
|
|
|
|
|
py: init $(STATIC_NAME) $(PY$(PROJECT)_SRC) $(PROTO_GEN_PY)
|
|
|
|
$(CXX) -shared -o $(PY$(PROJECT)_SO) $(PY$(PROJECT)_SRC) \
|
2013-11-22 01:31:18 +04:00
|
|
|
$(STATIC_NAME) $(CXXFLAGS) $(PYTHON_LDFLAGS)
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
mat$(PROJECT): mat
|
2013-11-22 01:31:18 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
mat: init $(STATIC_NAME) $(MAT$(PROJECT)_SRC)
|
|
|
|
$(MATLAB_DIR)/bin/mex $(MAT$(PROJECT)_SRC) $(STATIC_NAME) \
|
2013-11-23 02:16:58 +04:00
|
|
|
CXXFLAGS="\$$CXXFLAGS $(CXXFLAGS) $(WARNINGS)" \
|
|
|
|
CXXLIBS="\$$CXXLIBS $(LDFLAGS)" \
|
2014-01-13 15:34:34 +04:00
|
|
|
-o $(MAT$(PROJECT)_SO)
|
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(NAME): init $(PROTO_OBJS) $(OBJS)
|
2014-02-12 07:55:41 +04:00
|
|
|
$(CXX) -shared -o $(NAME) $(OBJS) $(CXXFLAGS) $(LDFLAGS) $(WARNINGS)
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2013-09-20 02:46:45 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(STATIC_NAME): init $(PROTO_OBJS) $(OBJS)
|
2013-10-11 02:20:20 +04:00
|
|
|
ar rcs $(STATIC_NAME) $(PROTO_OBJS) $(OBJS)
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2013-10-11 02:20:20 +04:00
|
|
|
|
|
|
|
runtest: test
|
|
|
|
for testbin in $(TEST_BINS); do $$testbin $(TEST_GPUID); done
|
2013-09-13 04:10:48 +04:00
|
|
|
|
2013-11-29 01:55:17 +04:00
|
|
|
$(TEST_BINS): %.testbin : %.o $(GTEST_OBJ) $(STATIC_NAME) $(TEST_HDRS)
|
2014-02-12 07:55:41 +04:00
|
|
|
$(CXX) $< $(GTEST_OBJ) $(STATIC_NAME) -o $@ $(CXXFLAGS) $(LDFLAGS) $(WARNINGS)
|
2013-10-02 01:00:18 +04:00
|
|
|
|
2014-02-25 10:45:29 +04:00
|
|
|
$(TOOL_BINS): %.bin : %.o $(STATIC_NAME)
|
|
|
|
$(CXX) $< $(STATIC_NAME) -o $@ $(CXXFLAGS) $(LDFLAGS) $(WARNINGS)
|
|
|
|
@echo
|
|
|
|
|
2013-10-16 01:35:14 +04:00
|
|
|
$(EXAMPLE_BINS): %.bin : %.o $(STATIC_NAME)
|
2014-02-12 07:55:41 +04:00
|
|
|
$(CXX) $< $(STATIC_NAME) -o $@ $(CXXFLAGS) $(LDFLAGS) $(WARNINGS)
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2013-09-13 04:10:48 +04:00
|
|
|
|
2013-11-29 01:55:17 +04:00
|
|
|
$(OBJS): $(PROTO_GEN_CC) $(HXX_SRCS)
|
2013-10-11 03:54:39 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/src/$(PROJECT)/%.o: src/$(PROJECT)/%.cpp
|
2014-02-18 03:51:48 +04:00
|
|
|
$(CXX) $< $(CXXFLAGS) -c -o $@
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/src/$(PROJECT)/layers/%.o: src/$(PROJECT)/layers/%.cpp
|
2014-02-18 03:51:48 +04:00
|
|
|
$(CXX) $< $(CXXFLAGS) -c -o $@
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/src/$(PROJECT)/proto/%.o: src/$(PROJECT)/proto/%.cc
|
2014-02-18 03:51:48 +04:00
|
|
|
$(CXX) $< $(CXXFLAGS) -c -o $@
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/src/$(PROJECT)/test/%.o: src/test/%.cpp
|
2014-02-18 03:51:48 +04:00
|
|
|
$(CXX) $< $(CXXFLAGS) -c -o $@
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/src/$(PROJECT)/util/%.o: src/$(PROJECT)/util/%.cpp
|
2014-02-18 03:51:48 +04:00
|
|
|
$(CXX) $< $(CXXFLAGS) -c -o $@
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/src/gtest/%.o: src/gtest/%.cpp
|
2014-02-18 03:51:48 +04:00
|
|
|
$(CXX) $< $(CXXFLAGS) -c -o $@
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/src/$(PROJECT)/layers/%.cuo: src/$(PROJECT)/layers/%.cu
|
2013-11-22 01:31:18 +04:00
|
|
|
$(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CUDA_ARCH) -c $< -o $@
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/src/$(PROJECT)/util/%.cuo: src/$(PROJECT)/util/%.cu
|
|
|
|
$(CUDA_DIR)/bin/nvcc $(NVCCFLAGS) $(CUDA_ARCH) -c $< -o $@
|
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2014-02-25 10:45:29 +04:00
|
|
|
$(BUILD_DIR)/tools/%.o: tools/%.cpp
|
|
|
|
$(CXX) $< $(CXXFLAGS) -c -o $@ $(LDFLAGS)
|
|
|
|
@echo
|
|
|
|
|
2014-01-13 15:34:34 +04:00
|
|
|
$(BUILD_DIR)/examples/%.o: examples/%.cpp
|
|
|
|
$(CXX) $< $(CXXFLAGS) -c -o $@ $(LDFLAGS)
|
|
|
|
@echo
|
2013-09-16 22:25:43 +04:00
|
|
|
|
2013-11-20 03:05:39 +04:00
|
|
|
$(PROTO_GEN_PY): $(PROTO_SRCS)
|
|
|
|
protoc --proto_path=src --python_out=python $(PROTO_SRCS)
|
2014-01-13 15:34:34 +04:00
|
|
|
@echo
|
2013-11-20 03:05:39 +04:00
|
|
|
|
2014-01-13 16:25:30 +04:00
|
|
|
proto: $(PROTO_GEN_CC)
|
|
|
|
|
2013-09-13 04:10:48 +04:00
|
|
|
$(PROTO_GEN_CC): $(PROTO_SRCS)
|
2013-11-20 01:39:20 +04:00
|
|
|
protoc --proto_path=src --cpp_out=src $(PROTO_SRCS)
|
2014-01-13 15:34:34 +04:00
|
|
|
mkdir -p include/$(PROJECT)/proto
|
|
|
|
cp $(PROTO_GEN_HEADER) include/$(PROJECT)/proto/
|
|
|
|
@echo
|
2014-01-20 02:34:12 +04:00
|
|
|
|
2013-09-13 04:10:48 +04:00
|
|
|
clean:
|
2014-01-13 15:34:34 +04:00
|
|
|
@- $(RM) $(NAME) $(STATIC_NAME)
|
2013-09-17 22:47:03 +04:00
|
|
|
@- $(RM) $(PROTO_GEN_HEADER) $(PROTO_GEN_CC) $(PROTO_GEN_PY)
|
2014-01-13 15:34:34 +04:00
|
|
|
@- $(RM) include/$(PROJECT)/proto/$(PROJECT).pb.h
|
|
|
|
@- $(RM) python/$(PROJECT)/proto/$(PROJECT)_pb2.py
|
2014-02-03 14:41:04 +04:00
|
|
|
@- $(RM) python/$(PROJECT)/*.so
|
2014-01-13 15:34:34 +04:00
|
|
|
@- $(RM) -rf $(BUILD_DIR)
|
2014-01-13 16:42:01 +04:00
|
|
|
@- $(RM) -rf $(DISTRIBUTE_DIR)
|
2013-09-13 04:10:48 +04:00
|
|
|
|
2013-10-16 01:35:14 +04:00
|
|
|
distribute: all
|
2014-01-13 15:34:34 +04:00
|
|
|
mkdir $(DISTRIBUTE_DIR)
|
2013-11-22 01:31:18 +04:00
|
|
|
# add include
|
2014-01-13 15:34:34 +04:00
|
|
|
cp -r include $(DISTRIBUTE_DIR)/
|
2014-02-25 10:45:29 +04:00
|
|
|
# add tool and example binaries
|
2014-01-13 15:34:34 +04:00
|
|
|
mkdir $(DISTRIBUTE_DIR)/bin
|
2014-02-25 10:45:29 +04:00
|
|
|
cp $(TOOL_BINS) $(DISTRIBUTE_DIR)/bin
|
2014-01-13 15:34:34 +04:00
|
|
|
cp $(EXAMPLE_BINS) $(DISTRIBUTE_DIR)/bin
|
2013-11-22 01:31:18 +04:00
|
|
|
# add libraries
|
2014-01-13 15:34:34 +04:00
|
|
|
mkdir $(DISTRIBUTE_DIR)/lib
|
|
|
|
cp $(NAME) $(DISTRIBUTE_DIR)/lib
|
|
|
|
cp $(STATIC_NAME) $(DISTRIBUTE_DIR)/lib
|
2013-11-22 01:31:18 +04:00
|
|
|
# add python - it's not the standard way, indeed...
|
2014-01-13 15:34:34 +04:00
|
|
|
cp -r python $(DISTRIBUTE_DIR)/python
|