Hash :
c8b31ddb
Author :
Thomas de Grivel
Date :
2024-07-21T13:36:07
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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394
## kc3
## Copyright 2022-2024 kmx.io <contact@kmx.io>
##
## Permission is hereby granted to use this software granted the above
## copyright notice and this permission paragraph are included in all
## copies and substantial portions of this software.
##
## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
## THIS SOFTWARE.
all:
${MAKE} gen
${MAKE} -C libtommath all
${MAKE} -C ucd2c all
${MAKE} -C libkc3 all
${MAKE} -C ikc3 all
${MAKE} -C kc3s all
${MAKE} -C ekc3 all
${MAKE} -C test all
${MAKE} -C libkc3_window all
asan:
${MAKE} gen
${MAKE} -C libtommath asan
${MAKE} -C libkc3 asan
${MAKE} -C ikc3 asan
${MAKE} -C kc3s asan
${MAKE} -C ekc3 asan
${MAKE} -C test asan
${MAKE} -C libkc3_window asan
build:
${MAKE} gen
${MAKE} -C libtommath build
${MAKE} -C ucd2c build
${MAKE} -C libkc3 build
${MAKE} -C ikc3 build
${MAKE} -C kc3s build
${MAKE} -C ekc3 build
${MAKE} -C test build
${MAKE} -C libkc3_window build
clean:
${MAKE} -C libtommath clean
${MAKE} -C ucd2c clean
${MAKE} -C libkc3 clean
${MAKE} -C ikc3 clean
${MAKE} -C kc3s clean
${MAKE} -C ekc3 clean
${MAKE} -C test clean
${MAKE} -C libkc3_window clean
clean_cov:
${MAKE} -C libtommath clean_cov
${MAKE} -C libkc3 clean_cov
${MAKE} -C ikc3 clean_cov
${MAKE} -C kc3s clean_cov
${MAKE} -C ekc3 clean_cov
${MAKE} -C test clean_cov
${MAKE} -C libkc3_window clean_cov
cov:
${MAKE} gen
${MAKE} -C libtommath cov
${MAKE} -C libkc3 cov
${MAKE} -C ikc3 cov
${MAKE} -C kc3s cov
${MAKE} -C ekc3 cov
${MAKE} -C test cov
${MAKE} -C libkc3_window cov
debug:
${MAKE} -C libtommath debug
${MAKE} -C ucd2c
${MAKE} -C libkc3 debug
${MAKE} -C ikc3 debug
${MAKE} -C kc3s debug
${MAKE} -C ekc3 debug
${MAKE} -C test debug
${MAKE} -C libkc3_window debug
demo: build
${MAKE} -C libkc3_window demo
demo_asan: asan
${MAKE} -C libkc3_window demo_asan
demo_cov: cov
${MAKE} -C libkc3_window demo_cov
demo_debug: debug
${MAKE} -C libkc3_window demo_debug
demo_gl: build
${MAKE} -C libkc3_window demo_gl
demo_gl_asan: asan
${MAKE} -C libkc3_window demo_gl_asan
demo_gl_cov: cov
${MAKE} -C libkc3_window demo_gl_cov
demo_gl_debug: debug
${MAKE} -C libkc3_window demo_gl_debug
dist: kc3-${KC3_VERSION}.tar.gz
kc3-${KC3_VERSION}.tar.gz: kc3.index
rm -rf kc3-${KC3_VERSION}.old
-mv kc3-${KC3_VERSION} kc3-${KC3_VERSION}.old
mkdir kc3-${KC3_VERSION}
pax -rw < kc3.index kc3-${KC3_VERSION}
pax -wz kc3-${KC3_VERSION} > kc3-${KC3_VERSION}.tar.gz
kc3.index: sources.mk Makefile
for F in ${KC3_CONFIGURES} ${KC3_MAKEFILES} ${KC3_C_SOURCES} ${KC3_OBJC_SOURCES} ${KC3_OTHER_SOURCES} ${KC3_EXTERNAL_SOURCES}; do echo "$$F"; done | sort -u > kc3.index
distclean:
${MAKE} -C libtommath distclean
${MAKE} -C ucd2c distclean
${MAKE} -C libkc3 distclean
${MAKE} -C ikc3 distclean
${MAKE} -C kc3s distclean
${MAKE} -C ekc3 distclean
${MAKE} -C test distclean
${MAKE} -C libkc3_window distclean
gcovr:
${MAKE} -C libkc3 gcovr
${MAKE} -C ikc3 gcovr
${MAKE} -C kc3s gcovr
${MAKE} -C ekc3 gcovr
${MAKE} -C test gcovr
${MAKE} -C libkc3_window gcovr
if [ -d "$$HOME/Downloads/kc3_gcovr" ]; then bin/gcovr-to-downloads; fi
gdb_demo:
${MAKE} debug
${MAKE} -C libkc3 gdb_demo
gdb_demo_gl:
${MAKE} debug
${MAKE} -C libkc3 gdb_demo_gl
gdb_ikc3:
${MAKE} -C libtommath debug
${MAKE} -C ucd2c
${MAKE} -C libkc3 debug
${MAKE} -C ikc3 gdb_ikc3
gdb_test:
${MAKE} debug
${MAKE} -C test gdb_test
gdb_test_ekc3:
${MAKE} debug
${MAKE} -C test gdb_test_ekc3
gdb_test_http:
${MAKE} -C libtommath debug
${MAKE} -C ucd2c
${MAKE} -C libkc3 debug
${MAKE} -C ikc3 debug
${MAKE} -C kc3s debug
${MAKE} -C test gdb_test_http
gen:
${MAKE} -C libkc3 gen
ikc3:
${MAKE} -C ikc3 build
ikc3_asan:
${MAKE} -C ikc3 asan
ikc3_debug:
${MAKE} -C ikc3 debug
ikc3_gcovr:
${MAKE} clean_cov
${MAKE} ikc3_test_cov
${MAKE} gcovr
install:
${MAKE} -C libkc3 install
${MAKE} -C ikc3 install
${MAKE} -C kc3s install
${MAKE} -C ekc3 install
${MAKE} -C libkc3_window install
lib_links:
ln -sf ../../../ekc3/.libs/libekc3.so lib/kc3/0.1/ekc3.so
ln -sf ../../../http/.libs/libkc3_http.so lib/kc3/0.1/http.so
libkc3_gcovr:
${MAKE} clean_cov
${MAKE} libkc3_test_cov
${MAKE} gcovr
license:
update_header config.subr ${KC3_CONFIGURES}
update_header Makefile ${KC3_MAKEFILES}
update_header libkc3/license.c ${KC3_C_SOURCES}
lldb_demo:
${MAKE} debug
${MAKE} -C libkc3 lldb_demo
lldb_demo_gl:
${MAKE} debug
${MAKE} -C libkc3 lldb_demo_gl
lldb_ikc3:
${MAKE} debug
${MAKE} -C ikc3 lldb_ikc3
lldb_test:
${MAKE} debug
${MAKE} -C test lldb_test
test:
${MAKE} -C libtommath build
${MAKE} -C libkc3 build
${MAKE} -C ikc3 build
${MAKE} -C kc3s build
${MAKE} -C ekc3 build
${MAKE} -C test test
if ${HAVE_ASAN}; then ${MAKE} test_asan; fi
test_asan:
${MAKE} -C libtommath asan
${MAKE} -C libkc3 asan
${MAKE} -C ikc3 asan
${MAKE} -C kc3s asan
${MAKE} -C ekc3 asan
${MAKE} -C test test_asan
test_cov: cov clean_cov
${MAKE} -C libtommath cov clean_cov
${MAKE} -C libkc3 cov clean_cov
${MAKE} -C ikc3 cov clean_cov
${MAKE} -C kc3s cov clean_cov
${MAKE} -C ekc3 cov clean_cov
${MAKE} -C test test_cov
test_debug:
${MAKE} -C libtommath debug
${MAKE} -C libkc3 debug
${MAKE} -C ikc3 debug
${MAKE} -C kc3s debug
${MAKE} -C ekc3 debug
${MAKE} -C test test_debug
test_ekc3:
${MAKE} -C libtommath build
${MAKE} -C libkc3 build
${MAKE} -C ikc3 build
${MAKE} -C kc3s build
${MAKE} -C ekc3 build
${MAKE} -C test test_ekc3
test_ekc3_asan:
${MAKE} -C libtommath asan
${MAKE} -C libkc3 asan
${MAKE} -C ikc3 asan
${MAKE} -C kc3s asan
${MAKE} -C ekc3 asan
${MAKE} -C test test_ekc3_asan
test_ekc3_cov:
${MAKE} -C libtommath cov
${MAKE} -C libkc3 cov
${MAKE} -C ikc3 cov
${MAKE} -C kc3s cov
${MAKE} -C ekc3 cov
${MAKE} -C test test_ekc3_cov
test_ekc3_debug:
${MAKE} -C libtommath debug
${MAKE} -C libkc3 debug
${MAKE} -C ikc3 debug
${MAKE} -C kc3s debug
${MAKE} -C ekc3 debug
${MAKE} -C test test_ekc3_debug
test_gcovr:
${MAKE} clean_cov
${MAKE} test_libkc3_cov
${MAKE} test_ikc3_cov
${MAKE} test_ekc3_cov
${MAKE} gcovr
test_http:
${MAKE} -C libtommath build
${MAKE} -C libkc3 build
${MAKE} -C ikc3 build
${MAKE} -C kc3s build
${MAKE} -C http build
${MAKE} -C test test_http
test_http_asan:
${MAKE} -C libtommath asan
${MAKE} -C libkc3 asan
${MAKE} -C ikc3 asan
${MAKE} -C kc3s asan
${MAKE} -C http asan
${MAKE} -C test test_http_asan
test_http_cov:
${MAKE} -C libtommath cov
${MAKE} -C libkc3 cov
${MAKE} -C ikc3 cov
${MAKE} -C kc3s cov
${MAKE} -C http cov
${MAKE} -C test test_http_cov
test_http_debug:
${MAKE} -C libtommath debug
${MAKE} -C libkc3 debug
${MAKE} -C ikc3 debug
${MAKE} -C kc3s debug
${MAKE} -C http debug
${MAKE} -C test test_http_debug
test_ikc3:
${MAKE} -C libtommath build
${MAKE} -C libkc3 build
${MAKE} -C ikc3 build
${MAKE} -C test test_ikc3
test_ikc3_asan:
${MAKE} -C libtommath asan
${MAKE} -C libkc3 asan
${MAKE} -C ikc3 asan
${MAKE} -C test test_ikc3_asan
test_ikc3_cov:
${MAKE} -C libtommath cov
${MAKE} -C libkc3 cov
${MAKE} -C ikc3 cov
${MAKE} -C test test_ikc3_cov
test_ikc3_debug:
${MAKE} -C libtommath debug
${MAKE} -C libkc3 debug
${MAKE} -C ikc3 debug
${MAKE} -C test test_ikc3_debug
test_libkc3: build
${MAKE} -C test test_libkc3
test_libkc3_cov: cov
${MAKE} -C test test_libkc3_cov
test_libkc3_debug:
${MAKE} debug
${MAKE} -C test test_libkc3_debug
.PHONY: \
all \
asan \
build \
kc3.index \
kc3s \
cov \
clean \
clean_cov \
debug \
demo \
demo_asan \
demo_cov \
demo_debug \
demo_gl \
demo_gl_asan \
demo_gl_cov \
demo_gl_debug \
dist \
gcovr \
ikc3 \
install \
libkc3 \
libtommath \
license \
test \
test_asan \
test_cov \
test_debug \
test_gcovr \
test_ikc3
include config.mk
include sources.mk