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@
20 lilypond_LDFLAGS = -L../lib -L../flower
22 INCLUDES = -I. -Iinclude -I../lib/include -I../flower/include
24 EXTRA_DIST = Makefile.am.wild Stable.make VERSION
26 # force these: Make can't know these have to be generated in advance
27 my-lily-lexer.cc: parser.hh
30 # ugh, autoconf assumes to get $(LEX_OUTPUT_ROOT).c ...
32 @echo "must override autoconf; ignore warning"
33 $(LEX) $(LFLAGS) $< && mv $(LEX_OUTPUT_ROOT).cc $@
38 mv $<.tab.c $(shell basename $@ .hh).cc
40 # ugh, stupid automake
41 # now set output root by hand...
46 # mv $(shell basename $@ .cc ).tab.c $@
47 # $(FLEX) -Cfe -p -p -t $< > $@
49 # # $(FLEX) -8 -Cf -t $< > $@