diff --git a/pd/src/makefile.mingw b/pd/src/makefile.mingw
index aa79bd513b3063e1229604414ece99e963d8a73c..dab5222fab60f0ba12492ca964b6180fb6798f7b 100755
--- a/pd/src/makefile.mingw
+++ b/pd/src/makefile.mingw
@@ -106,7 +106,8 @@ PMOBJ =  $(PMSRC:.c=.o)
 
 GSRC =
 
-HEADERS = g_all_guis.h m_imp.h g_canvas.h m_pd.h s_stuff.h \
+HEADERS = g_all_guis.h m_imp.h g_canvas.h g_magicglass.h m_pd.h s_stuff.h \
+	g_undo.h x_preset.h \
 	$(wildcard ../portaudio/common/*.h) s_audio_paring.h
 
 SRC = g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c g_io.c \
@@ -119,7 +120,8 @@ SRC = g_canvas.c g_graph.c g_text.c g_rtext.c g_array.c g_template.c g_io.c \
     d_math.c d_fft.c d_fft_mayer.c d_fftroutine.c d_array.c d_global.c \
     d_delay.c d_resample.c x_arithmetic.c x_connective.c x_interface.c \
     x_midi.c x_misc.c x_time.c x_acoustics.c x_net.c x_qlist.c x_gui.c \
-    x_list.c d_soundfile.c g_slider.c import.c
+    x_list.c d_soundfile.c g_slider.c import.c g_magicglass.c x_preset.c \
+    g_undo.c
 
 SRSRC = u_pdsend.c u_pdreceive.c