]> git.saurik.com Git - wxWidgets.git/blame - utils/ogl/src/makefile.bcc
no message
[wxWidgets.git] / utils / ogl / src / makefile.bcc
CommitLineData
0fc1a713
JS
1#
2# File: makefile.bcc
3# Author: Julian Smart
4# Created: 1996
5# Updated:
6# Copyright: (c) 1996
7#
8# "%W% %G%"
9#
10# Makefile : Builds OGL for BC++, 16-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\makebcc.env
23
24WXLIB = $(WXDIR)\lib\wx.lib
25WXINC = $(WXDIR)\include
26CFG=$(WXWIN)\src\wxwin.cfg
27
28OGLDIR = $(WXDIR)\utils\ogl
29OGLLIB = $(OGLDIR)\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/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
42OPT = -Od
43DEBUG_FLAGS= -v
44!else
45LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
46OPT = -O2
47DEBUG_FLAGS=
48!endif
49CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
50CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
51
52OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
53 composit.obj drawn.obj bitmap.obj mfutils.obj
54
55all: $(OGLLIB)
56
57.$(SRCSUFF).obj:
58 bcc $(CPPFLAGS) $(INC) -c {$< }
59
60$(OGLLIB): $(OBJECTS)
61 erase $(OGLLIB)
62 tlib /P128 @&&!
63$(OGLLIB) &
64+$(OBJECTS:.obj =.obj +)
65!
66
67# Making documents
68docs: hlp
69hlp: $(DOCDIR)/ogl.hlp
70hlp32: $(DOCDIR)/hlp32/ogl.hlp
71rtf: $(DOCDIR)/ogl.rtf
72
73$(DOCDIR)/ogl.hlp: $(DOCDIR)/ogl.rtf $(DOCDIR)/ogl.hpj
74 cd $(DOCDIR)
75 -erase ogl.ph
76 hc ogl
77 cd $(THISDIR)
78
79$(DOCDIR)/hlp32/ogl.hlp: $(DOCDIR)/hlp32/ogl.rtf $(DOCDIR)/hlp32/ogl.hpj
80 cd $(DOCDIR)/hlp32
81 -erase ogl.ph
82 start /w hcw /c /e ogl.hpj
83 cd $(THISDIR)
84
85$(DOCDIR)/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
86 cd $(DOCDIR)
87 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -winhelp
88 cd $(THISDIR)
89
90$(DOCDIR)/hlp32/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
91 cd $(DOCDIR)
92 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/hlp32/ogl.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
93 cd $(THISDIR)
94
95wordrtf:
96 cd $(DOCDIR)
97 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
98 cd $(THISDIR)
99
100clean:
101 -erase *.obj
102 -erase *.exe
103 -erase *.res
104 -erase ..\lib\*.lib
105