home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff341.lzh
/
P2C
/
p2c.lzh
/
p2c1_13a
/
Makefile.orig
< prev
next >
Wrap
Makefile
|
1990-03-11
|
2KB
|
50 lines
# Makefile for "p2c", the Pascal to C translator.
# Copyright (C) 1989 David Gillespie.
# Author's address: daveg@csvax.caltech.edu; 256-80 Caltech/Pasadena CA 91125.
# 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
clean:
cd src; make clean
cd examples; make clean
-rm -f p2c home/* home/p2c/*