## -*-makefile-*- ## Copyright (C) 2016 and later: Unicode, Inc. and others. ## License & terms of use: http://www.unicode.org/copyright.html ## Cygwin-specific setup ## Copyright (c) 2001-2010, International Business Machines Corporation and ## others. All Rights Reserved.
## Flags to create/use a static library
ifneq ($(ENABLE_SHARED),YES) ## Make sure that the static libraries can be built and used
CPPFLAGS += -DU_STATIC_IMPLEMENTATION else ## Make sure that the static libraries can be built
STATICCPPFLAGS = -DU_STATIC_IMPLEMENTATION
endif
## ICU requires a minimum target of Windows 7, and WINVER is not set to this by default. ## https://msdn.microsoft.com/en-us/library/aa383745.aspx
CPPFLAGS += -DWINVER=0x0601 -D_WIN32_WINNT=0x0601
## Flags for position independent code
SHAREDLIBCFLAGS =
SHAREDLIBCXXFLAGS =
SHAREDLIBCPPFLAGS = -DPIC
## Additional flags when building libraries and with threads
THREADSCPPFLAGS = -D_REENTRANT
LIBCPPFLAGS =
# Commands to link. Link with C++ in casestatic libraries are used.
LINK.c= $(CXX) $(CXXFLAGS) $(LDFLAGS) #LINK.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS)
## Commands to make a shared library # $(subst) won't work in shell script. #M# at the end omits these # lines from the shell script (Make only)
SHLIB.c= $(CC) $(CFLAGS) $(LDFLAGS) -shared $(LD_SOOPTIONS) -Wl,--enable-auto-import -Wl,--out-implib=$(subst cyg,lib,$@).$(A)#Mjava.lang.NullPointerException
SHLIB.cc= $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(LD_SOOPTIONS) -Wl,--enable-auto-import -Wl,--out-implib=$(subst cyg,lib,$@).$(A)#Mjava.lang.NullPointerException # the #SH# lines don't go through further postprocessing. # so, they must be valid shell script starting from column 4 #SH#SHLIB_c="$(CC) $(CFLAGS) $(LDFLAGS) -shared " #SH#SHLIB_cc="$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared "
## Compiler switch to embed a runtime search path
LD_RPATH=
LD_RPATH_PRE= -Wl,-rpath,
## Compiler switch to embed a library name
LD_SONAME =
## Shared object suffix
SO = dll ## Non-shared intermediate object suffix
STATIC_O = ao
LIBICU = cyg$(ICUPREFIX) ## To have an import library is better on Cygwin
IMPORT_LIB_EXT = .dll.a
## Versioned target for a shared library. ## Since symbolic links don't work the same way on Windows, ## we only use the version major number. #FINAL_SO_TARGET=$(basename $(SO_TARGET))$(SO_TARGET_VERSION).$(SO)
FINAL_SO_TARGET=$(basename $(SO_TARGET))$(SO_TARGET_VERSION_MAJOR).$(SO)
MIDDLE_SO_TARGET=$(FINAL_SO_TARGET)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.