# 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
nmake -f makefile.vc clean
$(LIBTARGET): $(OBJECTS)
- -erase $(LIBTARGET)
+ -$(RM) $(LIBTARGET)
$(implib) @<<
-out:$(LIBTARGET)
-machine:$(CPU)
<<
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