tooltalk.tmpl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* This file is imbedded near the top of every ToolTalk Imakefile. */
  2. /* It contains definitions and redefinitions that are common to all */
  3. /* of ToolTalk but which aren't referred to anywhere else in the */
  4. /* build. */
  5. /* TT_VERSION defines the version string which is imbedded in all the */
  6. /* binaries and shipped libraries. */
  7. TT_VERSION = "CDE Version 2.3.0a"
  8. TT_VERSION_DEFINE = -DTT_VERSION_STRING=\"$(TT_VERSION)\"
  9. #ifdef SunArchitecture
  10. /* TTLIB_AND_MAYBE_XLIB is overridden on architectures where libtt does */
  11. /* not need XLIB (because it's dlopen'ed.) */
  12. TTLIB_AND_MAYBE_XLIB = $(TTLIB)
  13. DEPTTLIB_AND_MAYBE_XLIB = $(DEPTTLIB)
  14. #endif
  15. /* put EXTRA_DEFINES and EXTRA_INCLUDES below */
  16. /* For linux with TIRPC, set this so the right bits can/will be used. */
  17. XCOMM Enable TIRPC for linux hosts with the option enabled
  18. #ifdef LinuxArchitecture
  19. # if HasTIRPCLib
  20. TIRPC_DEFINES = -DOPT_TIRPC
  21. # else
  22. TIRPC_DEFINES =
  23. # endif
  24. #endif
  25. #ifdef SunArchitecture
  26. LAST_LOAD_FLAGS = -Bstatic -lC -Bdynamic -lm -lc -Bstatic
  27. #endif
  28. #ifdef RsArchitecture
  29. EXTRA_DEFINES=-D_ALL_SOURCE -DPOSIX_DRAFT7_THREADS
  30. #endif
  31. #ifdef SunArchitecture
  32. /* Only need to rebuild message catalog source on one platform. */
  33. all::
  34. %.msg: %
  35. ttgenmsg -d $@ $(TT_DIR)/SUNW_TOOLTALK.sets $<
  36. %/msgs: always_rebuild
  37. (cd $*; make $(@F))
  38. msgs: $$(SRCS:%=%.msg) $$(SUBDIRS:%=%/msgs)
  39. $(RM) $@
  40. touch $@
  41. for file in $(SRCS:%=%.msg) $(SUBDIRS:%=%/msgs) /dev/null; do \
  42. if grep set $$file > /dev/null; then cat $$file >> $@; fi; \
  43. done
  44. always_rebuild:
  45. #endif