lnxLib.tmpl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. XCOMM $TOG: lnxLib.tmpl /main/7 1998/03/20 14:26:41 mgreess $
  2. /*
  3. * Linux shared library template
  4. */
  5. /* Linux ELF shared libraries are deficient in link semantics */
  6. #if UseElfFormat
  7. #ifndef FixupLibReferences
  8. #define FixupLibReferences() @@\
  9. XMULIBONLY = -lXmu @@\
  10. XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
  11. #endif
  12. #ifndef XawClientLibs
  13. #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
  14. #endif
  15. #else
  16. #ifndef FixupLibReferences
  17. #define FixupLibReferences() @@\
  18. XMULIB = -lXmu $(XLIB)
  19. #endif
  20. #endif
  21. #ifndef SharedXReqs
  22. # define SharedXReqs $(XTOOLLIB) $(XLIB) $(LDPOSTLIBS)
  23. #endif
  24. #ifndef SharedXmReqs
  25. # define SharedXmReqs $(LDPRELIBS) SharedXReqs -lc
  26. #endif
  27. #ifndef SharedTtReqs
  28. # define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
  29. #endif
  30. #ifndef SharedDtSvcReqs
  31. # define SharedDtSvcReqs $(LDPRELIBS) SharedXReqs $(CXXLIB)
  32. #endif
  33. #ifndef SharedCsaReqs
  34. # define SharedCsaReqs -lXt $(TIRPCLIB)
  35. #endif
  36. #ifndef SharedDtHelpReqs
  37. # define SharedDtHelpReqs -ljpeg
  38. #endif
  39. #ifndef SharedDtSearchReqs
  40. # define SharedDtSearchReqs -lm
  41. #endif