]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/Pccts/makefile
More moves for Tool Packages
[mirror_edk2.git] / Tools / CCode / Source / Pccts / makefile
1 #
2 # Main makefile for PCCTS 1.33MR33 /* MRXXX */
3 #
4 # Terence Parr
5 # Parr Research Corporation
6 #
7 # verbosity versus silence...
8 PSss=
9 #
10 # this can be set to /user/local/bin etc...
11 BINDIR=bin
12 # This part added by Thomas Herter, M"unchen, Germany. See also manpages
13 # target.
14 MANDIR=$(HOME)/man
15 MANEXT=1
16 MANFILES=dlg/dlg.1 antlr/antlr.1
17
18 #CC=cc
19 #CC=gcc
20 #COPT=-O2
21
22 pccts:
23 @echo " "
24 @echo " Welcome to PCCTS 1.33MR33 installation"
25 @echo " "
26 @echo " (Version 1.33 Maintenance Release #33)" # mrxxx
27 @echo " "
28 @echo " Released 19 April 2002"
29 @echo " "
30 @echo " Featuring"
31 @echo " ANTLR -- ANother Tool for Language Recognition"
32 @echo " DLG -- DFA-based Lexical Analyzer Generator"
33 @echo " SORCERER -- Source-to-source translator (tree walker)"
34 @echo " "
35 @echo " http://www.antlr.org"
36 @echo " "
37 @echo " Trouble reports to tmoog@polhode.com"
38 @echo " Additional PCCTS 1.33 information at"
39 @echo " http://www.polhode.com"
40 @echo
41 @echo
42 @echo "To substitute gcc for CC to invoke compiler: make CC=gcc"
43 @echo "If there are problems with cr and lf try: unzip -a ..."
44 @echo
45 #
46 @if [ ! -d $(BINDIR) ] ; then mkdir $(BINDIR) ; fi
47 @echo Making executables...
48 (cd ./antlr; $(MAKE) CC="$(CC)" COPT="$(COPT)")
49 @echo antlr executable now in $(BINDIR)
50 (cd ./dlg; $(MAKE) CC="$(CC)" COPT="$(COPT)")
51 @echo dlg executable now in $(BINDIR)
52 @echo
53 @echo " PCCTS 1.33MR33 installation complete" # MRXXX
54
55 clean:
56 (cd ./antlr; $(MAKE) -s clean)
57 (cd ./dlg; $(MAKE) -s clean)
58
59
60 manpages:
61 # mkdir -p $(MANDIR)/man$(MANEXT)
62 if [ ! -d $(MANDIR) ] ; then \
63 mkdir $(MANDIR) ; fi
64 if [ ! -d $(MANDIR)/man$(MANEXT) ] ; then \
65 mkdir $(MANDIR)/man$(MANEXT); fi
66 cp -p $(MANFILES) $(MANDIR)/man$(MANEXT)