ObjFW  Diff

Differences From Artifact [92974a8bf3]:

To Artifact [f1957bd739]:


52
53
54
55
56
57
58



59
60









61
62
63
64
65
66
67
	esac

	while test x"$1" != "x"; do
		case "$1" in
			*.m)
				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
				;;







>
>
>

|
>
>
>
>
>
>
>
>
>







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
	esac

	while test x"$1" != "x"; do
		case "$1" in
			*.m)
				obj="${1%.m}.o"
				objs="$objs $obj"
				build="no"
				deps=$($OBJC -E -M $CPPFLAGS $ENV_CPPFLAGS $1 |\
				       sed 's/.*: //' | sed 's/\\//g')

				if test -f "$obj"; then
					for dep in $deps; do
						test "$dep" -nt $obj && \
							build="yes"
					done
				else
					build="yes"
				fi

				if test x"$build" = x"yes"; then
					link="yes"
					echo "Compiling $1..."
					$OBJC $CPPFLAGS $OBJCFLAGS \
						$ENV_CPPFLAGS $ENV_OBJCFLAGS \
						-c -o $obj $1 || exit $?
				fi
				;;