|
|
@ -5,10 +5,13 @@ SHLIB_LANG := libi2pdlang.so |
|
|
|
ARLIB_LANG := libi2pdlang.a |
|
|
|
ARLIB_LANG := libi2pdlang.a |
|
|
|
SHLIB_CLIENT := libi2pdclient.so |
|
|
|
SHLIB_CLIENT := libi2pdclient.so |
|
|
|
ARLIB_CLIENT := libi2pdclient.a |
|
|
|
ARLIB_CLIENT := libi2pdclient.a |
|
|
|
|
|
|
|
SHLIB_WRAP := libi2pdwrapper.so |
|
|
|
|
|
|
|
ARLIB_WRAP := libi2pdwrapper.a |
|
|
|
I2PD := i2pd |
|
|
|
I2PD := i2pd |
|
|
|
|
|
|
|
|
|
|
|
LIB_SRC_DIR := libi2pd |
|
|
|
LIB_SRC_DIR := libi2pd |
|
|
|
LIB_CLIENT_SRC_DIR := libi2pd_client |
|
|
|
LIB_CLIENT_SRC_DIR := libi2pd_client |
|
|
|
|
|
|
|
WRAP_SRC_DIR := libi2pd_wrapper |
|
|
|
LANG_SRC_DIR := i18n |
|
|
|
LANG_SRC_DIR := i18n |
|
|
|
DAEMON_SRC_DIR := daemon |
|
|
|
DAEMON_SRC_DIR := daemon |
|
|
|
|
|
|
|
|
|
|
@ -56,6 +59,7 @@ NEEDED_CXXFLAGS += -MMD -MP -I$(LIB_SRC_DIR) -I$(LIB_CLIENT_SRC_DIR) -I$(LANG_SR |
|
|
|
|
|
|
|
|
|
|
|
LIB_OBJS += $(patsubst %.cpp,obj/%.o,$(LIB_SRC)) |
|
|
|
LIB_OBJS += $(patsubst %.cpp,obj/%.o,$(LIB_SRC)) |
|
|
|
LIB_CLIENT_OBJS += $(patsubst %.cpp,obj/%.o,$(LIB_CLIENT_SRC)) |
|
|
|
LIB_CLIENT_OBJS += $(patsubst %.cpp,obj/%.o,$(LIB_CLIENT_SRC)) |
|
|
|
|
|
|
|
WRAP_LIB_OBJS += $(patsubst %.cpp,obj/%.o,$(WRAP_LIB_SRC)) |
|
|
|
LANG_OBJS += $(patsubst %.cpp,obj/%.o,$(LANG_SRC)) |
|
|
|
LANG_OBJS += $(patsubst %.cpp,obj/%.o,$(LANG_SRC)) |
|
|
|
DAEMON_OBJS += $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC)) |
|
|
|
DAEMON_OBJS += $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC)) |
|
|
|
DEPS += $(LIB_OBJS:.o=.d) $(LIB_CLIENT_OBJS:.o=.d) $(LANG_OBJS:.o=.d) $(DAEMON_OBJS:.o=.d) |
|
|
|
DEPS += $(LIB_OBJS:.o=.d) $(LIB_CLIENT_OBJS:.o=.d) $(LANG_OBJS:.o=.d) $(DAEMON_OBJS:.o=.d) |
|
|
@ -68,11 +72,13 @@ mk_obj_dir: |
|
|
|
@mkdir -p obj/$(LIB_SRC_DIR) |
|
|
|
@mkdir -p obj/$(LIB_SRC_DIR) |
|
|
|
@mkdir -p obj/$(LIB_CLIENT_SRC_DIR) |
|
|
|
@mkdir -p obj/$(LIB_CLIENT_SRC_DIR) |
|
|
|
@mkdir -p obj/$(LANG_SRC_DIR) |
|
|
|
@mkdir -p obj/$(LANG_SRC_DIR) |
|
|
|
|
|
|
|
@mkdir -p obj/$(WRAP_SRC_DIR) |
|
|
|
@mkdir -p obj/$(DAEMON_SRC_DIR) |
|
|
|
@mkdir -p obj/$(DAEMON_SRC_DIR) |
|
|
|
|
|
|
|
|
|
|
|
api: mk_obj_dir $(SHLIB) $(ARLIB) |
|
|
|
api: mk_obj_dir $(SHLIB) $(ARLIB) |
|
|
|
client: mk_obj_dir $(SHLIB_CLIENT) $(ARLIB_CLIENT) |
|
|
|
client: mk_obj_dir $(SHLIB_CLIENT) $(ARLIB_CLIENT) |
|
|
|
api_client: mk_obj_dir $(SHLIB) $(ARLIB) $(SHLIB_CLIENT) $(ARLIB_CLIENT) |
|
|
|
api_client: mk_obj_dir $(SHLIB) $(ARLIB) $(SHLIB_CLIENT) $(ARLIB_CLIENT) |
|
|
|
|
|
|
|
wrapper: api_client $(SHLIB_WRAP) $(ARLIB_WRAP) |
|
|
|
langs: mk_obj_dir $(LANG_OBJS) $(SHLIB_LANG) $(ARLIB_LANG) |
|
|
|
langs: mk_obj_dir $(LANG_OBJS) $(SHLIB_LANG) $(ARLIB_LANG) |
|
|
|
|
|
|
|
|
|
|
|
## NOTE: The NEEDED_CXXFLAGS are here so that CXXFLAGS can be specified at build time
|
|
|
|
## NOTE: The NEEDED_CXXFLAGS are here so that CXXFLAGS can be specified at build time
|
|
|
@ -101,6 +107,11 @@ ifneq ($(USE_STATIC),yes) |
|
|
|
$(CXX) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS) $(SHLIB) |
|
|
|
$(CXX) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS) $(SHLIB) |
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(SHLIB_WRAP): $(WRAP_LIB_OBJS) |
|
|
|
|
|
|
|
ifneq ($(USE_STATIC),yes) |
|
|
|
|
|
|
|
$(CXX) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS) |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
$(SHLIB_LANG): $(LANG_OBJS) |
|
|
|
$(SHLIB_LANG): $(LANG_OBJS) |
|
|
|
ifneq ($(USE_STATIC),yes) |
|
|
|
ifneq ($(USE_STATIC),yes) |
|
|
|
$(CXX) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS) |
|
|
|
$(CXX) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS) |
|
|
@ -112,6 +123,9 @@ $(ARLIB): $(LIB_OBJS) |
|
|
|
$(ARLIB_CLIENT): $(LIB_CLIENT_OBJS) |
|
|
|
$(ARLIB_CLIENT): $(LIB_CLIENT_OBJS) |
|
|
|
$(AR) -r $@ $^ |
|
|
|
$(AR) -r $@ $^ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(ARLIB_WRAP): $(LIB_OBJS) |
|
|
|
|
|
|
|
$(AR) -r $@ $^ |
|
|
|
|
|
|
|
|
|
|
|
$(ARLIB_LANG): $(LANG_OBJS) |
|
|
|
$(ARLIB_LANG): $(LANG_OBJS) |
|
|
|
$(AR) -r $@ $^ |
|
|
|
$(AR) -r $@ $^ |
|
|
|
|
|
|
|
|
|
|
|