1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-30 16:34:29 +00:00

update unix daemon makefile

This commit is contained in:
R4SAS 2017-05-01 22:25:34 +03:00
parent 0096e77652
commit 696a616323

View File

@ -42,10 +42,10 @@ TESTLIBS += \
-l boost_unit_test_framework$(BOOST_LIB_SUFFIX) -l boost_unit_test_framework$(BOOST_LIB_SUFFIX)
ifneq (${USE_IPV6}, -) ifneq (${USE_IPV6}, -)
DEFS += -DUSE_IPV6=$(USE_IPV6) DEFS += -DUSE_IPV6=$(USE_IPV6)
endif endif
LIBS+= \ LIBS += \
-Wl,-B$(LMODE2) \ -Wl,-B$(LMODE2) \
-l z \ -l z \
-l dl \ -l dl \
@ -85,19 +85,20 @@ LIBS+= \
HARDENING+=-D_FORTIFY_SOURCE=2 HARDENING+=-D_FORTIFY_SOURCE=2
# #
ifneq (${USE_DEBUG}, no)
DEBUGFLAGS=-g DEBUGFLAGS=-g
endif
# CXXFLAGS can be specified on the make command line, so we use xCXXFLAGS that only # CXXFLAGS can be specified on the make command line, so we use xCXXFLAGS that only
# adds some defaults in front. Unfortunately, CXXFLAGS=... $(CXXFLAGS) does not work. # adds some defaults in front. Unfortunately, CXXFLAGS=... $(CXXFLAGS) does not work.
xCXXFLAGS=-std=c++11 -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \ xCXXFLAGS = -std=c++11 -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
$(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS) $(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS)
# LDFLAGS can be specified on the make command line, so we use xLDFLAGS that only # LDFLAGS can be specified on the make command line, so we use xLDFLAGS that only
# adds some defaults in front. Unfortunately, LDFLAGS=... $(LDFLAGS) does not work. # adds some defaults in front. Unfortunately, LDFLAGS=... $(LDFLAGS) does not work.
xLDFLAGS=$(LDHARDENING) $(LDFLAGS) xLDFLAGS=$(LDHARDENING) $(LDFLAGS)
OBJS= \ OBJS = \
../i2psam/libi2psam.a \ ../i2psam/libi2psam.a \
leveldb/libleveldb.a \ leveldb/libleveldb.a \
obj/alert.o \ obj/alert.o \
@ -185,7 +186,6 @@ obj/%.o: %.cpp
rm -f $(@:%.o=%.d) rm -f $(@:%.o=%.d)
gostcoind: $(OBJS:obj/%=obj/%) gostcoind: $(OBJS:obj/%=obj/%)
@(cd ../i2psam; make -f makefile.unix )
$(LINK) $(xCXXFLAGS) -o $@ $^ $(xLDFLAGS) $(LIBS) $(LINK) $(xCXXFLAGS) -o $@ $^ $(xLDFLAGS) $(LIBS)
TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp)) TESTOBJS := $(patsubst test/%.cpp,obj-test/%.o,$(wildcard test/*.cpp))