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