summaryrefslogtreecommitdiff
path: root/devel/heirloom-devtools/files/patch-mk.config
blob: b772db5f025c2d7101f9ec6df653cd3f2d5ae0e0 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
--- mk.config.orig	2023-01-13 17:03:48 UTC
+++ mk.config
@@ -17,32 +17,32 @@ POSIX_SHELL = /bin/sh
 #
 # A BSD-compatible install command.
 #
-INSTALL=/usr/ucb/install
+INSTALL?=/usr/ucb/install
 
 #
 # Prefix.
 #
-PREFIX=/usr/ccs
+PREFIX?=/usr/ccs
 
 #
 # Where to place binaries.
 #
-BINDIR=$(PREFIX)/bin
+BINDIR?=$(PREFIX)/bin
 
 #
 # Where to place additional binaries that aim at POSIX conformance.
 #
-SUSBIN=/usr/5bin/posix
+SUSBIN?=/usr/5bin/posix
 
 #
 # Where to place libraries.
 #
-LIBDIR=$(PREFIX)/lib
+LIBDIR?=$(PREFIX)/lib
 
 #
 # Where to place manual pages.
 #
-MANDIR=$(PREFIX)/share/man
+MANDIR?=$(PREFIX)/share/man
 
 #
 # Binaries are stripped with this command after installation.
@@ -52,13 +52,13 @@ STRIP=strip
 #
 # C++ compiler.
 #
-CXX = c++
+CXX ?= c++
 
 #
 # Compiler flags.
 #
-CFLAGS=-O
-CXXFLAGS=-O
+CFLAGS?=-O
+CXXFLAGS?=-O
 
 #
 # C preprocessor flags.
@@ -66,7 +66,7 @@ CXXFLAGS=-O
 # Use -D_GNU_SOURCE for Linux with GNU libc.
 # Use -D_INCLUDE__STDC_A1_SOURCE for HP-UX.
 #
-CPPFLAGS=-D_GNU_SOURCE
+CPPFLAGS+=-D_GNU_SOURCE
 
 #
 # Warning flags for the compiler.
@@ -76,12 +76,12 @@ WARN=
 #
 # Linker flags.
 #
-LDFLAGS=
+#LDFLAGS=
 
 #
 # Additional libraries to link with.
 #
-LIBS=
+#LIBS=
 
 #
 # It may be necessary to define AR on some systems, e.g. on HP-UX.