|
|
@ -1,4 +1,4 @@ |
|
|
|
UNAME := $(shell uname -s) |
|
|
|
SYS := $(shell $(CXX) -dumpmachine) |
|
|
|
SHLIB := libi2pd.so |
|
|
|
SHLIB := libi2pd.so |
|
|
|
ARLIB := libi2pd.a |
|
|
|
ARLIB := libi2pd.a |
|
|
|
SHLIB_CLIENT := libi2pdclient.so |
|
|
|
SHLIB_CLIENT := libi2pdclient.so |
|
|
@ -23,22 +23,24 @@ ifeq ($(WEBSOCKETS),1) |
|
|
|
NEEDED_CXXFLAGS += -DWITH_EVENTS |
|
|
|
NEEDED_CXXFLAGS += -DWITH_EVENTS |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(UNAME),Darwin) |
|
|
|
ifneq (, $(findstring darwin, $(SYS))) |
|
|
|
DAEMON_SRC += $(DAEMON_SRC_DIR)/UnixDaemon.cpp |
|
|
|
DAEMON_SRC += $(DAEMON_SRC_DIR)/UnixDaemon.cpp |
|
|
|
ifeq ($(HOMEBREW),1) |
|
|
|
ifeq ($(HOMEBREW),1) |
|
|
|
include Makefile.homebrew |
|
|
|
include Makefile.homebrew |
|
|
|
else |
|
|
|
else |
|
|
|
include Makefile.osx |
|
|
|
include Makefile.osx |
|
|
|
endif |
|
|
|
endif |
|
|
|
else ifeq ($(shell echo $(UNAME) | $(GREP) -Ec '(Free|Open)BSD'),1) |
|
|
|
else ifneq (, $(findstring freebsd, $(SYS))$(findstring openbsd, $(SYS))) |
|
|
|
DAEMON_SRC += $(DAEMON_SRC_DIR)/UnixDaemon.cpp |
|
|
|
DAEMON_SRC += $(DAEMON_SRC_DIR)/UnixDaemon.cpp |
|
|
|
include Makefile.bsd |
|
|
|
include Makefile.bsd |
|
|
|
else ifeq ($(UNAME),Linux) |
|
|
|
else ifneq (, $(findstring linux, $(SYS))) |
|
|
|
DAEMON_SRC += $(DAEMON_SRC_DIR)/UnixDaemon.cpp |
|
|
|
DAEMON_SRC += $(DAEMON_SRC_DIR)/UnixDaemon.cpp |
|
|
|
include Makefile.linux |
|
|
|
include Makefile.linux |
|
|
|
else |
|
|
|
else ifneq (, $(findstring mingw, $(SYS))$(findstring cygwin, $(SYS))) |
|
|
|
DAEMON_SRC += Win32/DaemonWin32.cpp Win32/Win32Service.cpp Win32/Win32App.cpp |
|
|
|
DAEMON_SRC += Win32/DaemonWin32.cpp Win32/Win32Service.cpp Win32/Win32App.cpp |
|
|
|
include Makefile.mingw |
|
|
|
include Makefile.mingw |
|
|
|
|
|
|
|
else # not supported
|
|
|
|
|
|
|
|
$(error Not supported platform) |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(USE_MESHNET),yes) |
|
|
|
ifeq ($(USE_MESHNET),yes) |
|
|
|