forked from libswift/libswift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.mac
18 lines (12 loc) · 1.15 KB
/
Makefile.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
LIBEVENT_HOME=/Users/tribler/Workspace/install/libevent-2.0.21-stable
OPENSSL_HOME=/Users/tribler/Workspace/install/openssl-1.0.1h
# Remove NDEBUG define to trigger asserts
CPPFLAGS+=-O2 -I. -DNDEBUG -DOPENSSL -Wall -Wno-sign-compare -Wno-unused -g -I${LIBEVENT_HOME}/include -I${OPENSSL_HOME}/include -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.5 -DMAC_OS_X_VERSION_MIN_REQUIRED=1050
LDFLAGS+=-L${LIBEVENT_HOME}/lib -L${OPENSSL_HOME}/lib -levent -lssl -lcrypto -lstdc++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.5 -DMAC_OS_X_VERSION_MIN_REQUIRED=1050
all: swift
swift: swift.o sha1.o compat.o sendrecv.o send_control.o hashtree.o bin.o binmap.o channel.o transfer.o httpgw.o statsgw.o cmdgw.o avgspeed.o avail.o storage.o zerostate.o zerohashtree.o livehashtree.o live.o api.o content.o swarmmanager.o address.o livesig.o exttrack.o
#nat_test.o
g++ ${CPPFLAGS} -o swift *.o ${LDFLAGS}
clean:
rm *.o swift 2>/dev/null
.PHONY: all clean