1 # project LilyPond -- the musical typesetter # title makefile for lilypond
2 # file lily/Makefile.am.wild
4 # Copyright (c) 1997 by
5 # Jan Nieuwenhuizen <jan@digicash.com>
6 # Han-Wen Nienhuys <hanwen@stack.nl>
11 bin_PROGRAMS = lilypond
13 nowildcard: lexer.cc parser.cc
15 lilypond_SOURCES = $(wildcard *.cc *.ll *.yy)
17 # howto do this? info is not all that clear...
18 # OMIT_DEPENDENCIES = lexer.cc parser.cc
19 # lilypond_OMIT_DEPENDENCIES = lexer.cc parser.cc
20 # lilypondOMIT_DEPENDENCIES = lexer.cc parser.cc
22 noinst_HEADERS = parser.hh
24 #lilypond_LDADD = -llily -lflower @LEXLIB@
25 lilypond_LDADD = $(top_builddir)/lib/liblily.la $(top_builddir)/flower/libflower.la @LEXLIB@
27 lilypond_LDFLAGS = -L$(absolute_builddir)/lib/.libs -L$(absolute_builddir)/flower/.libs
29 INCLUDES = -I$(top_srcdir)/lily/include -I$(top_srcdir)/lib/include -I$(top_srcdir)/flower/include
31 EXTRA_DIST = Makefile.am.wild GNUmakefile Stable.make VERSION
33 # force these: Make can't know these have to be generated in advance
34 my-lily-lexer.cc: parser.hh
37 # ugh, autoconf assumes to get $(LEX_OUTPUT_ROOT).c ...
39 @echo "must override autoconf; ignore warning"
40 $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).cc $@
45 mv $<.tab.c $(shell basename $@ .hh).cc
50 # override default target for all-am: to get an extra dependency
51 all-am: Makefile $(PROGRAMS) wild-check
53 # dummy target for non-GNU makes; is overridden in GNUmakefile
56 # dummy target for non-GNU makes; is overridden in GNUmakefile