optimize makefile

Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2020-08-17 11:43:35 +00:00
parent 259a9de034
commit 3b89468ad3
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
2 changed files with 3 additions and 6 deletions

View File

@ -8,14 +8,12 @@ SYG_SRC = sygcpp.cpp
SYGCPP = sygcpp
ifeq ($(DEBUG),yes)
CXX_DEBUG = -g
CXXFLAGS := -g
else
LD_DEBUG = -s -Os
LDFLAGS := -s -Os
endif
CXXFLAGS = $(CXX_DEBUG) -fPIC
LDFLAGS = $(LD_DEBUG)
CXXFLAGS += -fPIC
SYG_OBJS = $(patsubst %.cpp,obj/%.o,$(SYG_SRC))
ifneq (, $(findstring mingw, $(SYS))$(findstring cygwin, $(SYS)))

View File

@ -1,5 +1,4 @@
WINDRES = windres
SYG_RC = windows/resource.rc
LDFLAGS += -Wl,-Bstatic