aboutsummaryrefslogtreecommitdiff
path: root/x11-servers/xorg-server/files/patch-Imake.rules
blob: deea1cb886a613c0765c7a4e7a12fe5724ea0f24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- config/cf/Imake.rules.orig	Mon Dec  9 15:00:42 2002
+++ config/cf/Imake.rules	Mon Oct 13 17:04:19 2003
@@ -1406,7 +1406,7 @@
  * this Imakefile is within the source tree.
  */
 #ifndef RmanDependency
-#ifdef UseInstalled
+#if defined(UseInstalled) || defined(UseInstalledPrograms)
 #define RmanDependency() /**/
 #else
 #define RmanDependency() 						@@\
@@ -1421,7 +1421,7 @@
 #endif /* RmanDependency */
 
 #ifndef RmanCmdDependency
-#ifdef UseInstalled
+#if defined(UseInstalled) || defined(UseInstalledPrograms)
 #define RmanCmdDependency	/**/
 #else
 #define RmanCmdDependency	ProgramTargetName($(RMAN))
@@ -1874,7 +1874,7 @@
  * this Imakefile is within the source tree.
  */
 #ifndef DependDependency
-#ifdef UseInstalled
+#if defined(UseInstalled) || defined(UseInstalledPrograms)
 #define DependDependency() /**/
 #else
 #define DependDependency() 						@@\
@@ -1969,7 +1969,7 @@
  * within the source tree.
  */
 #ifndef ImakeDependency
-#ifdef UseInstalled
+#if defined(UseInstalled) || defined(UseInstalledPrograms)
 #define ImakeDependency(target) /**/
 #else
 #define ImakeDependency(target)						@@\
@@ -2066,11 +2066,18 @@
  * ProjectUnsharedLibReferences - variables for unshared libraries
  */
 #ifndef ProjectUnsharedLibReferences
+#if defined(UseInstalledLibraries)
+#define ProjectUnsharedLibReferences(varname,libname,libsource,buildlibdir)	@@\
+Concat3(DEP,varname,LIB) = 						@@\
+Concat(varname,LIB) = LoaderLibPrefix Concat(-l,libname)		@@\
+LintLibReferences(varname,libname,libsource)
+#else
 #define ProjectUnsharedLibReferences(varname,libname,libsource,buildlibdir)	@@\
 Concat3(DEP,varname,LIB) = _UseCat($(USRLIBDIR)/,buildlibdir/,LibraryTargetName(libname))	@@\
 Concat(varname,LIB) = LoaderLibPrefix Concat(-l,libname)		@@\
 LintLibReferences(varname,libname,libsource)
 #endif
+#endif
 
  /*
  * ProjectUnsharedFontLibReferences - unshared font libraries
@@ -3126,6 +3133,9 @@
 
 #ifdef UseInstalled
 #define ImakeSubCmdHelper $(IMAKE_CMD)
+#elif defined(UseInstalledPrograms)
+#define ImakeSubCmdHelper $(IMAKE) -I$(IMAKEPREFIX)$(IRULESRC) \
+			  $(IMAKE_DEFINES) $(IMAKE_WARNINGS)
 #else
 #define ImakeSubCmdHelper $(IMAKEPREFIX)$(IMAKE) -I$(IMAKEPREFIX)$(IRULESRC) \
 			  $(IMAKE_DEFINES) $(IMAKE_WARNINGS)