]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/samples/ogledit/makefile.nt
Removed print.cpp, added tokenizr.tex
[wxWidgets.git] / utils / ogl / samples / ogledit / makefile.nt
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
15 WXDIR = $(WXWIN)
16
17 !include $(WXDIR)\src\ntwxwin.mak
18
19 THISDIR = $(WXDIR)\utils\ogl\samples\ogledit
20
21 OGLDIR = $(WXDIR)\utils\ogl
22 OGLINC = $(OGLDIR)\src
23 OGLLIB = $(WXDIR)\lib\ogl.lib
24
25 PROGRAM=ogledit
26
27 EXTRALIBS=$(OGLLIB)
28 EXTRAINC=/I$(OGLINC)
29
30 OBJECTS = $(PROGRAM).obj doc.obj view.obj palette.obj
31
32 $(PROGRAM): $(PROGRAM).exe
33
34 all: $(PROGRAM).exe
35
36 wx:
37 cd $(WXDIR)\src\msw
38 nmake -f makefile.nt FINAL=$(FINAL)
39 cd $(THISDIR)
40
41 wxclean:
42 cd $(WXDIR)\src\msw
43 nmake -f makefile.nt clean
44 cd $(THISDIR)
45
46 ogl:
47 cd $(OGLDIR)\src
48 nmake -f makefile.nt FINAL=$(FINAL)
49 cd $(THISDIR)
50
51 $(PROGRAM).exe: $(DUMMYOBJ) $(WXLIB) $(OBJECTS) $(OGLLIB) $(PROGRAM).res
52 $(link) @<<
53 -out:$(PROGRAM).exe
54 $(LINKFLAGS)
55 $(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res
56 $(LIBS)
57 <<
58
59 $(PROGRAM).obj: $(PROGRAM).h doc.h view.h palette.h $(PROGRAM).$(SRCSUFF) $(DUMMYOBJ)
60 $(cc) @<<
61 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
62 <<
63
64 doc.obj: view.h doc.h doc.$(SRCSUFF) ogledit.h $(DUMMYOBJ)
65 $(cc) @<<
66 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
67 <<
68
69 view.obj: view.h doc.h view.$(SRCSUFF) ogledit.h $(DUMMYOBJ)
70 $(cc) @<<
71 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
72 <<
73
74 palette.obj: view.h doc.h ogledit.h palette.$(SRCSUFF) $(DUMMYOBJ)
75 $(cc) @<<
76 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
77 <<
78
79 $(PROGRAM).res : $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc ogl.ico
80 $(rc) -r /i$(WXDIR)\include -fo$@ $(PROGRAM).rc
81
82
83 cleanogl:
84 cd $(OGLDIR)\src
85 nmake -f makefile.nt clean
86 cd $(THISDIR)
87
88 clean:
89 -erase *.obj
90 -erase *.sbr
91 -erase *.exe
92 -erase *.res
93 -erase *.map
94 -erase *.pdb
95