Change CDE version info for 2.3.1 release
[oweals/cde.git] / cde / lib / tt / tooltalk.tmpl
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
6 /* TT_VERSION defines the version string which is imbedded in all the */
7 /* binaries and shipped libraries. */
8
9 TT_VERSION = "CDE Version 2.3.1"
10 TT_VERSION_DEFINE = -DTT_VERSION_STRING=\"$(TT_VERSION)\"
11
12
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)
18 #endif
19
20
21 /* put EXTRA_DEFINES and EXTRA_INCLUDES below */
22
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
26 # if HasTIRPCLib
27 TIRPC_DEFINES = -DOPT_TIRPC
28 # else
29 TIRPC_DEFINES =
30 # endif
31 #endif
32
33 #ifdef SunArchitecture
34 LAST_LOAD_FLAGS = -Bstatic -lC -Bdynamic -lm -lc -Bstatic
35 #endif
36
37 #ifdef RsArchitecture
38 EXTRA_DEFINES=-D_ALL_SOURCE -DPOSIX_DRAFT7_THREADS
39 #endif
40
41 #ifdef SunArchitecture
42 /* Only need to rebuild message catalog source on one platform. */
43 all::
44
45 %.msg:  %
46         ttgenmsg -d $@ $(TT_DIR)/SUNW_TOOLTALK.sets $<
47
48 %/msgs: always_rebuild
49         (cd $*; make $(@F))
50
51 msgs:   $$(SRCS:%=%.msg) $$(SUBDIRS:%=%/msgs)
52         $(RM) $@
53         touch $@
54         for file in $(SRCS:%=%.msg) $(SUBDIRS:%=%/msgs) /dev/null; do \
55                 if grep set $$file > /dev/null; then cat $$file >> $@; fi; \
56         done
57
58 always_rebuild:
59 #endif