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.2.4"
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 */
22 #ifdef SunArchitecture
23 LAST_LOAD_FLAGS = -Bstatic -lC -Bdynamic -lm -lc -Bstatic
27 EXTRA_DEFINES=-D_ALL_SOURCE -DPOSIX_DRAFT7_THREADS
30 #ifdef SunArchitecture
31 /* Only need to rebuild message catalog source on one platform. */
35 ttgenmsg -d $@ $(TT_DIR)/SUNW_TOOLTALK.sets $<
37 %/msgs: always_rebuild
40 msgs: $$(SRCS:%=%.msg) $$(SUBDIRS:%=%/msgs)
43 for file in $(SRCS:%=%.msg) $(SUBDIRS:%=%/msgs) /dev/null; do \
44 if grep set $$file > /dev/null; then cat $$file >> $@; fi; \