optimize makefile
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
259a9de034
commit
3b89468ad3
8
Makefile
8
Makefile
@ -8,14 +8,12 @@ SYG_SRC = sygcpp.cpp
|
|||||||
SYGCPP = sygcpp
|
SYGCPP = sygcpp
|
||||||
|
|
||||||
ifeq ($(DEBUG),yes)
|
ifeq ($(DEBUG),yes)
|
||||||
CXX_DEBUG = -g
|
CXXFLAGS := -g
|
||||||
else
|
else
|
||||||
LD_DEBUG = -s -Os
|
LDFLAGS := -s -Os
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CXXFLAGS = $(CXX_DEBUG) -fPIC
|
CXXFLAGS += -fPIC
|
||||||
LDFLAGS = $(LD_DEBUG)
|
|
||||||
|
|
||||||
SYG_OBJS = $(patsubst %.cpp,obj/%.o,$(SYG_SRC))
|
SYG_OBJS = $(patsubst %.cpp,obj/%.o,$(SYG_SRC))
|
||||||
|
|
||||||
ifneq (, $(findstring mingw, $(SYS))$(findstring cygwin, $(SYS)))
|
ifneq (, $(findstring mingw, $(SYS))$(findstring cygwin, $(SYS)))
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
WINDRES = windres
|
WINDRES = windres
|
||||||
|
|
||||||
SYG_RC = windows/resource.rc
|
SYG_RC = windows/resource.rc
|
||||||
|
|
||||||
LDFLAGS += -Wl,-Bstatic
|
LDFLAGS += -Wl,-Bstatic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user