File: Makefile

package info (click to toggle)
p2c 1.21alpha2-1
  • links: PTS
  • area: main
  • in suites: potato, woody
  • size: 1,996 kB
  • ctags: 3,399
  • sloc: ansic: 38,617; pascal: 2,499; makefile: 213; perl: 101
file content (49 lines) | stat: -rw-r--r-- 1,624 bytes parent folder | download | duplicates (2)
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
# Makefile for "p2c", the Pascal to C translator.
#  Copyright (C) 1989, 1993 David Gillespie.
#  Author: Dave Gillespie.
#  Author's address: daveg@synaptics.com.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation (any version).

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.



# This file compiles and installs p2c in the "home" subdirectory of this
# directory, then runs it on various example programs in the "examples"
# subdirectory.  To install a permanent, public copy of p2c, see "README"
# and src/Makefile.

test:
	@echo "Compiling p2c, installing in `pwd`/home..."
	cd src; make install
	@echo ""
	@echo "Translating and compiling example files..."
	cd examples; make comp
	@echo ""
	@echo "Running the factorial example..."
	examples/fact
	@echo ""
	@echo "Running the 'e' computation example..."
	examples/e
	@echo ""
	@echo "Running the self-printing Pascal example..."
	examples/self >examples/self.out
	cat examples/self.out
	diff examples/self.p examples/self.out
	@echo ""
	@echo "Also try 'cref' and 'basic' in the examples directory."


install:
	cd src; make install