]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/src/makefile.dos
Added SetFont to most controls and controls sample
[wxWidgets.git] / utils / ogl / src / makefile.dos
1 #
2 # File: makefile.dos
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 object graphics library (DOS).
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\makemsc.env
18
19 OGLDIR = $(WXDIR)\utils\ogl
20 THISDIR = $(OGLDIR)\src
21 DOCDIR = $(OGLDIR)\docs
22 WXLIB = $(WXDIR)\lib\wx.lib
23 LIBS=$(WXLIB) libw llibcew commdlg shell ctl3dv2
24
25 GRAPHICSLIB = $(WXDIR)\lib\ogl.lib
26 INC = /I$(WXDIR)\include
27
28 # Normally set OPTIONS =
29 # to disable PROLOGIO-dependent code
30 OPTIONS = -DPROLOGIO
31
32 OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
33 composit.obj drawn.obj bitmap.obj mfutils.obj
34
35 all: $(GRAPHICSLIB)
36
37 wx:
38 cd $(WXDIR)\src\msw
39 nmake -f makefile.dos $(WXLIB) FINAL=$(FINAL)
40 cd $(THISDIR)
41
42 $(GRAPHICSLIB): $(OBJECTS)
43 erase $(GRAPHICSLIB)
44 lib /PAGESIZE:128 @<<
45 $(GRAPHICSLIB)
46 y
47 $(OBJECTS)
48 nul
49 ;
50 <<
51
52 # NOTE: This causes a floating point stack error when optimized,
53 # so DON'T optimize!
54
55 basic.obj: basic.$(SRCSUFF) basic.h lines.h misc.h canvas.h
56 cl @<<
57 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
58 <<
59
60 basic2.obj: basic2.$(SRCSUFF) basic.h lines.h misc.h canvas.h
61 cl @<<
62 $(CPPFLAGS) /Od /c /Tp $*.$(SRCSUFF)
63 <<
64
65 canvas.obj: canvas.$(SRCSUFF) basic.h misc.h canvas.h
66 cl @<<
67 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
68 <<
69
70 ogldiag.obj: ogldiag.$(SRCSUFF) ogldiag.h canvas.h basic.h
71 cl @<<
72 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
73 <<
74
75 lines.obj: lines.$(SRCSUFF) basic.h misc.h canvas.h lines.h basicp.h linesp.h
76 cl @<<
77 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
78 <<
79
80 misc.obj: misc.$(SRCSUFF) basic.h misc.h constrnt.h basicp.h
81 cl @<<
82 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
83 <<
84
85 divided.obj: divided.$(SRCSUFF) basic.h misc.h canvas.h divided.h basicp.h
86 cl @<<
87 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
88 <<
89
90 constrnt.obj: constrnt.$(SRCSUFF) basic.h constrnt.h
91 cl @<<
92 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
93 <<
94
95 composit.obj: composit.$(SRCSUFF) basic.h misc.h canvas.h constrnt.h composit.h basicp.h
96 cl @<<
97 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
98 <<
99
100 drawn.obj: drawn.$(SRCSUFF) basic.h misc.h canvas.h drawn.h drawnp.h basicp.h
101 cl @<<
102 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
103 <<
104
105 bitmap.obj: bitmap.$(SRCSUFF) basic.h misc.h canvas.h bitmap.h
106 cl @<<
107 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
108 <<
109
110 mfutils.obj: mfutils.$(SRCSUFF) mfutils.h
111 cl @<<
112 $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
113 <<
114
115 # Making documents
116 docs: hlp
117 hlp: $(DOCDIR)/ogl.hlp
118 hlp32: $(DOCDIR)/hlp32/ogl.hlp
119 rtf: $(DOCDIR)/ogl.rtf
120
121 $(DOCDIR)/ogl.hlp: $(DOCDIR)/ogl.rtf $(DOCDIR)/ogl.hpj
122 cd $(DOCDIR)
123 -erase ogl.ph
124 hc ogl
125 cd $(THISDIR)
126
127 $(DOCDIR)/hlp32/ogl.hlp: $(DOCDIR)/hlp32/ogl.rtf $(DOCDIR)/hlp32/ogl.hpj
128 cd $(DOCDIR)/hlp32
129 -erase ogl.ph
130 start /w hcw /c /e ogl.hpj
131 cd $(THISDIR)
132
133 $(DOCDIR)/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
134 cd $(DOCDIR)
135 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -winhelp
136 cd $(THISDIR)
137
138 $(DOCDIR)/hlp32/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
139 cd $(DOCDIR)
140 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/hlp32/ogl.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
141 cd $(THISDIR)
142
143 wordrtf:
144 cd $(DOCDIR)
145 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
146 cd $(THISDIR)
147
148 clean:
149 -erase *.obj
150 -erase *.sbr
151 -erase *.exe
152 -erase *.res
153 -erase *.map
154 -erase *.pdb
155 -erase *.lib
156 -erase ..\lib\*.lib
157
158 wxclean:
159 cd $(WXDIR)\src\msw
160 nmake -f makefile.dos clean
161 cd $(THISDIR)