7 MODULE_LIBS
=$(depth
)/flower
8 MODULE_INCLUDES
= $(depth
)/flower
/include
10 # need this to convert between function pointers and member function pointers.
11 MODULE_CXXFLAGS
= -Wno-pmf-conversions
14 HELP2MAN_EXECS
= lilypond
15 STEPMAKE_TEMPLATES
=c c
++ executable po help2man
17 # list parser.hh first: making parser.hh removes parser.cc
18 OUT_DIST_FILES
=$(addprefix $(outdir
)/,parser.hh parser.
cc)
20 include $(depth
)/make
/stepmake.make
22 ifeq ($(LINK_GXX_STATICALLY
),yes
)
23 MODULE_LDFLAGS
+= -L
$(outdir
) -static-libgcc
26 CXXFLAGS
+= -Woverloaded-virtual
29 # for profiling, link guile statically:
31 # CONFIG_LDFLAGS += -static -lltdl -ldl
34 ifeq ($(PLATFORM_WINDOWS
),yes
)
35 WINDRES_FLAGS
+= -DLilyPond
=0 -DLY
=1
36 O_FILES
+= $(outdir
)/lilypond.rc.o
37 $(outdir
)/lilypond
: $(outdir
)/lilypond.rc.o
39 $(outdir
)/lilypond.rc.o
: $(outdir
)/lilypond.ico
$(outdir
)/ly.ico
40 $(top-build-dir
)/Documentation
/logo
/$(outbase
)/lilypond.ico
:
41 $(MAKE
) -C
$(top-build-dir
)/Documentation
/logo
43 $(outdir
)/lilypond.ico
: $(top-build-dir
)/Documentation
/logo
/$(outbase
)/lilypond.ico
45 $(top-build-dir
)/Documentation
/logo
/$(outbase
)/ly.ico
:
46 $(MAKE
) -C
$(top-build-dir
)/Documentation
/logo
48 $(outdir
)/ly.ico
: $(top-build-dir
)/Documentation
/logo
/$(outbase
)/ly.ico
52 ETAGS_FLAGS
+= --regex
='{c++}/^LY_DEFINE *(\([^,]+\)/\1/'
53 ETAGS_FLAGS
+= --regex
='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\1/'
58 $(outdir
)/libstdc
++.a
:
60 ln
-s
`$(CXX) -print-file-name=libstdc++.a` $(outdir
)/
62 ifeq ($(LINK_GXX_STATICALLY
),yes
)
63 $(outdir
)/lilypond
: $(outdir
)/libstdc
++.a
66 # force these: Make can't know these have to be generated in advance
67 $(outdir
)/lily-parser.o
: $(outdir
)/parser.hh
68 $(outdir
)/lily-lexer.o
: $(outdir
)/parser.hh
$(outdir
)/FlexLexer.h
69 $(outdir
)/lexer.o
: $(outdir
)/parser.hh
$(outdir
)/version.hh
71 ifneq ($(FLEXLEXER_FILE
),)
72 $(outdir
)/FlexLexer.h
: $(FLEXLEXER_FILE
) $(config_h
)
76 $(outdir
)/lexer.
cc: $(config_h
)
77 $(outdir
)/parser.
cc: $(config_h
)
79 $(outdir
)/general-scheme.o
: $(outdir
)/version.hh
80 $(outdir
)/lily-guile.o
: $(outdir
)/version.hh
81 $(outdir
)/lily-version.o
: $(outdir
)/version.hh
83 local-po
: $(outdir
)/parser.
cc
85 # ugh. For --srcdir builds, these must exist to satisfy their broken
86 # lexer.dep and parser.dep file entries.
87 ifneq ($(configure-srcdir
),.
)
88 .PRECIOUS
: $(outdir
)/lexer.
cc $(outdir
)/parser.
cc