Makefile
上传用户:upcnvip
上传日期:2007-01-06
资源大小:474k
文件大小:1k
源码类别:

编译器/解释器

开发平台:

C/C++

  1. # Examples for "p2c", the Pascal to C translator.
  2. # The following definitions assume p2c has been compiled into the "home"
  3. # directory as shown in src/Makefile.
  4. P2C = ../p2c
  5. INC = ../home
  6. LIB = ../home/libp2c.a
  7. default: comp
  8. # Translating everything:
  9. trans:  fact.c  e.c  self.c  cref.c  basic.c
  10. fact.c: fact.p
  11. $(P2C) fact.p
  12. e.c: e.p
  13. $(P2C) e.p
  14. self.c: self.p
  15. $(P2C) self.p
  16. cref.c: cref.p
  17. $(P2C) cref.p
  18. basic.c: basic.p
  19. $(P2C) basic.p
  20. # Compiling everything:
  21. comp:  fact  e  self  cref  basic
  22. fact: fact.c
  23. $(CC) -I$(INC) fact.c $(LIB) -o fact
  24. e: e.c
  25. $(CC) -I$(INC) e.c $(LIB) -o e
  26. self: self.c
  27. $(CC) -I$(INC) self.c $(LIB) -o self
  28. cref: cref.c
  29. $(CC) -I$(INC) cref.c $(LIB) -o cref
  30. basic: basic.c
  31. $(CC) -I$(INC) basic.c $(LIB) -lm -o basic