  # Which Emacs to use to convert TIT files to Emacs Lisp files,
  # byte-compile Emacs Lisp files, and generate the file leim-list.el.
 -EMACS = ../src/emacs
-+EMACS = ../src/emacs.nexe
++EMACS = ../src/emacs${EXEEXT}
  
  buildlisppath=${srcdir}/../lisp
  

   Lisp_Object absname, dir, encoded;
   Lisp_Object handler;
 
@@ -2731,6 +2741,8 @@ DEFUN ("file-writable-p", Ffile_writable_p, Sfile_writable_p, 1, 1, 0,
   return (check_writable (!NILP (dir) ? SSDATA (dir) : "")
 	  ? Qt : Qnil);
 #endif

+	  regex.o $(LOADLIBES) -o ctags${EXEEXT}
 
 profile${EXEEXT}: ${srcdir}/profile.c $(config_h)
 	$(CC) ${ALL_CFLAGS} ${srcdir}/profile.c \
-	  $(LOADLIBES) $(LIB_CLOCK_GETTIME) -o profile
+	  $(LOADLIBES) $(LIB_CLOCK_GETTIME) -o profile${EXEEXT}
