wxWidgets/src/makelib.vc
George Tasker fcc864256f Added code to create $D (debug or release) subdir to put the .OBJ files into.
Changed code to use the RM environment variable (if one exists) to delete files.  If one does not exist, the ERASE command is used which is what was used previously


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-01-16 10:57:48 +00:00

50 lines
882 B
Plaintext

#
# File: makelib.vc
# Author: Julian Smart
# Created: 1999
# 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 (hint, set an environment variable named WXWIN)
WXDIR = $(WXWIN)
!include $(WXDIR)\src\makevc.env
!if "$(RM)" == ""
RM= erase
!endif
all: $(D) $(EXTRATARGETS) $(LIBTARGET)
$(D) :
mkdir $(D)
wx:
cd $(WXDIR)\src\msw
nmake -f makefile.vc FINAL=$(FINAL)
wxclean:
cd $(WXDIR)\src\msw
nmake -f makefile.vc clean
$(LIBTARGET): $(OBJECTS)
-$(RM) $(LIBTARGET)
$(implib) @<<
-out:$(LIBTARGET)
-machine:$(CPU)
$(OBJECTS)
<<
clean:
-$(RM) $(LIBTARGET)
-$(RM) $(OBJECTS)
-$(RM) *.exe
-$(RM) *.res
-$(RM) *.map
-$(RM) *.sbr
-$(RM) *.pdb