X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=infobase%2Fexamples%2Fcpp_grammar_code%2Fmakefile;fp=infobase%2Fexamples%2Fcpp_grammar_code%2Fmakefile;h=e2b3d56ebb6ec9178ec4a4211742d12b63382134;hb=c589a3686d4508c9c5ea7841deb9be251460ddc3;hp=0000000000000000000000000000000000000000;hpb=4c595ba63a6c5203e104fe83fee43d69d3ff7aef;p=feisty_meow.git diff --git a/infobase/examples/cpp_grammar_code/makefile b/infobase/examples/cpp_grammar_code/makefile new file mode 100644 index 00000000..e2b3d56e --- /dev/null +++ b/infobase/examples/cpp_grammar_code/makefile @@ -0,0 +1,55 @@ +# +# Title: Make file for Cxx Grammar tester. +# +# Author: E.D.Willink +# +# SCCS: %W% %G% +# +# Description: +# This makefile wrapper redirects all activity to makefile.unix after first ensuring that +# any .INIT provided by ../import.make has executed to load required source files. +# +# Targets: +# executable, normal +# builds $(ARCH)o/grammar +# sun +# builds $(ARCH)o/grammar using sun compiler, yacc and lex +# gnu +# builds $(ARCH)o/grammar using gnu compiler, bison and flex +# clean +# eliminates $(ARCH)o* intermediates +# realclean +# eliminates $(ARCH)o* intermediates and executables +# source_kit +# generates the distribution kits +# +# Switch settings are appropriate for Sun C++ 4.2. +# Commented settings indicate what might be appropriate for gcc once it supports templates plausibly. +# +# Latest Modification: +# EDW Date: 14-Jun-2001 Original +#END + +.SUFFIXES: + +SRCDIR = sources +ARCH = sun4 +OBJ_DIR = $(ARCH)o +OBJ_DIR_PI = $(ARCH)o_pi +OBJ_DIR_G = $(ARCH)o_g +OBJ_DIR_PI_G = $(ARCH)o_pi_g + +default : executable + +#../import.make is empty by default, but may be provided to copy sources from somewhere. +../import.make : + echo > $@ +IMPORT_PATH = grammar +include ../import.make + +clean executable gnu realclean source_kit sun %.tar \ +$(SRCDIR)/% $(OBJ_DIR)/% $(OBJ_DIR_PI)/% $(OBJ_DIR_G)/% $(OBJ_DIR_PI_G)/% \ + : makefile makefile.unix .FORCE + $(MAKE) -f makefile.unix $(MFLAGS) $(MAKEFLAGS) $@ + +.FORCE: \ No newline at end of file