]> git.saurik.com Git - wxWidgets.git/blame - samples/docvwmdi/makefile.nt
Added script to help make wxMotif via configure; nativdlg sample works again;
[wxWidgets.git] / samples / docvwmdi / makefile.nt
CommitLineData
2108f33a
JS
1#
2# File: makefile.nt
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds docview example (MS VC++).
11# Use FINAL=1 argument to nmake to build final version with no debugging
12# info
13
14# Set WXDIR for your system
15WXDIR = $(WXWIN)
16
17WXUSINGDLL=0
18
19!include $(WXDIR)\src\ntwxwin.mak
20
21THISDIR = $(WXDIR)\samples\docvwmdi
22PROGRAM=docview
23
24OBJECTS = $(PROGRAM).obj doc.obj view.obj
25
26$(PROGRAM): $(PROGRAM).exe
27
28all: wx $(PROGRAM).exe
29
30wx:
31 cd $(WXDIR)\src\msw
32 nmake -f makefile.nt FINAL=$(FINAL)
33 cd $(THISDIR)
34
35wxclean:
36 cd $(WXDIR)\src\msw
37 nmake -f makefile.nt clean
38 cd $(THISDIR)
39
40$(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(PROGRAM).res
41 $(link) @<<
42-out:$(PROGRAM).exe
43$(LINKFLAGS)
44$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
45$(LIBS)
46<<
47
48$(PROGRAM).obj: $(PROGRAM).h doc.h view.h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
49 $(cc) @<<
50$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
51<<
52
53doc.obj: doc.h doc.$(SRCSUFF) $(DUMMYOBJ)
54 $(cc) @<<
55$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
56<<
57
58view.obj: view.h view.$(SRCSUFF) $(DUMMYOBJ)
59 $(cc) @<<
60$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
61<<
62
63$(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc
64 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
65
66
67clean:
68 -erase *.obj
69 -erase *.exe
70 -erase *.res
71 -erase *.map
72 -erase *.pdb
73 -erase *.sbr
74
75