X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee252037cfbe432c4d316893ce5da5abb97b5ec7..4dc8d4b7c20b87855c0c11efcb3894be5d4bf2b2:/src/makeprog.sc?ds=sidebyside

diff --git a/src/makeprog.sc b/src/makeprog.sc
index 2a9a5fbe15..165c33ca60 100644
--- a/src/makeprog.sc
+++ b/src/makeprog.sc
@@ -6,18 +6,23 @@ INCLUDE=$(INCDIR)
 
 include $(WXDIR)\src\makesc.env
 
-$(TARGET).exe: $(TARGET).obj $(TARGET).res
-	link $(LDFLAGS) /DELEXECUTABLE /RC  $*, $@, $*, $(LIBDIR)\ $(LIBS)
+$(TARGET).exe: $(OBJECTS) $(TARGET).res
+	link $(LDFLAGS) /DELEXECUTABLE /RC -L/exet:nt/su:windows $(OBJECTS), $@, $*, $(LIBDIR)\ $(LIBS)
     
 
-sc32.def:
-     echo EXETYPE NT > sc32.def
-     echo SUBSYSTEM WINDOWS >> sc32.def
-
 clean:
     -del *.obj
 	-del *.exe
 	-del *.res
 	-del *.map
 	-del *.rws
-    -del sc16.def
+    -del *.sym
+
+
+cleanexe:
+    -del *.exe
+
+relink: cleanexe $(TARGET).exe
+
+
+