diff --git a/Makefile.in b/Makefile.in
index 36f6046..41d4887 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -13,7 +13,7 @@ CFLAGS =
 all: src/mod_auth_kerb.so
 
 src/mod_auth_kerb.so: src/mod_auth_kerb.c $(SPNEGO_SRCS)
-	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c" "src/mod_auth_kerb.c"
+	apxs -c ${CPPFLAGS} ${LDFLAGS} mod_auth_kerb.s
 
 install:
 	./apxs.sh "${CPPFLAGS}" "${LDFLAGS}" "${SPNEGO_SRCS}" "${APXS}" "-c -i" "src/mod_auth_kerb.c"
