1998-05-22 15:57:05 -04:00
|
|
|
#
|
|
|
|
# File: makefile.nt
|
|
|
|
# Author: Julian Smart
|
1999-01-24 14:13:55 -05:00
|
|
|
# Created: 1999
|
1999-12-17 14:47:51 -05:00
|
|
|
# Updated:
|
1999-01-24 14:13:55 -05:00
|
|
|
# Copyright: (c) Julian Smart
|
1998-05-22 15:57:05 -04:00
|
|
|
#
|
1999-01-24 14:13:55 -05:00
|
|
|
# Makefile environment for building samples. Include this from
|
|
|
|
# your own makefile.
|
1998-05-22 15:57:05 -04:00
|
|
|
# Use FINAL=1 argument to nmake to build final version with no debugging
|
|
|
|
# info
|
|
|
|
|
1999-12-20 14:04:48 -05:00
|
|
|
# Set WXDIR for your system
|
1999-12-17 14:47:51 -05:00
|
|
|
WXDIR = $(WXWIN)
|
1998-05-22 15:57:05 -04:00
|
|
|
|
|
|
|
WXUSINGDLL=0
|
|
|
|
|
1999-01-24 14:13:55 -05:00
|
|
|
!include $(WXDIR)\src\makevc.env
|
1998-05-22 15:57:05 -04:00
|
|
|
|
2001-01-16 05:58:34 -05:00
|
|
|
!if "$(RM)" == ""
|
|
|
|
RM= erase
|
|
|
|
!endif
|
|
|
|
|
1999-11-08 00:20:31 -05:00
|
|
|
all: $(PROGRAM).exe
|
1998-05-22 15:57:05 -04:00
|
|
|
|
|
|
|
wx:
|
|
|
|
cd $(WXDIR)\src\msw
|
1999-01-24 14:13:55 -05:00
|
|
|
nmake -f makefile.vc FINAL=$(FINAL)
|
|
|
|
# cd $(THISDIR)
|
1998-05-22 15:57:05 -04:00
|
|
|
|
|
|
|
wxclean:
|
|
|
|
cd $(WXDIR)\src\msw
|
1999-01-24 14:13:55 -05:00
|
|
|
nmake -f makefile.vc clean
|
|
|
|
# cd $(THISDIR)
|
1998-05-22 15:57:05 -04:00
|
|
|
|
2001-03-13 16:50:41 -05:00
|
|
|
|
2001-03-30 08:17:47 -05:00
|
|
|
!if "$(wxUSE_GUI)" == ""
|
|
|
|
wxUSE_GUI=1
|
|
|
|
!endif
|
|
|
|
|
2001-06-06 07:17:30 -04:00
|
|
|
!if "$(wxUSE_GUI)" == "1"
|
|
|
|
|
|
|
|
#!if "$(WXUSINGDLL)" == "1"
|
2002-03-26 16:54:23 -05:00
|
|
|
DUMMYOBJ=
|
2001-06-06 07:17:30 -04:00
|
|
|
#!endif
|
2001-03-13 16:50:41 -05:00
|
|
|
|
2000-03-19 09:47:13 -05:00
|
|
|
$(PROGRAM).exe: $(WXLIB) $(OBJECTS) $(PROGRAM).res
|
1998-05-22 15:57:05 -04:00
|
|
|
$(link) @<<
|
|
|
|
-out:$(PROGRAM).exe
|
|
|
|
$(LINKFLAGS)
|
2000-03-19 09:47:13 -05:00
|
|
|
$(OBJECTS) $(DUMMYOBJ) $(PROGRAM).res
|
1998-05-22 15:57:05 -04:00
|
|
|
$(LIBS)
|
|
|
|
<<
|
|
|
|
|
1999-11-10 08:26:55 -05:00
|
|
|
$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
|
2000-03-03 06:10:51 -05:00
|
|
|
$(rc) -r /i$(WXDIR)\include /i$(WXDIR)\contrib\include -fo$@ $(PROGRAM).rc
|
1999-11-10 08:26:55 -05:00
|
|
|
|
2001-03-13 16:50:41 -05:00
|
|
|
!else
|
|
|
|
|
|
|
|
$(PROGRAM).exe: $(WXLIB) $(OBJECTS)
|
|
|
|
$(link) @<<
|
|
|
|
-out:$(PROGRAM).exe
|
|
|
|
$(LINKFLAGS)
|
|
|
|
$(OBJECTS) $(DUMMYOBJ)
|
|
|
|
$(LIBS)
|
|
|
|
<<
|
|
|
|
|
|
|
|
!endif
|
|
|
|
|
|
|
|
|
1998-05-22 15:57:05 -04:00
|
|
|
clean:
|
2001-01-16 05:58:34 -05:00
|
|
|
-$(RM) $(OBJECTS)
|
|
|
|
-$(RM) *.exe
|
|
|
|
-$(RM) *.res
|
|
|
|
-$(RM) *.map
|
|
|
|
-$(RM) *.sbr
|
|
|
|
-$(RM) *.pdb
|