]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/src/makefile.vc
Now uses proper wxUSE_xxx flags
[wxWidgets.git] / utils / ogl / src / makefile.vc
1 #
2 # File: makefile.vc
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 OGL classes library (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 OBJECTSDIR = $(WXDIR)\utils\ogl
17 THISDIR = $(WXDIR)\utils\ogl\src
18 EXTRALIBS=$(WXDIR)\lib\ogl.lib $(WXDIR)\lib\mfutils.lib
19 EXTRAINC=/I$(WXDIR)\utils\mfutils\src /I$(WXDIR)\utils\prologio\src
20 EXTRAFLAGS=/DPROLOGIO=1
21 DOCDIR=$(WXDIR)\docs
22 LOCALDOCDIR=$(WXDIR)\utils\ogl\docs
23
24 !include $(WXDIR)\src\makevc.env
25
26 PROGRAM=test
27
28 OBJECTS = $(THISDIR)\basic.obj $(THISDIR)\basic2.obj $(THISDIR)\canvas.obj $(THISDIR)\ogldiag.obj $(THISDIR)\lines.obj $(THISDIR)\misc.obj $(THISDIR)\divided.obj $(THISDIR)\constrnt.obj\
29 $(THISDIR)\composit.obj $(THISDIR)\drawn.obj $(THISDIR)\bmpshape.obj $(THISDIR)\mfutils.obj
30
31 LIBTARGET=$(WXDIR)\lib\ogl.lib
32
33 all: $(LIBTARGET)
34
35 $(PROGRAM): $(PROGRAM).exe
36
37 wx:
38 cd $(WXDIR)\src\msw
39 nmake -f makefile.vc FINAL=$(FINAL)
40 cd $(THISDIR)
41
42 wxclean:
43 cd $(WXDIR)\src\msw
44 nmake -f makefile.vc clean
45 cd $(THISDIR)
46
47 $(LIBTARGET): $(OBJECTS)
48 -erase $(LIBTARGET)
49 $(implib) @<<
50 -out:$(LIBTARGET)
51 -machine:$(CPU)
52 $(OBJECTS)
53 <<
54
55 # NOTE: This causes a floating point stack error when optimized,
56 # so DON'T optimize!
57 basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
58 cl @<<
59 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
60 <<
61
62 $(THISDIR)\basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
63 cl @<<
64 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
65 <<
66
67 $(THISDIR)\canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
68 cl @<<
69 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70 <<
71
72 $(THISDIR)\ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
73 cl @<<
74 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75 <<
76
77 $(THISDIR)\lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
78 cl @<<
79 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
80 <<
81
82 $(THISDIR)\misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
83 cl @<<
84 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
85 <<
86
87 $(THISDIR)\divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
88 cl @<<
89 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
90 <<
91
92 $(THISDIR)\constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
93 cl @<<
94 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
95 <<
96
97 $(THISDIR)\composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
98 cl @<<
99 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
100 <<
101
102 $(THISDIR)\drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
103 cl @<<
104 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
105 <<
106
107 $(THISDIR)\bmpshape.obj: bmpshape.$(SRCSUFF) basic.h misc.h canvas.h bmpshape.h
108 cl @<<
109 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
110 <<
111
112 $(THISDIR)\mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
113 cl @<<
114 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
115 <<
116
117 clean:
118 -erase *.obj
119 -erase *.sbr
120 -erase *.exe
121 -erase *.res
122 -erase *.map
123 -erase *.pdb
124 -erase $(LIBTARGET)
125
126 DOCSOURCES=$(LOCALDOCDIR)\ogl.tex \
127 $(LOCALDOCDIR)\bugs.tex $(LOCALDOCDIR)\changes.tex\
128 $(LOCALDOCDIR)\classes.tex $(LOCALDOCDIR)\intro.tex\
129 $(LOCALDOCDIR)\topics.tex $(LOCALDOCDIR)\sample.tex
130
131 html: $(DOCDIR)\html\ogl\ogl.htm
132 hlp: $(DOCDIR)\winhelp\ogl.hlp
133 pdfrtf: $(DOCDIR)\pdf\ogl.rtf
134 ps: $(DOCDIR)\ps\ogl.ps
135
136 $(DOCDIR)\winhelp\ogl.hlp: $(LOCALDOCDIR)\ogl.rtf $(LOCALDOCDIR)\ogl.hpj
137 cd $(LOCALDOCDIR)
138 -erase ogl.ph
139 hc ogl
140 move ogl.hlp $(DOCDIR)\winhelp\ogl.hlp
141 move ogl.cnt $(DOCDIR)\winhelp\ogl.cnt
142 cd $(THISDIR)
143
144 $(LOCALDOCDIR)\ogl.rtf: $(DOCSOURCES)
145 cd $(LOCALDOCDIR)
146 -start /w tex2rtf $(LOCALDOCDIR)\ogl.tex $(LOCALDOCDIR)\ogl.rtf -twice -winhelp
147 cd $(THISDIR)
148
149 $(DOCDIR)\pdf\ogl.rtf: $(DOCSOURCES)
150 cd $(LOCALDOCDIR)
151 -copy *.bmp $(DOCDIR)\pdf
152 -start /w tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\pdf\ogl.rtf -twice -rtf
153 cd $(THISDIR)
154
155 $(DOCDIR)\html\ogl\ogl.htm: $(DOCSOURCES)
156 cd $(LOCALDOCDIR)
157 -mkdir $(DOCDIR)\html\ogl
158 copy *.gif $(DOCDIR)\html\ogl
159 -start /w tex2rtf $(LOCALDOCDIR)\ogl.tex $(DOCDIR)\html\ogl\ogl.htm -twice -html
160 -erase $(DOCDIR)\html\ogl\*.con
161 -erase $(DOCDIR)\html\ogl\*.ref
162 cd $(THISDIR)
163
164 $(LOCALDOCDIR)\ogl.dvi: $(DOCSOURCES)
165 cd $(LOCALDOCDIR)
166 -latex ogl
167 -latex ogl
168 -makeindx ogl
169 -bibtex ogl
170 -latex ogl
171 -latex ogl
172 cd $(THISDIR)
173
174 $(WXDIR)\docs\ps\ogl.ps: $(LOCALDOCDIR)\ogl.dvi
175 cd $(LOCALDOCDIR)
176 -dvips32 -o ogl.ps ogl
177 move ogl.ps $(WXDIR)\docs\ps\ogl.ps
178 cd $(THISDIR)
179
180