X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=infobase%2Fexamples%2Fcpp_grammar_code%2Fmakefile.macros;fp=infobase%2Fexamples%2Fcpp_grammar_code%2Fmakefile.macros;h=b14772ec40811c2ac75462b84491ebedd1a6168e;hb=c589a3686d4508c9c5ea7841deb9be251460ddc3;hp=0000000000000000000000000000000000000000;hpb=4c595ba63a6c5203e104fe83fee43d69d3ff7aef;p=feisty_meow.git diff --git a/infobase/examples/cpp_grammar_code/makefile.macros b/infobase/examples/cpp_grammar_code/makefile.macros new file mode 100644 index 00000000..b14772ec --- /dev/null +++ b/infobase/examples/cpp_grammar_code/makefile.macros @@ -0,0 +1,83 @@ +# +# Title: Common make macros for the Cxx Grammar tester. +# +# Author: E.D.Willink +# +# Description: +# +# These macros are shared by +# makefile for Unix make +# makefile.gmake for NT (g)make +#END + +L_FILES = \ + CxxLexer.l + +Y_FILES = \ + CxxParser.y + +LEXER_FILES = \ + CxxLexing.cxx \ + CxxLexing.hxx + +PARSER_FILES = \ + CxxParsing.cxx \ + CxxParsing.hxx + +TOKEN_FILES = \ + CxxToken.cxx \ + CxxToken.hxx + +CLASS_SOURCES = \ + $(LEXER_FILES) \ + $(PARSER_FILES) \ + $(TOKEN_FILES) + +# +# list of all compilation units +# +COMPOSITE_SOURCES = \ + CxxLexer.cpp \ + CxxParser.cpp \ + CxxToken.cpp + +Y_CXX_FILES = $(Y_FILES:%.y=$(SRCDIR)/%.cxx) +GENERATED_INCLUDES = \ + $(L_FILES:%.l=$(SRCDIR)/%.cxx) \ + $(Y_FILES:%.y=$(SRCDIR)/%.cxx) \ + $(Y_FILES:%.y=$(SRCDIR)/%.hxx) + +MAKE_FILES = \ + makefile \ + makefile.gmake \ + makefile.macros \ + makefile.unix + +# list of all other files for listing purposes +OTHER_SOURCES = \ + $(MAKE_FILES) \ + $(CLASS_SOURCES) \ + $(L_FILES) \ + $(Y_FILES) + +CPP_SOURCES = $(COMPOSITE_SOURCES) + +INCLUDES = $(GENERATED_INCLUDES) + +SOURCES = \ + $(CPP_SOURCES) \ + $(CLASS_SOURCES) \ + $(L_FILES) \ + $(Y_FILES) \ + $(MAKE_FILES) + +DOCUMENTATION_FILES = \ + index.html \ + README + +# List of all primary files (to be copied to a secondary environment) +ALL_FILES = \ + $(SOURCES) \ + $(DOCUMENTATION_FILES) \ + grammar.dsp \ + grammar.dsw