]> git.donarmstrong.com Git - lilypond.git/blob - lily/Makefile.am.wild
partial: 0.1.57.jcn
[lilypond.git] / lily / Makefile.am.wild
1 # project  LilyPond -- the musical typesetter # title      makefile for lilypond
2 # file     lily/Makefile.am.wild
3 #
4 # Copyright (c) 1997 by
5 #       Jan Nieuwenhuizen <jan@digicash.com>
6 #       Han-Wen Nienhuys <hanwen@stack.nl>
7 #
8
9 SUBDIRS = include
10
11 bin_PROGRAMS = lilypond
12
13 nowildcard: lexer.cc parser.cc
14
15 lilypond_SOURCES = $(wildcard *.cc *.ll *.yy)
16
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
21
22 noinst_HEADERS = parser.hh
23
24 #lilypond_LDADD = -llily -lflower @LEXLIB@
25 lilypond_LDADD = $(top_builddir)/lib/liblily.la $(top_builddir)/flower/libflower.la @LEXLIB@
26
27 lilypond_LDFLAGS = -L$(absolute_builddir)/lib/.libs -L$(absolute_builddir)/flower/.libs
28
29 INCLUDES =  -I$(top_srcdir)/lily/include -I$(top_srcdir)/lib/include -I$(top_srcdir)/flower/include 
30
31 EXTRA_DIST = Makefile.am.wild GNUmakefile Stable.make VERSION
32
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
36
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
46
47 distclean-local:
48         -rm -rf .deps
49
50 # override default target for all-am: to get an extra dependency
51 all-am: Makefile $(PROGRAMS) wild-check
52
53 # dummy target for non-GNU makes; is overridden in GNUmakefile
54 wild-check:
55
56 # dummy target for non-GNU makes; is overridden in GNUmakefile
57 make-in-build: