2 # project LilyPond -- the musical typesetter
3 # title makefile for lilypond
6 # Copyright (c) 1997 by
7 # Jan Nieuwenhuizen <jan@digicash.com>
8 # Han-Wen Nienhuys <hanwen@stack.nl>
18 include ./$(depth)/make/Variables.make
24 MAJOR_VERSION = $(TOPLEVEL_MAJOR_VERSION)
25 MINOR_VERSION = $(TOPLEVEL_MINOR_VERSION)
26 PATCH_LEVEL = $(TOPLEVEL_PATCH_LEVEL)
27 # use to send patches, always empty for released version:
28 MY_PATCH_LEVEL = $(TOPLEVEL_MY_PATCH_LEVEL)
29 build = $(lily-dir)/$(outdir)/.build
32 # descent order into subdirectories:
37 # to be remade each build:
39 VERSION_DEPENDENCY = $(lily-version)
42 # list of c++ header files:
44 HHFILES := $(wildcard *.hh) #$(shell ls *.hh $(ERROR_LOG))
47 # list of c++ source files:
49 CCFILES := $(wildcard *.cc) #$(shell ls *.cc $(ERROR_LOG))
52 # list of other source files:
54 EXTRA_SOURCE_FILES = $(shell ls *.y *.l $(ERROR_LOG))
57 # list of distribution files:
59 DISTFILES = .version Makefile $(HHFILES) $(CCFILES) $(EXTRA_SOURCE_FILES)
62 # list of custom libraries:
64 # yes, i know about the -L and -l options,
65 # but these libraries get rebuild when needed.
66 CUSTOMLIBES = $(LIBLILY) $(LIBFLOWER)
71 # main target of this module:
73 # MAINTARGET = $(EXECUTABLE)
74 # MAINTARGET = $(LIBRARY)
75 MAINTARGET = $(lily_bindir)/$(EXECUTABLE)# huh?
76 # MAINTARGET = $(libdir)/$(LIBRARY)# huh?
78 default: $(MAINTARGET)
81 # generic targets and rules:
83 include ./$(depth)/make/Targets.make
84 include ./$(depth)/make/Rules.make
87 # explicit dependencies: (how to do auto?)
90 #$(outdir)/version.cc: check-flower-version $(lily-version)
93 mylexer.cc: $(outdir)/parser.hh # sic
94 lexer.l: $(outdir)/parser.hh
97 # list of depend files:
99 DEPFILES = $(shell ls $(depdir)/*.dep $(ERROR_LOG))
104 -include /dev/null $(DEPFILES)