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
/
examples
/
Makefile.amiga
< prev
next >
Wrap
Makefile
|
1990-03-18
|
937b
|
55 lines
# Examples for "p2c", the Pascal to C translator.
# The following definitions assume p2c has been compiled into the "home"
# directory as shown in src/Makefile.
P2C = /p2c
INC = /home
LIB = /home/p2c.lib
default: comp
# Translating everything:
trans: fact.c e.c self.c cref.c basic.c
fact.c: fact.p
$(P2C) fact.p
e.c: e.p
$(P2C) e.p
self.c: self.p
$(P2C) self.p
cref.c: cref.p
$(P2C) cref.p
basic.c: basic.p
$(P2C) basic.p
# Compiling everything:
comp: fact e self cref basic
fact: fact.c
lc -L+$(LIB) -i$(INC) fact.c
e: e.c
lc -Lm+$(LIB) -i$(INC) e.c
self: self.c
lc -L+$(LIB) -i$(INC) self.c
cref: cref.c
lc -L+$(LIB) -i$(INC) cref.c
basic: basic.c
lc -Lm+$(LIB) -i$(INC) basic.c
clean:
delete fact.c e.c self.c cref.c basic.c quiet
delete fact.o e.o self.o cref.o basic.o quiet
delete fact.lnk e.lnk self.lnk cref.lnk basic.lnk quiet
delete fact e self cref basic quiet
delete self.out quiet