2 ifeq ($(CYGWIN_BUILD)$(MINGW_BUILD),)
3 SHARED_LIB_PREFIX = lib
4 SHARED_LIB_SUFFIX = .so
5 SHARED_LIB_VERSION = $(VERSION)
6 SHARED_LIB_VERSION_SUFFIX =
8 ifneq ($(CYGWIN_BUILD),)
9 SHARED_LIB_PREFIX = cyg
11 SHARED_LIB_VERSION = $(subst .,-,$(VERSION))
12 SHARED_LIB_VERSION_SUFFIX = .dll
13 # ALL_LDFLAGS += -Wl,--image-base=0x10000000 -Wl,--out-implib,lib$(NAME).a
14 ALL_LDFLAGS += -Wl,--enable-auto-image-base -Wl,--out-implib,lib$(NAME).a
16 ifneq ($(MINGW_BUILD),)
17 SHARED_LIB_PREFIX = lib
19 SHARED_LIB_VERSION = $(subst .,-,$(VERSION))
20 SHARED_LIB_VERSION_SUFFIX = .dll
21 ## ALL_LDFLAGS += -Wl,--image-base=0x10000000 -Wl,--out-implib,lib$(NAME).a
22 ALL_LDFLAGS += -Wl,--out-implib,lib$(NAME).a
26 INSTALL_SHARED_LIBRARY = $(SHARED_LIB_PREFIX)$(NAME)$(SHARED_LIB_SUFFIX)$(SHARED_LIB_VERSION)$(SHARED_LIB_VERSION_SUFFIX)
27 SHARED_LIBRARY = $(outdir)/$(INSTALL_SHARED_LIBRARY)
30 lo-dep-out = $(outdir)/$(subst .lo,.dep,$(notdir $@))#
31 DO_LO_DEP = rm -f $(lo-dep-out); DEPENDENCIES_OUTPUT="$(lo-dep-out) $(outdir)/$(notdir $@)"
33 LO_FILES += $(addprefix $(outdir)/, $(Y_FILES:.y=.lo) $(C_FILES:.c=.lo) $(L_FILES:.l=.lo))