X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a28f119c8864aa53bc1c33bf57aa9976f358f3b..475edb11e0aa7f103478da219253d99db480d55b:/src/makelib.vc diff --git a/src/makelib.vc b/src/makelib.vc index b6a664d4da..2c4b8b9b5a 100644 --- a/src/makelib.vc +++ b/src/makelib.vc @@ -9,12 +9,19 @@ # Use FINAL=1 argument to nmake to build final version with no debugging # info -# Set WXDIR for your system +# Set WXDIR for your system (hint, set an environment variable named WXWIN) WXDIR = $(WXWIN) !include $(WXDIR)\src\makevc.env -all: $(LIBTARGET) +!if "$(RM)" == "" +RM= erase +!endif + +all: $(D) $(EXTRATARGETS) $(LIBTARGET) + +$(D) : + mkdir $(D) wx: cd $(WXDIR)\src\msw @@ -25,7 +32,7 @@ wxclean: nmake -f makefile.vc clean $(LIBTARGET): $(OBJECTS) - -erase $(LIBTARGET) + -$(RM) $(LIBTARGET) $(implib) @<< -out:$(LIBTARGET) -machine:$(CPU) @@ -33,10 +40,10 @@ $(OBJECTS) << clean: - -erase $(LIBTARGET) - -erase $(OBJECTS) - -erase *.exe - -erase *.res - -erase *.map - -erase *.sbr - -erase *.pdb + -$(RM) $(LIBTARGET) + -$(RM) $(OBJECTS) + -$(RM) *.exe + -$(RM) *.res + -$(RM) *.map + -$(RM) *.sbr + -$(RM) *.pdb