]> git.donarmstrong.com Git - lilypond.git/blob - lily/GNUmakefile
235dc8ad0feb30a1ec827a0432cb29fe37f50e62
[lilypond.git] / lily / GNUmakefile
1
2 depth = ..
3
4 NAME = lilypond
5 SUBDIRS = include
6
7 MODULE_LIBS=$(depth)/flower 
8 MODULE_INCLUDES= $(depth)/flower/include
9 MODULE_CXXFLAGS= 
10
11
12 HELP2MAN_EXECS = lilypond
13 STEPMAKE_TEMPLATES= c++ executable po help2man
14
15 include $(depth)/make/stepmake.make 
16
17 # for profiling, link guile statically:
18 #
19 # USER_LDFLAGS += -static -lltdl -ldl
20 #
21
22 ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *(\([^,]+\)/\1/'
23 ETAGS_FLAGS += --regex='{c++}/^LY_DEFINE *([^"]*"\([^"]+\)"/\1/'
24
25 default:
26
27 # force these: Make can't know these have to be generated in advance
28 $(outdir)/my-lily-parser.o: $(outdir)/parser.hh
29 $(outdir)/my-lily-lexer.o: $(outdir)/parser.hh
30 $(outdir)/lexer.o: $(outdir)/parser.hh $(outdir)/version.hh
31
32 $(outdir)/kpath.o: $(outdir)/version.hh
33 $(outdir)/lily-guile.o: $(outdir)/version.hh
34 $(outdir)/lily-version.o: $(outdir)/version.hh
35
36 # ugh.  For --srcdir builds, these must exist to satisfy their broken
37 # lexer.dep and parser.dep file entries.
38 ifneq ($(srcdir), .)
39 .PRECIOUS: $(outdir)/lexer.cc $(outdir)/parser.cc
40 endif