Browse Source

Building on OS X: Initial documentation

no_SessionID_in_API
Dirk Zimmermann 6 years ago
parent
commit
6d3f19a2be
3 changed files with 52 additions and 2 deletions
  1. +17
    -0
      .hgignore
  2. +33
    -0
      README-OSX.md
  3. +2
    -2
      server/Makefile

+ 17
- 0
.hgignore View File

@ -0,0 +1,17 @@
syntax: glob
.DS_Store
*.o
*.Po
*.Plo
*.pc
libevent-*-stable/Makefile
libevent-*-stable/config.h
libevent-*-stable/config.log
libevent-*-stable/config.status
libevent-*-stable/include/Makefile
libevent-*-stable/libtool
libevent-*-stable/sample/Makefile
libevent-*-stable/stamp-h1
libevent-*-stable/test/Makefile

+ 33
- 0
README-OSX.md View File

@ -0,0 +1,33 @@
# Building libevent on OS X
## MacPorts
Install [MacPorts](https://www.macports.org/) for your
[version of OS X/macOS](https://www.macports.org/install.php).
Note that you need [Xcode installed](https://www.macports.org/install.php)
for MacPorts, and for building the engine. You also need to accept Xcode's EULA.
```
sudo port install openssl
sudo port install boost
```
## libevent
```
export LDFLAGS=-L/opt/local
export CFLAGS=-I/opt/local/include
./configure --prefix $HOME
make
make install
```
## server/Makefile
```
cd server
make
```

+ 2
- 2
server/Makefile View File

@ -1,7 +1,7 @@
.PHONY: all clear
CXXFLAGS = -Wall -O0 -std=c++11 -g -I/home/deb/local/include/ -Ijson_spirit -fstack-protector-all
LDFLAGS = -L/home/deb/local/lib -lpthread -levent -lpEpEngine -lgpgme-pthread -letpan -lboost_system -lboost_filesystem
CXXFLAGS = -Wall -O0 -std=c++11 -g -I/opt/local/include -I$(HOME)/include -I/home/deb/local/include/ -Ijson_spirit -fstack-protector-all
LDFLAGS = -L/opt/local/lib -L$(HOME)/lib -L/home/deb/local/lib -lpthread -levent -lpEpEngine -lgpgme-pthread -letpan -lboost_system -lboost_filesystem
all: mt-server


Loading…
Cancel
Save