Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #40 from hipboi/master
Browse files Browse the repository at this point in the history
Build for mac osx
  • Loading branch information
GangZhuo committed Jan 14, 2016
2 parents 7b7170a + 2098971 commit e2cc31d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ C/C++写的一个百度网盘工具,可以在linux终端中使用。

#### 下载 [适用Windows的预编译版本] 或 下载 .net4.0 带窗体版本 [BaiduCloudDisk for .Net 4.0]

编译 (Mac):
===================================
### 1. 获取源代码
git clone https://github.com/GangZhuo/BaiduPCS.git
### 2. 安装依赖
brew install openssl
### 3. 编译源代码
cd BaiduPCS
make clean
make
make install #将安装到/usr/local/bin下
### 4. 手动安装到其他目录,例如 /usr/bin 下
cp ./bin/pcs /usr/bin/

编译 (Openwrt):
===================================
### 进入 [Openwrt SDK] 目录,然后执行如下命令:
Expand Down
6 changes: 3 additions & 3 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ CYGWIN_CCFLAGS =
endif

ifeq ($(LC_OS_NAME), darwin)
APPLE_CCFLAGS = -largp
APPLE_CCFLAGS = -I/usr/local/opt/openssl/include
else
APPLE_CCFLAGS =
endif
Expand All @@ -26,7 +26,7 @@ else
CCFLAGS:=-g -D_FILE_OFFSET_BITS=64 -DDEBUG -D_DEBUG
endif

PCS_CCFLAGS = -fPIC $(CCFLAGS)
PCS_CCFLAGS = -fPIC $(CCFLAGS) $(CYGWIN_CCFLAGS) $(APPLE_CCFLAGS)

all: bin/libpcs.a bin/pcs

Expand Down Expand Up @@ -102,7 +102,7 @@ uninstall4-dev:

.PHONY : clean
clean :
-rm ./bin/*.o ./bin/*.so ./bin/libpcs.a ./bin/pcs
-rm -f ./bin/*.o ./bin/*.so ./bin/libpcs.a ./bin/pcs

.PHONY : pre
pre :
Expand Down

0 comments on commit e2cc31d

Please sign in to comment.