Overview
| Comment: | utils/objfw-compile: Small improvements |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
e8c34186938496e11037633558b7b938 |
| User & Date: | js on 2015-05-02 16:41:51 |
| Other Links: | manifest | tags |
Context
|
2015-05-02
| ||
| 21:46 | FD_SETSIZE is not (maximum FD number + 1) on Win32 (check-in: a2738e1a3d user: js tags: trunk) | |
| 16:41 | utils/objfw-compile: Small improvements (check-in: e8c3418693 user: js tags: trunk) | |
|
2015-04-26
| ||
| 20:48 | utils/ofhttp: Allow specifying headers and proxy (check-in: ac6dadc698 user: js tags: trunk) | |
Changes
Modified utils/objfw-compile from [895ceb0142] to [bc42e9bea8].
| ︙ | ︙ | |||
11 12 13 14 15 16 17 | # # Alternatively, it may be distributed under the terms of the GNU General # Public License, either version 2 or 3, which can be found in the file # LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this # file. # | | | | | > | > | | | > | | 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 |
#
# Alternatively, it may be distributed under the terms of the GNU General
# Public License, either version 2 or 3, which can be found in the file
# LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
# file.
#
if test x"$(basename "$0")" != x"objfw-compile"; then
OBJFW_CONFIG="$(basename "$0" | sed 's/-objfw-compile$//')-objfw-config"
else
OBJFW_CONFIG="objfw-config"
fi
if ! which $OBJFW_CONFIG >/dev/null 2>&1; then
echo "You need to have ObjFW and $OBJFW_CONFIG installed!"
exit 1
fi
CPPFLAGS="$CPPFLAGS $($OBJFW_CONFIG --cppflags)"
OBJC="$($OBJFW_CONFIG --objc)"
OBJCFLAGS="$OBJCFLAGS $($OBJFW_CONFIG --objcflags) -Wall -g"
LIBS="$LIBS $($OBJFW_CONFIG --libs)"
LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --ldflags --rpath)"
if test x"$1" = "x"; then
echo "Syntax: objfw-compile -o outname source1.m source2.m ..."
exit 1
fi
status_compiling() {
printf "\033[K\033[0;33mCompiling \033[1;33m%s\033[0;33m...\033[0m\r" \
"$1"
}
status_compiled() {
printf "\033[K\033[0;32mSuccessfully compiled \033[1;32m%s\033[0;32m." \
"$1"
printf "\033[0m\n"
}
status_compile_failed() {
printf "\033[K\033[0;31mFailed to compile \033[1;31m%s\033[0;31m!" "$1"
printf "\033[0m\n"
exit $2
}
status_linking() {
printf "\033[K\033[0;33mLinking \033[1;33m%s\033[0;33m...\033[0m\r" "$1"
}
status_linked() {
printf "\033[K\033[0;32mSuccessfully linked \033[1;32m%s\033[0;32m." \
"$1"
printf "\033[0m\n"
}
status_link_failed() {
printf "\033[K\033[0;31mFailed to link \033[1;31m%s\033[0;31m!" "$1"
printf "\033[0m\n"
exit $2
}
srcs=""
out=""
objs=""
|
| ︙ | ︙ |