]> git.donarmstrong.com Git - lilypond.git/blob - lily/Makefile
2302cf627c92c612448253ac98d9818b7f63bef0
[lilypond.git] / lily / Makefile
1 #
2 # project  LilyPond -- the musical typesetter
3 # title    makefile for lilypond
4 # file     lily/Makefile 
5 #
6 # Copyright (c) 1997 by
7 #       Jan Nieuwenhuizen <jan@digicash.com>
8 #       Han-Wen Nienhuys <hanwen@stack.nl>
9 #
10
11 # subdir level:
12 #
13 depth = ..
14 #
15
16 # generic variables:
17 #
18 include ./$(depth)/make/Variables.make 
19 #
20
21 # identify module:
22 #
23 NAME = lilypond
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)/.build
30 #
31
32 # descent order into subdirectories:
33 #
34 SUBDIRS = include
35 #
36
37 # to be remade each build:
38 #
39 VERSION_DEPENDENCY = $(lily-version)
40 #
41
42 # list of c++ header files:
43
44 HHFILES = $(shell ls *.hh $(ERROR_LOG))
45 #
46
47 # list of c++ source files:
48 #
49 CCFILES = $(shell ls *.cc $(ERROR_LOG))
50 #
51
52 # list of other source files:
53 #
54 EXTRA_SOURCE_FILES = $(shell ls *.y *.l $(ERROR_LOG))
55 #
56
57 # list of distribution files:
58 #
59 DISTFILES = Makefile $(HHFILES) $(CCFILES) $(EXTRA_SOURCE_FILES)
60 #
61
62 # list of custom libraries:
63 #
64 # yes, i know about the -L and -l options,
65 # but these libraries get rebuild when needed.
66 CUSTOMLIBES = $(LIBLILY) $(LIBFLOWER)
67
68 LOADLIBES +=
69 #
70
71 # main target of this module:
72 #
73 # MAINTARGET = $(EXECUTABLE)
74 # MAINTARGET = $(LIBRARY)
75 MAINTARGET = $(bindir)/$(EXECUTABLE)# huh?
76 # MAINTARGET = $(libdir)/$(LIBRARY)# huh?
77
78 default: $(MAINTARGET)
79 #
80
81 # generic targets and rules:
82 #
83 include ./$(depth)/make/Targets.make
84 include ./$(depth)/make/Rules.make
85 #
86
87 # explicit dependencies: (how to do auto?)
88 #
89 # ugh
90 $(outdir)/version.cc: check-flower-version $(lily-version)
91 mylexer.cc: $(outdir)/parser.hh # sic
92 lexer.l: $(outdir)/parser.hh
93 #
94
95 # list of depend files:
96 #
97 DEPFILES = $(shell ls $(depdir)/*.dep $(ERROR_LOG))
98 #
99
100 # auto dependencies:
101 #
102 -include $(DEPFILES)
103 #
104