]> git.donarmstrong.com Git - lilypond.git/blob - make/Template.make
release: 0.0.39-1
[lilypond.git] / make / Template.make
1 # THIS IS A TEMPLATE FOR SUB-PROJECT MAKEFILES
2 # should we make Include-dir and Stuff-dir templates too?
3
4 # project  LilyPond -- the musical typesetter
5 # title    makefile for ...
6 # file     ../Makefile 
7 #
8 # Copyright (c) 1997 by
9 #       Jan Nieuwenhuizen <jan@digicash.com>
10 #       Han-Wen Nienhuys <hanwen@stack.nl>
11 #
12
13 # subdir level:
14 #
15 depth = ..
16 #
17
18 # identify module:
19 #
20 NAME = ...
21 # include ./$(depth)/$(NAME)/.version
22 MAJOR_VERSION = 0
23 MINOR_VERSION = 0
24 PATCH_LEVEL = 0
25 # use to send patches, always empty for released version:
26 MY_PATCH_LEVEL = # include separator: "-1" or ".a"
27 build = ./$(depth)/lily/.build
28 #
29
30 # generic variables:
31 #
32 include ./$(depth)/make/Variables.make 
33 #
34
35 # descent order into subdirectories:
36 #
37 SUBDIRS =
38 #
39
40 # to be remade each build:
41 #
42 VERSION_DEPENDENCY = $(lily-version)
43 #
44
45 # module compile settings: (not generally needed!
46 #
47 EXTRA_CFLAGS =
48 EXTRA_CXXFLAGS =
49 EXTRA_LDFLAGS =
50 #
51
52 # list of c++ header files:
53
54 HHFILES = $(shell ls *.hh)
55 #
56
57 # list of c++ source files:
58 #
59 CCFILES = $(shell ls *.cc)
60 #
61
62 # list of other source files:
63 #
64 EXTRA_SOURCE_FILES = $(shell ls *.y *.l)
65 #
66
67 # list of distribution files:
68 #
69 DISTFILES = $(HHFILES) $(CCFILES) $(EXTRA_SOURCE_FILES)
70 #
71
72 # list of custom libraries:
73 #
74 CUSTOMLIBES = \
75
76 LOADLIBES +=
77 #
78
79 # main target of this module:
80 #
81 MAINTARGET = $(EXECUTABLE)
82 # MAINTARGET = $(LIBRARY)
83
84 default: $(MAINTARGET)
85 #
86
87 # generic targets and rules:
88 #
89 include ./$(depth)/make/Targets.make
90 include ./$(depth)/make/Rules.make
91 #
92
93 # auto dependencies:
94 #
95 include ./$(outdir)/*.dep
96 #
97