File: makefile

package info (click to toggle)
pccts 1.33MR33-6
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 3,220 kB
  • ctags: 5,279
  • sloc: ansic: 46,053; cpp: 3,234; makefile: 959
file content (73 lines) | stat: -rw-r--r-- 2,193 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# Main makefile for PCCTS 1.33MR33	/* MRXXX */
#
# Terence Parr
# Parr Research Corporation
#
# verbosity versus silence...
PSss=
#
# this can be set to /user/local/bin etc...
BINDIR=bin
# This part added by Thomas Herter, M"unchen, Germany. See also manpages
# target.
MANDIR=$(HOME)/man
MANEXT=1
MANFILES=dlg/dlg.1 antlr/antlr.1

#CC=cc
#CC=gcc
#COPT=-O2

pccts:
	@echo " "
	@echo "             Welcome to PCCTS 1.33MR33 installation"
	@echo " "
	@echo "             (Version 1.33 Maintenance Release #33)" # mrxxx
	@echo " "
	@echo "                  Released 19 April 2002"
	@echo " "
	@echo "                        Featuring"
	@echo "         ANTLR     -- ANother Tool for Language Recognition"
	@echo "         DLG       -- DFA-based Lexical Analyzer Generator"
	@echo "         SORCERER  -- Source-to-source translator (tree walker)" 
	@echo " "
	@echo "                  http://www.antlr.org"	
	@echo " "
	@echo "             Trouble reports to tmoog@polhode.com"
	@echo "             Additional PCCTS 1.33 information at"
	@echo "                  http://www.polhode.com"
	@echo
	@echo
	@echo "To substitute gcc for CC to invoke compiler: make CC=gcc"
	@echo "If there are problems with cr and lf try: unzip -a ..."
	@echo
#
	@if [ ! -d $(BINDIR) ] ; then mkdir $(BINDIR) ; fi
	@echo Making executables...
	(cd ./antlr; $(MAKE) CC="$(CC)" COPT="$(COPT)")
	@echo antlr executable now in $(BINDIR)
	(cd ./dlg; $(MAKE) CC="$(CC)" COPT="$(COPT)")
	@echo dlg executable now in $(BINDIR)
	(cd ./sorcerer; $(MAKE) CC="$(CC)" COPT="$(COPT)")
	@echo sorcerer executable now in $(BINDIR)
	(cd ./support/genmk; $(MAKE) CC="$(CC)" COPT="$(COPT)"; mv genmk ../../$(BINDIR))
	@echo genmk executable now in $(BINDIR)
	@echo
	@echo "       PCCTS 1.33MR33 installation complete"  # MRXXX

clean:
	(cd ./antlr; $(MAKE) -s clean)
	(cd ./dlg; $(MAKE) -s clean)
	(cd ./sorcerer; $(MAKE) -s clean)
	(cd ./sorcerer/lib; $(MAKE) -s clean)
	(cd ./support/genmk; $(MAKE) -s clean)


manpages:
	# mkdir -p $(MANDIR)/man$(MANEXT)
	if [ ! -d $(MANDIR) ] ; then \
	  mkdir $(MANDIR) ; fi
	if [ ! -d $(MANDIR)/man$(MANEXT) ] ; then \
	  mkdir $(MANDIR)/man$(MANEXT); fi
	cp -p $(MANFILES) $(MANDIR)/man$(MANEXT)