]> git.saurik.com Git - wxWidgets.git/blame - utils/ogl/src/makefile.b32
Added missing OGL files; added defaults to wxDocMDIParentFrame; corrected
[wxWidgets.git] / utils / ogl / src / makefile.b32
CommitLineData
0fc1a713
JS
1#
2# File: makefile.b32
3# Author: Julian Smart
4# Created: 1996
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds OGL for BC++, 32-bit.
11
12!if "$(BCCDIR)" == ""
13!error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
14!endif
15
16!if "$(WXWIN)" == ""
17!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
18!endif
19
20# Change WXDIR to wherever wxWindows is found
21WXDIR = $(WXWIN)
22!include $(WXDIR)\src\makeb32.env
23
24WXLIB = $(WXDIR)\lib\wx32.lib
25WXINC = $(WXDIR)\include
26CFG=$(WXWIN)\src\wxwin32.cfg
27
28OGLDIR = $(WXDIR)\utils\ogl
29OGLLIB = $(WXDIR)\lib\ogl.lib
30DOCDIR = $(OGLDIR)\docs
31
32INC=/DPROLOGIO=1 # /I$(WXDIR)\include\base /I$(WXDIR)\include\msw
33
34LIBS=$(WXLIB) $(OGLLIB) mathwl cwl import mathwl
35
36!ifndef FINAL
37FINAL=0
38!endif
39
40!if "$(FINAL)" == "0"
41LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
42OPT = -Od
43DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
44!else
45LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
46OPT = -O2
47DEBUG_FLAGS = -DDEBUG=$(DEBUG)
48!endif
49
50CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
51CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
52
53OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
54 composit.obj drawn.obj bitmap.obj mfutils.obj
55
56all: $(OGLLIB)
57
58.$(SRCSUFF).obj:
59 bcc32 $(CPPFLAGS) $(INC) -c {$< }
60
61$(OGLLIB): $(OBJECTS)
62 erase $(OGLLIB)
63 tlib /P128 @&&!
64$(OGLLIB) &
65+$(OBJECTS:.obj =.obj +)
66!
67
68# Making documents
69docs: hlp
70hlp: $(DOCDIR)/ogl.hlp
71hlp32: $(DOCDIR)/hlp32/ogl.hlp
72rtf: $(DOCDIR)/ogl.rtf
73
74$(DOCDIR)/ogl.hlp: $(DOCDIR)/ogl.rtf $(DOCDIR)/ogl.hpj
75 cd $(DOCDIR)
76 -erase ogl.ph
77 hc ogl
78 cd $(THISDIR)
79
80$(DOCDIR)/hlp32/ogl.hlp: $(DOCDIR)/hlp32/ogl.rtf $(DOCDIR)/hlp32/ogl.hpj
81 cd $(DOCDIR)/hlp32
82 -erase ogl.ph
83 start /w hcw /c /e ogl.hpj
84 cd $(THISDIR)
85
86$(DOCDIR)/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
87 cd $(DOCDIR)
88 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -winhelp
89 cd $(THISDIR)
90
91$(DOCDIR)/hlp32/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
92 cd $(DOCDIR)
93 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/hlp32/ogl.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
94 cd $(THISDIR)
95
96wordrtf:
97 cd $(DOCDIR)
98 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
99 cd $(THISDIR)
100
101clean:
102 -erase *.obj
103 -erase *.exe
104 -erase *.res
105 -erase ..\lib\*.lib $(OGLLIB)
106