Hash :
e8ebe7e2
Author :
Thomas de Grivel
Date :
2023-12-21T04:01:40
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
## c3
## Copyright 2022,2023 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.
build:
${MAKE} gen
${GMAKE} -C libffi all
${MAKE} -C libtommath build
${MAKE} -C ucd2c build
${MAKE} -C libc3 build
${MAKE} -C ic3 build
${MAKE} -C c3s build
${MAKE} -C test build
all:
${MAKE} gen
${GMAKE} -C libffi all
${MAKE} -C libtommath all
${MAKE} -C ucd2c all
${MAKE} -C libc3 all
${MAKE} -C ic3 all
${MAKE} -C c3s all
${MAKE} -C test all
asan:
${GMAKE} -C libffi all
${MAKE} -C libtommath asan
${MAKE} -C libc3 asan
${MAKE} -C ic3 asan
${MAKE} -C c3s asan
${MAKE} -C test asan
clean:
${GMAKE} -C libffi clean
${MAKE} -C libtommath clean
${MAKE} -C ucd2c clean
${MAKE} -C libc3 clean
${MAKE} -C ic3 clean
${MAKE} -C c3s clean
${MAKE} -C test clean
clean_cov:
${MAKE} -C libtommath clean_cov
${MAKE} -C libc3 clean_cov
${MAKE} -C ic3 clean_cov
${MAKE} -C c3s clean_cov
${MAKE} -C test clean_cov
cov:
${MAKE} gen
${GMAKE} -C libffi all
${MAKE} -C libtommath cov
${MAKE} -C libc3 cov
${MAKE} -C ic3 cov
${MAKE} -C c3s cov
${MAKE} -C test cov
debug:
${GMAKE} -C libffi all
${MAKE} -C libtommath debug
${MAKE} -C libc3 debug
${MAKE} -C ic3 debug
${MAKE} -C c3s debug
${MAKE} -C test debug
demo: build
${MAKE} -C libc3 demo
demo_asan: asan
${MAKE} -C libc3 demo_asan
demo_cov: cov
${MAKE} -C libc3 demo_cov
demo_debug: debug
${MAKE} -C libc3 demo_debug
demo_gl: build
${MAKE} -C libc3 demo_gl
demo_gl_asan: asan
${MAKE} -C libc3 demo_gl_asan
demo_gl_cov: cov
${MAKE} -C libc3 demo_gl_cov
demo_gl_debug: debug
${MAKE} -C libc3 demo_gl_debug
dist: c3-${C3_VERSION}.tar.gz
c3-${C3_VERSION}.tar.gz: c3.index
rm -rf c3-${C3_VERSION}.old
-mv c3-${C3_VERSION} c3-${C3_VERSION}.old
mkdir c3-${C3_VERSION}
pax -rw < c3.index c3-${C3_VERSION}
pax -wz c3-${C3_VERSION} > c3-${C3_VERSION}.tar.gz
c3.index: sources.mk Makefile
for F in ${C3_CONFIGURES} ${C3_MAKEFILES} ${C3_C_SOURCES} ${C3_OBJC_SOURCES} ${C3_OTHER_SOURCES} ${C3_EXTERNAL_SOURCES}; do echo "$$F"; done | sort -u > c3.index
distclean:
${MAKE} -C libtommath distclean
${MAKE} -C ucd2c distclean
${MAKE} -C libc3 distclean
${MAKE} -C ic3 distclean
${MAKE} -C c3s distclean
${MAKE} -C test distclean
gcovr:
${MAKE} -C libc3 gcovr
${MAKE} -C ic3 gcovr
${MAKE} -C c3s gcovr
${MAKE} -C test gcovr
if [ -d "$$HOME/Downloads/c3_gcovr" ]; then bin/gcovr-to-downloads; fi
gdb_demo:
${MAKE} debug
${MAKE} -C libc3 gdb_demo
gdb_demo_gl:
${MAKE} debug
${MAKE} -C libc3 gdb_demo_gl
gdb_ic3:
${MAKE} debug
${MAKE} -C ic3 gdb_ic3
gdb_test:
${MAKE} debug
${MAKE} -C test gdb_test
gen:
${MAKE} -C libc3 gen
ic3:
${MAKE} -C ic3 build
ic3_asan:
${MAKE} -C ic3 asan
ic3_debug:
${MAKE} -C ic3 debug
ic3_gcovr:
${MAKE} clean_cov
${MAKE} ic3_test_cov
${MAKE} gcovr
install:
${GMAKE} -C libffi install
${MAKE} -C libc3 install
${MAKE} -C ic3 install
${MAKE} -C c3s install
libc3_gcovr:
${MAKE} clean_cov
${MAKE} libc3_test_cov
${MAKE} gcovr
libffi:
${GMAKE} -C libffi all
license:
update_header config.subr ${C3_CONFIGURES}
update_header Makefile ${C3_MAKEFILES}
update_header license.h ${C3_C_SOURCES}
lldb_demo:
${MAKE} debug
${MAKE} -C libc3 lldb_demo
lldb_demo_gl:
${MAKE} debug
${MAKE} -C libc3 lldb_demo_gl
lldb_ic3:
${MAKE} debug
${MAKE} -C ic3 lldb_ic3
lldb_test:
${MAKE} debug
${MAKE} -C test lldb_test
test: build
test:
${MAKE} -C test test
if ${HAVE_ASAN}; then ${MAKE} test_asan; fi
test_asan: asan
test_asan:
${MAKE} -C test test_asan
test_cov: cov clean_cov
test_cov:
${MAKE} -C test test_cov
test_debug:
${MAKE} debug
${MAKE} -C test test_debug
test_gcovr:
${MAKE} clean_cov
${MAKE} test_libc3_cov
${MAKE} test_ic3_cov
${MAKE} gcovr
test_ic3: build
${MAKE} -C test test_ic3
test_ic3_asan: asan
${MAKE} -C test test_ic3_asan
test_ic3_cov: cov
${MAKE} -C test test_ic3_cov
test_ic3_debug: debug
${MAKE} -C test test_ic3_debug
test_libc3: build
${MAKE} -C test test_libc3
test_libc3_cov: cov
${MAKE} -C test test_libc3_cov
test_libc3_debug:
${MAKE} debug
${MAKE} -C test test_libc3_debug
.PHONY: \
all \
asan \
build \
c3.index \
c3s \
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 \
ic3 \
install \
libc3 \
libtommath \
libffi \
license \
test \
test_asan \
test_cov \
test_debug \
test_gcovr \
test_ic3
include config.mk
include sources.mk