]> git.donarmstrong.com Git - lilypond.git/blob - make/Template.make
2d6397f5e83f63e866346fada598a078688861bf
[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 # generic variables:
19 #
20 include ./$(depth)/make/Variables.make 
21 #
22
23 # identify module:
24 #
25 NAME = ...
26 MODULE_NAME = 
27 # include ./$(depth)/$(NAME)/.version
28 MAJOR_VERSION = 0
29 MINOR_VERSION = 0
30 PATCH_LEVEL = 0
31 # use to send patches, always empty for released version:
32 MY_PATCH_LEVEL = # include separator: "-1" or ".a"
33 build = $(lily-dir)/$(outdir)/.build #????!
34 #
35
36 # descent order into subdirectories:
37 #
38 SUBDIRS =
39 #
40
41 # to be remade each build:
42 #
43 VERSION_DEPENDENCY = $(lily-version)
44 #
45
46 # module compile settings: (not generally needed!
47 #
48 EXTRA_CFLAGS =
49 EXTRA_CXXFLAGS =
50 EXTRA_LDFLAGS =
51 #
52
53 # list of c++ header files:
54
55 HHFILES = $(shell ls *.hh $(ERROR_LOG))
56 #
57
58 # list of c++ source files:
59 #
60 CCFILES = $(shell ls *.cc $(ERROR_LOG))
61 #
62
63 # list of other source files:
64 #
65 EXTRA_SOURCE_FILES = $(shell ls *.y *.l $(ERROR_LOG))
66 #
67
68 # list of distribution files:
69 #
70 DISTFILES = Makefile $(HHFILES) $(CCFILES) $(EXTRA_SOURCE_FILES)
71 #
72
73 # list of custom libraries:
74 #
75 CUSTOMLIBES = \
76
77 LOADLIBES +=
78 #
79
80 # main target of this module:
81 #
82 MAINTARGET = $(EXECUTABLE)
83 # MAINTARGET = $(LIBRARY)
84
85 default: $(MAINTARGET)
86 #
87
88 # generic targets and rules:
89 #
90 include ./$(depth)/make/Targets.make
91 include ./$(depth)/make/Rules.make
92 #
93
94 # list of depend files:
95 #
96 DEPFILES = $(shell ls $(depdir)/*.dep $(ERROR_LOG))
97 #
98
99 # auto dependencies:
100 #
101 -include $(DEPFILES)
102 #
103