lilypond-0.1.58
[lilypond.git] / lily / Makefile.am.wild
blob35e6cd2e65a43d92c91c61a312451058b74bcd6e
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>
9 SUBDIRS = include
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
35 lexer.cc: parser.hh
37 # ugh, autoconf assumes to get $(LEX_OUTPUT_ROOT).c ...
38 .ll.cc:
39         @echo "must override autoconf; ignore warning"
40         $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).cc $@
41 #.yy.hh:
42 parser.hh: parser.yy
43         $(BISON) -d $<
44         mv $<.tab.h $@
45         mv $<.tab.c $(shell basename $@ .hh).cc
47 distclean-local:
48         -rm -rf .deps
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
54 wild-check:
56 # dummy target for non-GNU makes; is overridden in GNUmakefile
57 make-in-build: