]> git.donarmstrong.com Git - lilypond.git/blob - lily/Makefile.am.wild
f5050d47d044557b31c34355970cf829a94e00de
[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 noinst_HEADERS = parser.hh
17
18 #lilypond_LDADD = -llily -lflower @LEXLIB@
19 lilypond_LDADD = $(top_builddir)/lib/liblily.la $(top_builddir)/flower/libflower.la @LEXLIB@
20
21 lilypond_LDFLAGS = -L$(absolute_builddir)/lib/.libs -L$(absolute_builddir)/flower/.libs
22
23 INCLUDES =  -I$(srcdir)/include -I$(srcdir)/../lib/include -I$(srcdir)/../flower/include 
24
25 EXTRA_DIST = Makefile.am.wild GNUmakefile Stable.make VERSION
26
27 # force these: Make can't know these have to be generated in advance
28 my-lily-lexer.cc: parser.hh
29 lexer.cc: parser.hh
30
31 # ugh, autoconf assumes to get $(LEX_OUTPUT_ROOT).c ...
32 .ll.cc:
33         @echo "must override autoconf; ignore warning"
34         $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).cc $@
35 #.yy.hh:
36 parser.hh: parser.yy
37         $(BISON) -d $<
38         mv $<.tab.h $@
39         mv $<.tab.c $(shell basename $@ .hh).cc
40
41 # override default target for all-am: to get an extra dependency
42 all-am: Makefile $(PROGRAMS) wild-check
43
44 # dummy target for non-GNU makes; is overridden in GNUmakefile
45 wild-check:
46
47 distclean-local:
48         -rm -rf .deps