Makefile tweak for static library linkiing of OS X App bundle

This commit is contained in:
Tim Warren 2015-04-30 12:08:35 -04:00
parent cf62f09bc4
commit 2f8b3ee6bc
1 changed files with 3 additions and 3 deletions

View File

@ -29,19 +29,19 @@ else
WX_LDLIBS = $(shell wx-config --libs base core aui stc adv) WX_LDLIBS = $(shell wx-config --libs base core aui stc adv)
endif endif
LDLIBS += -lssh2
# Platform compiler flags # Platform compiler flags
ifeq ($(OS),Darwin) ifeq ($(OS),Darwin)
CXX = clang++ -std=c++98 -mmacosx-version-min=10.5 CXX = clang++ -std=c++98 -mmacosx-version-min=10.5
LDLIBS += /usr/local/lib/libssh2.a
endif endif
ifeq ($(OS),Linux) ifeq ($(OS),Linux)
CXX += -std=c++11 CXX += -std=c++11
LDLIBS += -lssh2
endif endif
ifeq ($(OS),Windows_NT) ifeq ($(OS),Windows_NT)
CXXFLAGS = -DNDEBUG -DSTATIC_BUILD -static CXXFLAGS = -DNDEBUG -DSTATIC_BUILD -static
CXX += -I/include -DWIN32 CXX += -I/include -DWIN32
LDLIBS += -L/lib -lwsock32 LDLIBS += -L/lib -lwsock32 -lssh2
endif endif
CXX += -I include -I. CXX += -I include -I.