-INSTALL= install -o 0 -g 0
-INSTALL_LIB= $(INSTALL) -m 755
-INSTALL_BIN= $(INSTALL) -m 755
-INSTALL_HDR= $(INSTALL) -m 644
+AC_INSTALL= @INSTALL@
+ifeq ($(AC_INSTALL),./install-sh -c)
+INSTALL= $(srcdir)/../$(AC_INSTALL)
+else
+INSTALL= $(AC_INSTALL)
+endif
+
+INSTALL_PROGRAM= $(INSTALL) -m 755 $(INSTALL_PROGRAM_FLAGS)
+INSTALL_DATA= $(INSTALL) -m 644
+
+all: $(TARGETS)
+
+clean mostlyclean:
+ rm -f *.o *.tmp* *.so *.so.*