Add -fpermissive to linux standard c++ option define in linux.cf
[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.1.30"
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 #ifdef SunArchitecture
23 LAST_LOAD_FLAGS = -Bstatic -lC -Bdynamic -lm -lc -Bstatic
24 #endif
25
26 #ifdef RsArchitecture
27 EXTRA_DEFINES=-D_ALL_SOURCE -DPOSIX_DRAFT7_THREADS
28 #endif
29
30 #ifdef SunArchitecture
31 /* Only need to rebuild message catalog source on one platform. */
32 all::
33
34 %.msg:  %
35         ttgenmsg -d $@ $(TT_DIR)/SUNW_TOOLTALK.sets $<
36
37 %/msgs: always_rebuild
38         (cd $*; make $(@F))
39
40 msgs:   $$(SRCS:%=%.msg) $$(SUBDIRS:%=%/msgs)
41         $(RM) $@
42         touch $@
43         for file in $(SRCS:%=%.msg) $(SUBDIRS:%=%/msgs) /dev/null; do \
44                 if grep set $$file > /dev/null; then cat $$file >> $@; fi; \
45         done
46
47 always_rebuild:
48 #endif