X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2FGNUmakefile;h=13930b9e29d38fa8708d2082a7536817fe0bb5ee;hb=07cba348de41ccb71a4707726b2f6c5510f33d49;hp=cf4db4c84a3a529f325b1a939547f2ca5233fc9d;hpb=19d1d093877debf9db78e660e33def64f23d7eed;p=lilypond.git diff --git a/lily/GNUmakefile b/lily/GNUmakefile index cf4db4c84a..13930b9e29 100644 --- a/lily/GNUmakefile +++ b/lily/GNUmakefile @@ -1,23 +1,42 @@ -# title makefile for lilypond -# file lily/Makefile depth = .. NAME = lilypond SUBDIRS = include -MODULE_LIBS=$(depth)/lib $(depth)/flower +MODULE_LIBS=$(depth)/flower $(depth)/ttftool $(depth)/kpath-guile +MODULE_INCLUDES= $(depth)/flower/include $(depth)/ttftool/include +MODULE_CXXFLAGS= +MODULE_LDFLAGS= -STEPMAKE_TEMPLATES= c++ executable + +HELP2MAN_EXECS = lilypond +STEPMAKE_TEMPLATES= c++ executable po help2man include $(depth)/make/stepmake.make -# 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)/lily-version.o: $(outdir)/version.hh -$(outdir)/main.o: $(outdir)/BLURB.hh $(outdir)/COPERTINA.hh $(outdir)/FLAPTEKST.hh +# for profiling, link guile statically: +# +# USER_LDFLAGS += -static -lltdl -ldl +# + +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)/lily-parser.o: $(outdir)/parser.hh +$(outdir)/lily-lexer.o: $(outdir)/parser.hh +$(outdir)/lexer.o: $(outdir)/parser.hh $(outdir)/version.hh + +$(outdir)/general-scheme.o: $(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