1999-01-24 19:13:55 +00:00
|
|
|
#
|
|
|
|
# File: makelib.vc
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1999
|
1999-11-08 07:10:11 +00:00
|
|
|
# Updated:
|
1999-01-24 19:13:55 +00:00
|
|
|
# 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
|
|
|
|
|
1999-12-17 19:47:51 +00:00
|
|
|
# Set WXDIR for your system (hint, set an environment variable named WXWIN)
|
1999-12-16 21:00:59 +00:00
|
|
|
WXDIR = $(WXWIN)
|
1999-01-24 19:13:55 +00:00
|
|
|
|
|
|
|
!include $(WXDIR)\src\makevc.env
|
|
|
|
|
2001-01-16 10:57:48 +00:00
|
|
|
!if "$(RM)" == ""
|
|
|
|
RM= erase
|
|
|
|
!endif
|
|
|
|
|
|
|
|
all: $(D) $(EXTRATARGETS) $(LIBTARGET)
|
1999-01-24 19:13:55 +00:00
|
|
|
|
2000-07-26 11:53:38 +00:00
|
|
|
$(D) :
|
|
|
|
mkdir $(D)
|
|
|
|
|
1999-01-24 19:13:55 +00:00
|
|
|
wx:
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
nmake -f makefile.vc FINAL=$(FINAL)
|
|
|
|
|
|
|
|
wxclean:
|
|
|
|
cd $(WXDIR)\src\msw
|
|
|
|
nmake -f makefile.vc clean
|
|
|
|
|
|
|
|
$(LIBTARGET): $(OBJECTS)
|
2001-01-16 10:57:48 +00:00
|
|
|
-$(RM) $(LIBTARGET)
|
1999-01-24 19:13:55 +00:00
|
|
|
$(implib) @<<
|
|
|
|
-out:$(LIBTARGET)
|
|
|
|
-machine:$(CPU)
|
|
|
|
$(OBJECTS)
|
|
|
|
<<
|
|
|
|
|
|
|
|
clean:
|
2001-01-16 10:57:48 +00:00
|
|
|
-$(RM) $(LIBTARGET)
|
|
|
|
-$(RM) $(OBJECTS)
|
|
|
|
-$(RM) *.exe
|
|
|
|
-$(RM) *.res
|
|
|
|
-$(RM) *.map
|
|
|
|
-$(RM) *.sbr
|
|
|
|
-$(RM) *.pdb
|