home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / crosscom / p2c / os2 / examples / makefile < prev    next >
Encoding:
Makefile  |  1992-08-03  |  845 b   |  55 lines

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