1
2
3
4
5
6
7
8
|
#!/bin/sh
prefix="@prefix@"
exec_prefix="@exec_prefix@"
libdir="@libdir@"
CFLAGS=""
CPPFLAGS="-I@includedir@"
CXXFLAGS=""
OBJC="@OBJC@"
|
>
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
ENV_CPPFLAGS="$CPPFLAGS"
ENV_OBJCFLAGS="$OBJCFLAGS"
ENV_LIBS="$LIBS"
ENV_LDFLAGS="$LDFLAGS"
prefix="@prefix@"
exec_prefix="@exec_prefix@"
libdir="@libdir@"
CFLAGS=""
CPPFLAGS="-I@includedir@"
CXXFLAGS=""
OBJC="@OBJC@"
|
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
|
obj="${1%.m}.o"
objs="$objs $obj"
if test ! -f "$obj" -o "$1" -nt "$obj"; then
link="yes"
echo "Compiling $1..."
$OBJC $CPPFLAGS $OBJCFLAGS \
-c -o $obj $1 || exit $?
fi
;;
*)
echo "Only .m files can be compiled!" 1>&2
exit 1
;;
esac
shift
done
if test x"$link" = x"yes"; then
echo "Linking $out..."
$OBJC -o $out $objs $LIBS $LDFLAGS
exit $?
fi
echo "Nothing to do for $out..."
exit 0
}
|
>
|
|
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
|
obj="${1%.m}.o"
objs="$objs $obj"
if test ! -f "$obj" -o "$1" -nt "$obj"; then
link="yes"
echo "Compiling $1..."
$OBJC $CPPFLAGS $OBJCFLAGS \
$ENV_CPPFLAGS $ENV_OBJCFLAGS \
-c -o $obj $1 || exit $?
fi
;;
*)
echo "Only .m files can be compiled!" 1>&2
exit 1
;;
esac
shift
done
if test x"$link" = x"yes"; then
echo "Linking $out..."
$OBJC -o $out $objs $LIBS $ENV_LIBS $LDFLAGS $ENV_LDFLAGS
exit $?
fi
echo "Nothing to do for $out..."
exit 0
}
|