home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / dev / misc / p2c / examples / makefile < prev    next >
Makefile  |  1993-12-21  |  777b  |  60 lines

  1.  
  2. # Examples for "p2c", the Pascal to C translator.
  3.  
  4.  
  5. # The following definitions assume p2c has been compiled into the "home"
  6. # directory as shown in src/Makefile.
  7. P2C = ../p2c
  8. INC = ../home
  9. LIB = ../home/libp2c.a
  10.  
  11.  
  12. default: comp
  13.  
  14.  
  15. # Translating everything:
  16.  
  17. trans:  fact.c  e.c  self.c  cref.c  basic.c
  18.  
  19. fact.c: fact.p
  20.     $(P2C) fact.p
  21.  
  22. e.c: e.p
  23.     $(P2C) e.p
  24.  
  25. self.c: self.p
  26.     $(P2C) self.p
  27.  
  28. cref.c: cref.p
  29.     $(P2C) cref.p
  30.  
  31. basic.c: basic.p
  32.     $(P2C) basic.p
  33.  
  34.  
  35.  
  36. # Compiling everything:
  37.  
  38. comp:  fact  e  self  cref  basic
  39.  
  40. fact: fact.c
  41.     $(CC) -I$(INC) fact.c $(LIB) -o fact
  42.  
  43. e: e.c
  44.     $(CC) -I$(INC) e.c $(LIB) -o e
  45.  
  46. self: self.c
  47.     $(CC) -I$(INC) self.c $(LIB) -o self
  48.  
  49. cref: cref.c
  50.     $(CC) -I$(INC) cref.c $(LIB) -o cref
  51.  
  52. basic: basic.c
  53.     $(CC) -I$(INC) basic.c $(LIB) -lm -o basic
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.