Merge branch 'dev' of feistymeow.org:feisty_meow into release-2.140.94
[feisty_meow.git] / examples / cpp_grammar_code / makefile.macros
1 #
2 #       Title:          Common make macros for the Cxx Grammar tester.
3 #
4 #       Author:         E.D.Willink
5 #
6 #       Description:
7 #
8 #               These macros are shared by
9 #                       makefile                for Unix make
10 #                       makefile.gmake  for NT (g)make
11 #END
12
13 L_FILES = \
14         CxxLexer.l
15
16 Y_FILES = \
17         CxxParser.y
18
19 LEXER_FILES = \
20         CxxLexing.cxx \
21         CxxLexing.hxx
22
23 PARSER_FILES = \
24         CxxParsing.cxx \
25         CxxParsing.hxx
26
27 TOKEN_FILES = \
28         CxxToken.cxx \
29         CxxToken.hxx
30
31 CLASS_SOURCES = \
32         $(LEXER_FILES) \
33         $(PARSER_FILES) \
34         $(TOKEN_FILES)
35
36 #
37 # list of all compilation units
38 #
39 COMPOSITE_SOURCES = \
40         CxxLexer.cpp \
41         CxxParser.cpp \
42         CxxToken.cpp
43
44 Y_CXX_FILES = $(Y_FILES:%.y=$(SRCDIR)/%.cxx)
45 GENERATED_INCLUDES = \
46         $(L_FILES:%.l=$(SRCDIR)/%.cxx) \
47         $(Y_FILES:%.y=$(SRCDIR)/%.cxx) \
48         $(Y_FILES:%.y=$(SRCDIR)/%.hxx)
49
50 MAKE_FILES = \
51         makefile \
52         makefile.gmake \
53         makefile.macros \
54         makefile.unix
55
56 # list of all other files for listing purposes
57 OTHER_SOURCES = \
58         $(MAKE_FILES) \
59         $(CLASS_SOURCES) \
60         $(L_FILES) \
61         $(Y_FILES)
62
63 CPP_SOURCES = $(COMPOSITE_SOURCES) 
64
65 INCLUDES = $(GENERATED_INCLUDES)
66
67 SOURCES = \
68         $(CPP_SOURCES) \
69         $(CLASS_SOURCES) \
70         $(L_FILES) \
71         $(Y_FILES) \
72         $(MAKE_FILES)
73
74 DOCUMENTATION_FILES = \
75     index.html \
76     README
77
78 # List of all primary files (to be copied to a secondary environment)
79 ALL_FILES = \
80         $(SOURCES) \
81         $(DOCUMENTATION_FILES) \
82         grammar.dsp \
83         grammar.dsw