6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds docview example (MS VC++).
11 # Use FINAL=1 argument to nmake to build final version with no debugging
14 # Set WXDIR for your system
19 !include $(WXDIR)\src\ntwxwin.mak
21 THISDIR = $(WXDIR)\samples\docvwmdi
24 OBJECTS = $(PROGRAM).obj doc.obj view.obj
26 $(PROGRAM): $(PROGRAM).exe
28 all: wx $(PROGRAM).exe
32 nmake -f makefile.nt FINAL=$(FINAL)
37 nmake -f makefile.nt clean
40 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
44 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
48 $(PROGRAM).obj: $(PROGRAM).h doc.h view.h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
50 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
53 doc.obj: doc.h doc.$(SRCSUFF) $(DUMMYOBJ)
55 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
58 view.obj: view.h view.$(SRCSUFF) $(DUMMYOBJ)
60 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
63 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
64 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc