/* Search the Motif ProjectRoot too if it is different. */
#ifdef MotifProjectRoot
-# define MUsrLibDirPath Concat(XUsrLibDirPath,:$(MPROJECTROOT)/lib)
+# define MUsrLibDirPath Concat($(MPROJECTROOT)/lib,:XUsrLibDirPath)
#else
# define MUsrLibDirPath XUsrLibDirPath
#endif
#endif
#ifndef MTop
-# if ImportMotif
+# if ImportMotif || UseInstalledMotif
# define MTop $(TOP)/imports/motif
# else
# define MTop $(TOP)
/* CDE uses a .C suffix for C++ source, not the default .cxx */
# define CCsuf C
-/* We will import x11 and Motif. */
+/* We will import x11. */
# define ImportX11 YES
-# define ImportMotif YES
+
+/* We will use installed Motif. */
+# define UseInstalledMotif YES
# ifndef TopLevelProject
# define TopLevelProject cde
#define DependDefines -D__BUILTIN_VA_ARG_INCR
#endif
-#define LdPreLib -L/usr/X11/lib -L$(BUILDLIBDIR)
+#define LdPreLib -L$(BUILDLIBDIR)
#define PamUnixDefines -DPAM_NIS
#define TtLargePICTable YES
#define DtSvcDefines -DMULTIBYTE -DNO_REGCOMP
#define TtClientExtraLibs ExtraLibraries -ldl -lintl
#ifndef TopMotifInclude
-# define TopMotifInclude /usr/X11/include
+# define TopMotifInclude $(MPROJECTROOT)/include
#endif
#define ShlibExportListOpt(filename) -M filename