Browse Source

optimize makefile

Signed-off-by: r4sas <r4sas@i2pmail.org>
master
R4SAS 4 years ago
parent
commit
3b89468ad3
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 8
      Makefile
  2. 1
      Makefile.mingw

8
Makefile

@ -8,14 +8,12 @@ SYG_SRC = sygcpp.cpp @@ -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)))

1
Makefile.mingw

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

Loading…
Cancel
Save