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)
16 noinst_HEADERS = parser.hh
18 #lilypond_LDADD = -llily -lflower @LEXLIB@
19 lilypond_LDADD = $(top_builddir)/lib/liblily.la $(top_builddir)/flower/libflower.la @LEXLIB@
21 lilypond_LDFLAGS = -L$(absolute_builddir)/lib/.libs -L$(absolute_builddir)/flower/.libs
23 INCLUDES = -I$(srcdir)/include -I$(srcdir)/../lib/include -I$(srcdir)/../flower/include
25 EXTRA_DIST = Makefile.am.wild GNUmakefile Stable.make VERSION
27 # force these: Make can't know these have to be generated in advance
28 my-lily-lexer.cc: parser.hh
31 # ugh, autoconf assumes to get $(LEX_OUTPUT_ROOT).c ...
33 @echo "must override autoconf; ignore warning"
34 $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).cc $@
39 mv $<.tab.c $(shell basename $@ .hh).cc
41 # override default target for all-am: to get an extra dependency
42 all-am: Makefile $(PROGRAMS) wild-check
44 # dummy target for non-GNU makes; is overridden in GNUmakefile