Merge branch 'release-2.140.101'
[feisty_meow.git] / infobase / examples / cpp_grammar_code / makefile
1 #
2 #       Title:          Make file for Cxx Grammar tester.
3 #
4 #       Author:         E.D.Willink
5 #
6 #       SCCS:           %W% %G%
7 #
8 #       Description:
9 #                       This makefile wrapper redirects all activity to makefile.unix after first ensuring that
10 #                       any .INIT provided by ../import.make has executed to load required source files.
11 #
12 #       Targets:        
13 #                       executable, normal
14 #                                       builds $(ARCH)o/grammar
15 #                       sun
16 #                                       builds $(ARCH)o/grammar using sun compiler, yacc and lex
17 #                       gnu
18 #                                       builds $(ARCH)o/grammar using gnu compiler, bison and flex
19 #                       clean
20 #                                       eliminates $(ARCH)o* intermediates
21 #                       realclean
22 #                                       eliminates $(ARCH)o* intermediates and executables
23 #                       source_kit
24 #                                       generates the distribution kits
25 #
26 #       Switch settings are appropriate for Sun C++ 4.2.
27 #       Commented settings indicate what might be appropriate for gcc once it supports templates plausibly.
28 #
29 #       Latest Modification:
30 # EDW           Date:   14-Jun-2001         Original
31 #END
32
33 .SUFFIXES:
34
35 SRCDIR = sources
36 ARCH = sun4
37 OBJ_DIR = $(ARCH)o
38 OBJ_DIR_PI = $(ARCH)o_pi
39 OBJ_DIR_G = $(ARCH)o_g
40 OBJ_DIR_PI_G = $(ARCH)o_pi_g
41
42 default : executable
43
44 #../import.make is empty by default, but may be provided to copy sources from somewhere.
45 ../import.make :
46         echo > $@
47 IMPORT_PATH = grammar
48 include ../import.make
49
50 clean executable gnu realclean source_kit sun %.tar \
51 $(SRCDIR)/% $(OBJ_DIR)/% $(OBJ_DIR_PI)/% $(OBJ_DIR_G)/% $(OBJ_DIR_PI_G)/% \
52         : makefile makefile.unix .FORCE
53         $(MAKE) -f makefile.unix $(MFLAGS) $(MAKEFLAGS) $@ 
54
55 .FORCE: