]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/stepmake/shared-library-vars.make
Issue 4485: Refactor \partcombine and \autochange iterators
[lilypond.git] / stepmake / stepmake / shared-library-vars.make
1
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 =
7 else
8 ifneq ($(CYGWIN_BUILD),)
9   SHARED_LIB_PREFIX = cyg
10   SHARED_LIB_SUFFIX =
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
15 endif
16 ifneq ($(MINGW_BUILD),)
17   SHARED_LIB_PREFIX = lib
18   SHARED_LIB_SUFFIX =
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
23 endif
24 endif
25
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)
28
29
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 $@)"
32
33 LO_FILES += $(addprefix $(outdir)/, $(Y_FILES:.y=.lo) $(C_FILES:.c=.lo) $(L_FILES:.l=.lo))