X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d4b632ba3c0e5e5c43412d2d7a2b485b8fcebf2..e044f6001e70d815f72d3911ce6bd01255847ecd:/src/makelib.vc diff --git a/src/makelib.vc b/src/makelib.vc index f4ce264a9d..2c4b8b9b5a 100644 --- a/src/makelib.vc +++ b/src/makelib.vc @@ -2,19 +2,26 @@ # File: makelib.vc # Author: Julian Smart # Created: 1999 -# Updated: +# Updated: # Copyright: (c) Julian Smart # # Makefile : Builds a library for a utility # Use FINAL=1 argument to nmake to build final version with no debugging # info -# Set WXDIR for your system -WXDIR = j:\dev\wx2\wxWindows +# 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