mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-05-01 13:12:30 +02:00
Merge remote-tracking branch 'purple/master'
This commit is contained in:
commit
39e24b97e1
3 changed files with 206 additions and 182 deletions
30
Makefile
30
Makefile
|
@ -1,12 +1,31 @@
|
|||
UNAME = $(shell uname -s)
|
||||
|
||||
I2PD_PATH = i2pd
|
||||
LIBI2PD_PATH = $(I2PD_PATH)/libi2pd
|
||||
LIBI2PD_CLIENT_PATH = $(I2PD_PATH)/libi2pd_client
|
||||
CXX = g++
|
||||
FLAGS = -g -Wall -std=c++11 -Wno-misleading-indentation
|
||||
FLAGS = -Wall -std=c++11 -Wno-misleading-indentation
|
||||
|
||||
ifeq ($(UNAME),Linux)
|
||||
FLAGS += -g
|
||||
else
|
||||
# Win32
|
||||
FLAGS += -Os -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN
|
||||
BOOST_SUFFIX = -mt
|
||||
endif
|
||||
|
||||
INCFLAGS = -I$(LIBI2PD_PATH) -I$(LIBI2PD_CLIENT_PATH) -I$(I2PD_PATH)
|
||||
CXXFLAGS = $(FLAGS) $(INCFLAGS)
|
||||
CXXFLAGS = $(FLAGS)
|
||||
LDFLAGS = -Wl,-rpath,/usr/local/lib
|
||||
LIBS = $(I2PD_PATH)/libi2pd.a -lboost_system -lboost_date_time -lboost_filesystem -lboost_program_options -lssl -lcrypto -lpthread -lrt -lz
|
||||
LIBS = $(I2PD_PATH)/libi2pd.a -lboost_system$(BOOST_SUFFIX) -lboost_date_time$(BOOST_SUFFIX) -lboost_filesystem$(BOOST_SUFFIX) -lboost_program_options$(BOOST_SUFFIX) -lssl -lcrypto -lz
|
||||
|
||||
ifeq ($(UNAME),Linux)
|
||||
LIBS += -lrt -lpthread
|
||||
else
|
||||
# Win32
|
||||
LIBS += -lws2_32 -lwsock32 -lgdi32 -liphlpapi -lstdc++ -lpthread
|
||||
LDFLAGS += -Wl,-Bstatic -static-libgcc -static-libstdc++
|
||||
endif
|
||||
|
||||
SOURCES = $(wildcard *.cpp)
|
||||
OBJECTS = $(SOURCES:.cpp=.o)
|
||||
|
@ -45,7 +64,7 @@ $(I2PD_LIB):
|
|||
$(MAKE) -C $(I2PD_PATH) mk_obj_dir $(I2PD_LIB)
|
||||
|
||||
%.o: %.cpp libi2pd.a
|
||||
$(CXX) -o $@ -c $(CXXFLAGS) $< $(INCFLAGS)
|
||||
$(CXX) -o $@ -c $(CXXFLAGS) $(INCFLAGS) $<
|
||||
|
||||
count:
|
||||
wc *.c *.cc *.C *.cpp *.h *.hpp
|
||||
|
@ -57,7 +76,8 @@ clean-obj:
|
|||
rm -f $(OBJECTS)
|
||||
|
||||
clean-bin:
|
||||
rm -f keyinfo keygen famtool regaddr routerinfo i2pbase64
|
||||
rm -f keyinfo keygen famtool regaddr routerinfo i2pbase64 vain
|
||||
|
||||
|
||||
clean: clean-i2pd clean-obj clean-bin
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue