configure

Sun, 30 Nov 2025 22:55:34 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 22:55:34 +0100
changeset 70
a629b831c96d
parent 69
f70ba8f14b41
permissions
-rwxr-xr-x

update uwproj

0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 #!/bin/sh
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 # some utility functions
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 isplatform()
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 {
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 for p in $PLATFORM
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 do
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 if [ "$p" = "$1" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 return 0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 done
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 return 1
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 }
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 notisplatform()
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 {
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 for p in $PLATFORM
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 do
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 if [ "$p" = "$1" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 return 1
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 done
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 return 0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 }
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 istoolchain()
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 {
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 for t in $TOOLCHAIN
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 do
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 if [ "$t" = "$1" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 return 0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 done
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 return 1
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 }
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 notistoolchain()
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 {
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 for t in $TOOLCHAIN
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 do
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 if [ "$t" = "$1" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 return 1
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 done
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 return 0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 }
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 # clean abort
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47 abort_configure()
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 {
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49 rm -Rf "$TEMP_DIR"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 exit 1
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 }
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
53 # Test for availability of pkg-config
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
54 PKG_CONFIG=`command -v pkg-config`
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
55 : ${PKG_CONFIG:="false"}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
56
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
57 # Simple uname based platform detection
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
58 # $PLATFORM is used for platform dependent dependency selection
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
59 OS=`uname -s`
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
60 OS_VERSION=`uname -r`
69
f70ba8f14b41 update uwproj (fixes configure on solaris)
Mike Becker <universe@uap-core.de>
parents: 48
diff changeset
61 ARCH=`uname -m`
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 printf "detect platform... "
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63 if [ "$OS" = "SunOS" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
64 PLATFORM="solaris sunos unix svr4"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65 elif [ "$OS" = "Linux" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
66 PLATFORM="linux unix"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
67 elif [ "$OS" = "FreeBSD" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
68 PLATFORM="freebsd bsd unix"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
69 elif [ "$OS" = "OpenBSD" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
70 PLATFORM="openbsd bsd unix"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
71 elif [ "$OS" = "NetBSD" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
72 PLATFORM="netbsd bsd unix"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
73 elif [ "$OS" = "Darwin" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
74 PLATFORM="macos osx bsd unix"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
75 elif echo "$OS" | grep -i "MINGW" > /dev/null; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
76 PLATFORM="windows mingw"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
77 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
78 : ${PLATFORM:="unix"}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
79
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
80 PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -`
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
81 echo "$PLATFORM_NAME"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
82
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
83
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
84 # help text
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
85 printhelp()
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
86 {
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
87 echo "Usage: $0 [OPTIONS]..."
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
88 echo 'Configuration:'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
89 cat << '__EOF__'
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
90
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
91 Build Types:
45
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
92 --debug add extra compile flags for debug builds
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
93 --release add extra compile flags for release builds
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
94
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
95 Optional Features:
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
96 --enable-static statically link libstdc++
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
97 --enable-asan compile with address sanitizer
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
98 --enable-ubsan compile with undefined behavior sanitizer
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
99
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
100 __EOF__
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
101 abort_configure
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
102 }
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
103
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
104 # create temporary directory
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
105 TEMP_DIR=".tmp-`uname -n`"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
106 rm -Rf "$TEMP_DIR"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
107 if mkdir -p "$TEMP_DIR"; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
108 :
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
109 else
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
110 echo "Cannot create tmp dir $TEMP_DIR"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
111 echo "Abort"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
112 exit 1
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
113 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
114 touch "$TEMP_DIR/options"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
115 touch "$TEMP_DIR/features"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
116
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
117 # config variables
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
118
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
119 # features
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
120
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
121 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
122 # parse arguments
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
123 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
124 BUILD_TYPE="default"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
125 for ARG in "$@"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
126 do
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
127 case "$ARG" in
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
128 "--help"*) printhelp ;;
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
129 "--debug") BUILD_TYPE="debug" ;;
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
130 "--release") BUILD_TYPE="release" ;;
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
131 "--enable-static") FEATURE_STATIC=on ;;
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
132 "--disable-static") unset FEATURE_STATIC ;;
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
133 "--enable-asan") FEATURE_ASAN=on ;;
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
134 "--disable-asan") unset FEATURE_ASAN ;;
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
135 "--enable-ubsan") FEATURE_UBSAN=on ;;
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
136 "--disable-ubsan") unset FEATURE_UBSAN ;;
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
137 "-"*) echo "unknown option: $ARG"; abort_configure ;;
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
138 esac
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
139 done
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
140
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
141 # toolchain detection utilities
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
142 . make/toolchain.sh
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
143
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
144 # check languages
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
145 lang_c=
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
146 lang_cpp=
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
147 if detect_cpp_compiler ; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
148 lang_cpp=1
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
149 fi
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
150
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
151
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
152
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
153 # set defaults for dir variables
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
154 : ${exec_prefix:="$prefix"}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
155 : ${bindir:='${exec_prefix}/bin'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
156 : ${sbindir:='${exec_prefix}/sbin'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
157 : ${libdir:='${exec_prefix}/lib'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
158 : ${libexecdir:='${exec_prefix}/libexec'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
159 : ${datarootdir:='${prefix}/share'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
160 : ${datadir:='${datarootdir}'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
161 : ${sharedstatedir:='${prefix}/com'}
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
162 if [ -z "$sysconfdir" ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
163 if [ "$prefix" = '/usr' ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
164 sysconfdir='/etc'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
165 else
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
166 sysconfdir='${prefix}/etc'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
167 fi
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
168 fi
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
169 if [ -z "$localstatedir" ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
170 if [ "$prefix" = '/usr' ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
171 localstatedir='/var'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
172 else
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
173 localstatedir='${prefix}/var'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
174 fi
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
175 fi
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
176 if [ -z "$runstatedir" ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
177 if [ "$prefix" = '/usr' ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
178 runstatedir='/var/run'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
179 else
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
180 runstatedir='${prefix}/var'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
181 fi
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
182 fi
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
183 : ${includedir:='${prefix}/include'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
184 : ${infodir:='${datarootdir}/info'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
185 : ${mandir:='${datarootdir}/man'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
186 : ${localedir:='${datarootdir}/locale'}
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
187
45
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
188
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
189 # check if a config.site exists and load it
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
190 CONFIG_SITE_OK=0
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
191 if [ -n "$CONFIG_SITE" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
192 # CONFIG_SITE may contain space separated file names
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
193 for cs in $CONFIG_SITE; do
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
194 printf "loading defaults from $cs... "
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
195 if [ -f "$cs" ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
196 . "$cs"
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
197 echo ok
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
198 CONFIG_SITE_OK=1
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
199 break
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
200 else
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
201 echo "not found"
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
202 fi
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
203 done
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
204 elif [ -f "$prefix/share/config.site" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
205 printf "loading site defaults... "
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
206 . "$prefix/share/config.site"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
207 echo ok
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
208 CONFIG_SITE_OK=1
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
209 elif [ -f "$prefix/etc/config.site" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
210 printf "loading site defaults... "
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
211 . "$prefix/etc/config.site"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
212 echo ok
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
213 CONFIG_SITE_OK=1
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
214 fi
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
215
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
216 if [ $CONFIG_SITE_OK -eq 0 ]; then
69
f70ba8f14b41 update uwproj (fixes configure on solaris)
Mike Becker <universe@uap-core.de>
parents: 48
diff changeset
217 # try to detect the correct libdir on our own, except it was changed by the user
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
218 if [ "$libdir" = '${exec_prefix}/lib' ] ; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
219 if [ "$TOOLCHAIN_WSIZE" = "64" ] ; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
220 if [ "$OS" = "SunOS" ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
221 [ -d "${exec_prefix}/lib/64" ] && libdir='${exec_prefix}/lib/64'
69
f70ba8f14b41 update uwproj (fixes configure on solaris)
Mike Becker <universe@uap-core.de>
parents: 48
diff changeset
222 else
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
223 [ -d "${exec_prefix}/lib64" ] && libdir='${exec_prefix}/lib64'
69
f70ba8f14b41 update uwproj (fixes configure on solaris)
Mike Becker <universe@uap-core.de>
parents: 48
diff changeset
224 fi
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
225 elif [ "$TOOLCHAIN_WSIZE" = "32" ] ; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
226 if [ "$OS" = "SunOS" ]; then
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
227 [ -d "${exec_prefix}/lib/32" ] && libdir='${exec_prefix}/lib/32'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
228 else
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
229 [ -d "${exec_prefix}/lib32" ] && libdir='${exec_prefix}/lib32'
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
230 fi
69
f70ba8f14b41 update uwproj (fixes configure on solaris)
Mike Becker <universe@uap-core.de>
parents: 48
diff changeset
231 fi
f70ba8f14b41 update uwproj (fixes configure on solaris)
Mike Becker <universe@uap-core.de>
parents: 48
diff changeset
232 fi
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
233 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
234
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
235
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
236 # generate vars.mk
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
237 cat > "$TEMP_DIR/vars.mk" << __EOF__
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
238 __EOF__
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
239
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
240
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
241 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
242 # DEPENDENCIES
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
243 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
244
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
245
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
246
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
247 # create buffer for make variables required by dependencies
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
248 echo > "$TEMP_DIR/make.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
249
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
250 test_pkg_config()
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
251 {
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
252 if "$PKG_CONFIG" --exists "$1" ; then :
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
253 else return 1 ; fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
254 if [ -z "$2" ] || "$PKG_CONFIG" --atleast-version="$2" "$1" ; then :
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
255 else return 1 ; fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
256 if [ -z "$3" ] || "$PKG_CONFIG" --exact-version="$3" "$1" ; then :
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
257 else return 1 ; fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
258 if [ -z "$4" ] || "$PKG_CONFIG" --max-version="$4" "$1" ; then :
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
259 else return 1 ; fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
260 return 0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
261 }
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
262
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
263 print_check_msg()
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
264 {
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
265 if [ -z "$1" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
266 shift
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
267 printf "$@"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
268 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
269 }
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
270
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
271 dependency_error_asan()
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
272 {
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
273 print_check_msg "$dep_checked_asan" "checking for asan... "
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
274 # dependency asan toolchain="gnuc"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
275 while true
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
276 do
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
277 if notistoolchain "gnuc"; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
278 break
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
279 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
280 TEMP_CXXFLAGS="$TEMP_CXXFLAGS -fsanitize=address"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
281 TEMP_LDFLAGS="$TEMP_LDFLAGS -fsanitize=address"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
282 print_check_msg "$dep_checked_asan" "yes\n"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
283 dep_checked_asan=1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
284 return 1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
285 done
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
286
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
287 print_check_msg "$dep_checked_asan" "no\n"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
288 dep_checked_asan=1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
289 return 0
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
290 }
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
291 dependency_error_static()
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
292 {
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
293 print_check_msg "$dep_checked_static" "checking for static... "
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
294 # dependency static toolchain="gnuc"
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
295 while true
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
296 do
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
297 if notistoolchain "gnuc"; then
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
298 break
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
299 fi
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
300 TEMP_LDFLAGS="$TEMP_LDFLAGS -static"
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
301 print_check_msg "$dep_checked_static" "yes\n"
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
302 dep_checked_static=1
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
303 return 1
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
304 done
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
305
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
306 print_check_msg "$dep_checked_static" "no\n"
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
307 dep_checked_static=1
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
308 return 0
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
309 }
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
310 dependency_error_ubsan()
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
311 {
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
312 print_check_msg "$dep_checked_ubsan" "checking for ubsan... "
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
313 # dependency ubsan toolchain="gnuc"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
314 while true
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
315 do
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
316 if notistoolchain "gnuc"; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
317 break
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
318 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
319 TEMP_CXXFLAGS="$TEMP_CXXFLAGS -fsanitize=undefined"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
320 TEMP_LDFLAGS="$TEMP_LDFLAGS -fsanitize=undefined"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
321 print_check_msg "$dep_checked_ubsan" "yes\n"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
322 dep_checked_ubsan=1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
323 return 1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
324 done
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
325
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
326 print_check_msg "$dep_checked_ubsan" "no\n"
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
327 dep_checked_ubsan=1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
328 return 0
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
329 }
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
330
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
331 # start collecting dependency information
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
332 echo > "$TEMP_DIR/flags.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
333
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
334 DEPENDENCIES_FAILED=
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
335 ERROR=0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
336 # unnamed dependencies
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
337 TEMP_CFLAGS="$CFLAGS"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
338 TEMP_CXXFLAGS="$CXXFLAGS"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
339 TEMP_LDFLAGS="$LDFLAGS"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
340 while true
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
341 do
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
342 while true
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
343 do
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
344 if [ -z "$lang_cpp" ] ; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
345 ERROR=1
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
346 break
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
347 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
348
10
bf159cf9f4b6 improve heatmap::add() by using C++23 ranges-v3
Mike Becker <universe@uap-core.de>
parents: 5
diff changeset
349 TEMP_CXXFLAGS="$TEMP_CXXFLAGS -std=c++23"
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
350 break
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
351 done
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
352 break
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
353 done
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
354
45
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
355 # build type
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
356 if [ "$BUILD_TYPE" = "debug" ]; then
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
357 TEMP_CFLAGS="\${DEBUG_CFLAGS} $TEMP_CFLAGS"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
358 TEMP_CXXFLAGS="\${DEBUG_CXXFLAGS} $TEMP_CXXFLAGS"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
359 fi
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
360 if [ "$BUILD_TYPE" = "release" ]; then
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
361 TEMP_CFLAGS="\${RELEASE_CFLAGS} $TEMP_CFLAGS"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
362 TEMP_CXXFLAGS="\${RELEASE_CXXFLAGS} $TEMP_CXXFLAGS"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
363 fi
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
364
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
365 # add general dependency flags to flags.mk
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
366 echo "# general flags" >> "$TEMP_DIR/flags.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
367 if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
368 echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
369 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
370 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
371 echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
372 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
373 if [ -n "${TEMP_LDFLAGS}" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
374 echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
375 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
376
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
377 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
378 # OPTION VALUES
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
379 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
380
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
381 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
382 # TARGETS
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
383 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
384
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
385 echo >> "$TEMP_DIR/flags.mk"
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
386 echo "configuring global target"
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
387 echo "# flags for unnamed target" >> "$TEMP_DIR/flags.mk"
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
388 TEMP_CFLAGS=
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
389 TEMP_CXXFLAGS=
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
390 TEMP_LDFLAGS=
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
391
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
392
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
393 # Features
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
394 if [ -n "$FEATURE_STATIC" ]; then
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
395 # check dependency
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
396 if dependency_error_static ; then
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
397 # "auto" features can fail and are just disabled in this case
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
398 if [ "$FEATURE_STATIC" = "auto" ]; then
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
399 DISABLE_FEATURE_STATIC=1
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
400 else
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
401 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED static "
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
402 ERROR=1
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
403 fi
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
404 fi
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
405 if [ -n "$DISABLE_FEATURE_STATIC" ]; then
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
406 unset FEATURE_STATIC
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
407 fi
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
408 fi
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
409 if [ -n "$FEATURE_STATIC" ]; then
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
410 :
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
411 else
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
412 :
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
413 fi
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
414 if [ -n "$FEATURE_ASAN" ]; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
415 # check dependency
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
416 if dependency_error_asan ; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
417 # "auto" features can fail and are just disabled in this case
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
418 if [ "$FEATURE_ASAN" = "auto" ]; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
419 DISABLE_FEATURE_ASAN=1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
420 else
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
421 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED asan "
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
422 ERROR=1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
423 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
424 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
425 if [ -n "$DISABLE_FEATURE_ASAN" ]; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
426 unset FEATURE_ASAN
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
427 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
428 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
429 if [ -n "$FEATURE_ASAN" ]; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
430 :
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
431 else
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
432 :
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
433 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
434 if [ -n "$FEATURE_UBSAN" ]; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
435 # check dependency
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
436 if dependency_error_ubsan ; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
437 # "auto" features can fail and are just disabled in this case
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
438 if [ "$FEATURE_UBSAN" = "auto" ]; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
439 DISABLE_FEATURE_UBSAN=1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
440 else
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
441 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED ubsan "
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
442 ERROR=1
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
443 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
444 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
445 if [ -n "$DISABLE_FEATURE_UBSAN" ]; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
446 unset FEATURE_UBSAN
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
447 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
448 fi
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
449 if [ -n "$FEATURE_UBSAN" ]; then
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
450 :
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
451 else
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
452 :
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
453 fi
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
454
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
455
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
456 if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
457 echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
458 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
459 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
460 echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
461 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
462 if [ -n "${TEMP_LDFLAGS}" ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
463 echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
464 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
465
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
466
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
467 # final result
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
468 if [ $ERROR -ne 0 ]; then
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
469 echo
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
470 echo "Error: Unresolved dependencies"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
471 echo "$DEPENDENCIES_FAILED"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
472 abort_configure
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
473 fi
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
474
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
475 echo "configure finished"
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
476 echo
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
477 echo "Toolchain:"
45
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
478 echo " name: $TOOLCHAIN_NAME"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
479 if [ -n "$TOOLCHAIN_CC" ]; then
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
480 echo " cc: $TOOLCHAIN_CC"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
481 fi
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
482 if [ -n "$TOOLCHAIN_CXX" ]; then
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
483 echo " cxx: $TOOLCHAIN_CXX"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
484 fi
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
485 if [ -n "$TOOLCHAIN_WSIZE" ]; then
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
486 echo " word size: $TOOLCHAIN_WSIZE bit"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
487 fi
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
488 if [ -n "$TOOLCHAIN_CSTD" ]; then
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
489 echo " default C std: $TOOLCHAIN_CSTD"
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
490 fi
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
491 echo
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
492 echo "Config:"
45
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
493 echo
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
494 echo "Features:"
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
495 printf ' %-16s' 'static:'
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
496 if [ -n "$FEATURE_STATIC" ]; then
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
497 echo 'on'
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
498 else
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
499 echo 'off'
34
cc9d74d5eb46 add configure option for static linking
Mike Becker <universe@uap-core.de>
parents: 10
diff changeset
500 fi
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
501 printf ' %-16s' 'asan:'
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
502 if [ -n "$FEATURE_ASAN" ]; then
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
503 echo 'on'
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
504 else
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
505 echo 'off'
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
506 fi
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
507 printf ' %-16s' 'ubsan:'
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
508 if [ -n "$FEATURE_UBSAN" ]; then
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
509 echo 'on'
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
510 else
70
a629b831c96d update uwproj
Mike Becker <universe@uap-core.de>
parents: 69
diff changeset
511 echo 'off'
48
c7b37d5e26cf add asan and ubsan features
Mike Becker <universe@uap-core.de>
parents: 45
diff changeset
512 fi
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
513 echo
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
514
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
515 # generate the config.mk file
45
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
516 pwd=`pwd`
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
517 cat > "$TEMP_DIR/config.mk" << __EOF__
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
518 #
45
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
519 # config.mk generated by:
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
520 # pwd: $pwd
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
521 # $0 $@
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
522 #
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
523
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
524 __EOF__
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
525 write_toolchain_defaults "$TEMP_DIR/toolchain.mk"
45
2cb7fdd2ba18 update uwproj
Mike Becker <universe@uap-core.de>
parents: 34
diff changeset
526 cat "$TEMP_DIR/config.mk" "$TEMP_DIR/vars.mk" "$TEMP_DIR/toolchain.mk" "$TEMP_DIR/flags.mk" "$TEMP_DIR/make.mk" > config.mk
0
b4b281ef2d0f project init
Mike Becker <universe@uap-core.de>
parents:
diff changeset
527 rm -Rf "$TEMP_DIR"

mercurial