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 */
6 /* TT_VERSION defines the version string which is imbedded in all the */
7 /* binaries and shipped libraries. */
9 TT_VERSION = "CDE Version 2.3.0a"
10 TT_VERSION_DEFINE = -DTT_VERSION_STRING=\"$(TT_VERSION)\"
13 #ifdef SunArchitecture
14 /* TTLIB_AND_MAYBE_XLIB is overridden on architectures where libtt does */
15 /* not need XLIB (because it's dlopen'ed.) */
16 TTLIB_AND_MAYBE_XLIB = $(TTLIB)
17 DEPTTLIB_AND_MAYBE_XLIB = $(DEPTTLIB)
21 /* put EXTRA_DEFINES and EXTRA_INCLUDES below */
23 /* For linux with TIRPC, set this so the right bits can/will be used. */
24 XCOMM Enable TIRPC for linux hosts with the option enabled
25 #ifdef LinuxArchitecture
27 TIRPC_DEFINES = -DOPT_TIRPC
33 #ifdef SunArchitecture
34 LAST_LOAD_FLAGS = -Bstatic -lC -Bdynamic -lm -lc -Bstatic
38 EXTRA_DEFINES=-D_ALL_SOURCE -DPOSIX_DRAFT7_THREADS
41 #ifdef SunArchitecture
42 /* Only need to rebuild message catalog source on one platform. */
46 ttgenmsg -d $@ $(TT_DIR)/SUNW_TOOLTALK.sets $<
48 %/msgs: always_rebuild
51 msgs: $$(SRCS:%=%.msg) $$(SUBDIRS:%=%/msgs)
54 for file in $(SRCS:%=%.msg) $(SUBDIRS:%=%/msgs) /dev/null; do \
55 if grep set $$file > /dev/null; then cat $$file >> $@; fi; \