]> git.saurik.com Git - wxWidgets.git/blame - utils/ogl/src/makefile.nt
Added sys/types.h needed for Solaris.
[wxWidgets.git] / utils / ogl / src / makefile.nt
CommitLineData
0fc1a713
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 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
15WXDIR = $(WXWIN)
16OBJECTSDIR = $(WXDIR)\utils\ogl
17THISDIR = $(WXDIR)\utils\ogl\src
18EXTRALIBS=$(WXDIR)\lib\ogl.lib $(WXDIR)\lib\mfutils.lib
19EXTRAINC=/I$(WXDIR)\utils\mfutils\src /I$(WXDIR)\utils\prologio\src
20EXTRAFLAGS=/DPROLOGIO=1
21DOCDIR=$(WXDIR)\docs
22LOCALDOCDIR=$(WXDIR)\utils\ogl\docs
23
24!include $(WXDIR)\src\ntwxwin.mak
25
26PROGRAM=test
27
28OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
2e5ed787 29 composit.obj drawn.obj bmpshape.obj mfutils.obj
0fc1a713
JS
30
31LIBTARGET=$(WXDIR)\lib\ogl.lib
32
33all: $(LIBTARGET)
34
35$(PROGRAM): $(PROGRAM).exe
36
37wx:
38 cd $(WXDIR)\src\msw
39 nmake -f makefile.nt FINAL=$(FINAL)
40 cd $(THISDIR)
41
42wxclean:
43 cd $(WXDIR)\src\msw
44 nmake -f makefile.nt 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!
57basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
58 cl @<<
59$(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
60<<
61
62basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
63 cl @<<
64$(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
65<<
66
67canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
68 cl @<<
69$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
70<<
71
72ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
73 cl @<<
74$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
75<<
76
77lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
78 cl @<<
79$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
80<<
81
82misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
83 cl @<<
84$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
85<<
86
87divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
88 cl @<<
89$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
90<<
91
92constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
93 cl @<<
94$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
95<<
96
97composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
98 cl @<<
99$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
100<<
101
102drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
103 cl @<<
104$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
105<<
106
2e5ed787 107bmpshape.obj: bmpshape.$(SRCSUFF) basic.h misc.h canvas.h bmpshape.h
0fc1a713
JS
108 cl @<<
109$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
110<<
111
112mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
113 cl @<<
114$(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
115<<
116
117clean:
118 -erase *.obj
119 -erase *.sbr
120 -erase *.exe
121 -erase *.res
122 -erase *.map
123 -erase *.pdb
124 -erase $(LIBTARGET)
125
126DOCSOURCES=$(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
131html: $(DOCDIR)\html\ogl\ogl.htm
132hlp: $(DOCDIR)\winhelp\ogl.hlp
133pdfrtf: $(DOCDIR)\pdf\ogl.rtf
134ps: $(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
6f5f3ca0 158 copy *.gif $(DOCDIR)\html\ogl
0fc1a713
JS
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