X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2FGNUmakefile;h=a306551671af3a74cb8a2bafd7cf3e11d189f567;hb=feef5e0d897345a88595671e0f54e1127a20d09f;hp=ed402017d48562fbc82772af64a60df33376241b;hpb=f2cf49666f83640d0cb43322e927e430a4f97d6f;p=lilypond.git diff --git a/lily/GNUmakefile b/lily/GNUmakefile index ed402017d4..a306551671 100644 --- a/lily/GNUmakefile +++ b/lily/GNUmakefile @@ -1,26 +1,40 @@ depth = .. -NAME = lilypond +NAME = lilypond-bin SUBDIRS = include MODULE_LIBS=$(depth)/flower MODULE_INCLUDES= $(depth)/flower/include -MODULE_CXXFLAGS= -HELP2MAN_EXECS = lilypond +MODULE_CXXFLAGS= + + +HELP2MAN_EXECS = lilypond-bin STEPMAKE_TEMPLATES= c++ executable po help2man include $(depth)/make/stepmake.make -ETAGS_FLAGS += -r '/^LY_DEFINE *(\([^,]+\),/\1/' -r '/^LY_DEFINE *([^,]+, *"\([^"]+\)"/\1/' +# for profiling, link guile statically: +# +# USER_LDFLAGS += -static -lltdl -ldl +# -default: +ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *(\([^,]+\)/\1/' +ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\1/' + +default: # force these: Make can't know these have to be generated in advance $(outdir)/my-lily-parser.o: $(outdir)/parser.hh $(outdir)/my-lily-lexer.o: $(outdir)/parser.hh -$(outdir)/lexer.o: $(outdir)/parser.hh +$(outdir)/lexer.o: $(outdir)/parser.hh $(outdir)/version.hh $(outdir)/kpath.o: $(outdir)/version.hh $(outdir)/lily-guile.o: $(outdir)/version.hh $(outdir)/lily-version.o: $(outdir)/version.hh + +# ugh. For --srcdir builds, these must exist to satisfy their broken +# lexer.dep and parser.dep file entries. +ifneq ($(srcdir), .) +.PRECIOUS: $(outdir)/lexer.cc $(outdir)/parser.cc +endif