Fixes Issue 1504, allowing feather beam line breaking.
[lilypond/patrick.git] / lily / GNUmakefile
blob4056eefb938bf6de297735f2202a6d44f8802be2
2 depth = ..
4 NAME = lilypond
5 SUBDIRS = include
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
24 endif
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
44 cp $< $@
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
49 cp $< $@
50 endif
52 ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *(\([^,]+\)/\1/'
53 ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\1/'
55 default:
58 $(outdir)/libstdc++.a:
59 rm -f $@
60 ln -s `$(CXX) -print-file-name=libstdc++.a` $(outdir)
62 ifeq ($(LINK_GXX_STATICALLY),yes)
63 $(outdir)/lilypond: $(outdir)/libstdc++.a
64 endif
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)
73 cp $< $@
74 endif
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
89 endif