Differences From Artifact [932a63db2d]:
- File
utils/objfw-compile
— part of check-in
[0869b36536]
at
2012-07-29 15:23:25
on branch trunk
— objfw-config: Always add -g to the flags.
If no debug flags are desired, they can be stripped later. But usually,
objfw-compile is used to quickly test things, therefore -g by default
makes a lot of sense. (user: js, size: 5121) [annotate] [blame] [check-ins using]
To Artifact [4007cbbe1d]:
- File utils/objfw-compile — part of check-in [c1717f9bab] at 2012-08-01 10:50:09 on branch trunk — objfw-compile: Add support for --builddir. (user: js, size: 5312) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
61 62 63 64 65 66 67 68 69 70 71 72 73 74 | printf "\033[0m\n" exit $2 } srcs="" out="" objs="" link="no" link_stdcpp="no" lib="no" plugin="no" out_prefix="" out_suffix="" | > | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | printf "\033[0m\n" exit $2 } srcs="" out="" objs="" builddir="" link="no" link_stdcpp="no" lib="no" plugin="no" out_prefix="" out_suffix="" |
︙ | ︙ | |||
96 97 98 99 100 101 102 103 104 105 106 107 108 109 | export LIB_MINOR="${1#*.}" lib="yes" OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --lib-cflags)" out_prefix="$($OBJFW_CONFIG --lib-prefix)" out_suffix="$($OBJFW_CONFIG --lib-suffix)" ;; -D) shift CPPFLAGS="$CPPFLAGS -D$1" ;; -D*) CPPFLAGS="$CPPFLAGS $1" ;; | > > > > | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | export LIB_MINOR="${1#*.}" lib="yes" OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --lib-cflags)" out_prefix="$($OBJFW_CONFIG --lib-prefix)" out_suffix="$($OBJFW_CONFIG --lib-suffix)" ;; --builddir) shift builddir="$1" ;; -D) shift CPPFLAGS="$CPPFLAGS -D$1" ;; -D*) CPPFLAGS="$CPPFLAGS $1" ;; |
︙ | ︙ | |||
185 186 187 188 189 190 191 192 193 194 195 196 | shift done if test x"$out" = x""; then echo "No output name specified! Use -o or --out!" exit 1 fi for i in $srcs; do case $i in *.m) if test x"$lib" = x"yes"; then | > > > > > > > > > > | | | | | | | 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 | shift done if test x"$out" = x""; then echo "No output name specified! Use -o or --out!" exit 1 fi case "$builddir" in "") ;; */) ;; *) builddir="$builddir/" ;; esac for i in $srcs; do case $i in *.m) if test x"$lib" = x"yes"; then obj="$builddir${i%.m}.lib.o" elif test x"$plugin" = x"yes"; then obj="$builddir${i%.m}.plugin.o" else obj="$builddir${i%.m}.o" fi ;; *.mm) if test x"$lib" = x"yes"; then obj="$builddir${i%.mm}.lib.o" elif test x"$plugin" = x"yes"; then obj="$builddir${i%.mm}.plugin.o" else obj="$builddir${i%.mm}.o" fi ;; esac objs="$objs $obj" build="no" deps=$($OBJC -E -M $CPPFLAGS $i | sed 's/.*: //' | sed 's/\\//g') |
︙ | ︙ |