oldlib.rules 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /* You should not use these any more, use new Library.tmpl insead */
  2. XCOMM $XConsortium: oldlib.rules,v 1.2 91/04/09 19:15:13 rws Exp $
  3. /*
  4. * ProfiledLibraryObjectRule - generate make rules to build both profiled
  5. * and "normal" objects.
  6. */
  7. #ifndef ProfiledLibraryObjectRule
  8. #define ProfiledLibraryObjectRule() @@\
  9. all:: @@\
  10. LibMkdir(profiled) @@\
  11. @@\
  12. .c.o: @@\
  13. ProfiledLibObjCompile(NullParameter) @@\
  14. NormalLibObjCompile(NullParameter) @@\
  15. @@\
  16. clean:: @@\
  17. LibCleanDir(profiled) @@\
  18. #endif /* ProfiledLibraryObjectRule */
  19. /*
  20. * DebuggedLibraryObjectRule - generate make rules to build both debuggable
  21. * and "normal" objects.
  22. */
  23. #ifndef DebuggedLibraryObjectRule
  24. #define DebuggedLibraryObjectRule() @@\
  25. all:: @@\
  26. LibMkdir(debugger) @@\
  27. @@\
  28. .c.o: @@\
  29. DebuggedLibObjCompile(NullParameter) @@\
  30. NormalLibObjCompile(NullParameter) @@\
  31. @@\
  32. clean:: @@\
  33. LibCleanDir(debugger) @@\
  34. #endif /* DebuggedLibraryObjectRule */
  35. /*
  36. * DebuggedAndProfiledLibraryOjbectRule - generate make rules to build
  37. * debuggable, profiled, and "normal" objects.
  38. */
  39. #ifndef DebuggedAndProfiledLibraryObjectRule
  40. #define DebuggedAndProfiledLibraryObjectRule() @@\
  41. all:: @@\
  42. LibMkdir(profiled) @@\
  43. LibMkdir(debugger) @@\
  44. @@\
  45. .c.o: @@\
  46. ProfiledLibObjCompile(NullParameter) @@\
  47. DebuggedLibObjCompile(NullParameter) @@\
  48. NormalLibObjCompile(NullParameter) @@\
  49. @@\
  50. clean:: @@\
  51. LibCleanDir(profiled) @@\
  52. LibCleanDir(debugger) @@\
  53. #endif /* DebuggedAndProfiledLibraryObjectRule */
  54. /*
  55. * SpecialProfiledObjectRule - generate rules to compile a file with special
  56. * flags and to make a profiled version.
  57. */
  58. #ifndef SpecialProfiledObjectRule
  59. #define SpecialProfiledObjectRule(objs,depends,options) @@\
  60. all:: @@\
  61. LibMkdir(profiled) @@\
  62. @@\
  63. objs: depends @@\
  64. ProfiledLibObjCompile(options) @@\
  65. NormalLibObjCompile(options)
  66. #endif /* SpecialProfiledObjectRule */
  67. /*
  68. * SpecialDebuggedObjectRule - generate rules to compile a file with special
  69. * flags and to make a debuggable version.
  70. */
  71. #ifndef SpecialDebuggedObjectRule
  72. #define SpecialDebuggedObjectRule(objs,depends,options) @@\
  73. all:: @@\
  74. LibMkdir(debugger) @@\
  75. @@\
  76. objs: depends @@\
  77. DebuggedLibObjCompile(options) @@\
  78. NormalLibObjCompile(options)
  79. #endif /* SpecialDebuggedObjectRule */
  80. /*
  81. * SpecialDebuggedAndProfiledObjectRule - generate rules to compile a file
  82. * with special flags and to make debuggable and profiled versions.
  83. */
  84. #ifndef SpecialDebuggedAndProfiledObjectRule
  85. #define SpecialDebuggedAndProfiledObjectRule(objs,depends,options) @@\
  86. all:: @@\
  87. LibMkdir(profiled) @@\
  88. LibMkdir(debugger) @@\
  89. @@\
  90. objs: depends @@\
  91. ProfiledLibObjCompile(options) @@\
  92. DebuggedLibObjCompile(options) @@\
  93. NormalLibObjCompile(options)
  94. #endif /* SpecialDebuggedAndProfiledObjectRule */