10 # Makefile : Builds OGL for BC++, 16-bit.
13 !error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
17 !error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
20 # Change WXDIR to wherever wxWindows is found
22 !include $(WXDIR)\src\makebcc.env
24 WXLIB = $(WXDIR)\lib\wx.lib
25 WXINC = $(WXDIR)\include
26 CFG=$(WXWIN)\src\wxwin.cfg
28 OGLDIR = $(WXDIR)\utils\ogl
29 OGLLIB = $(OGLDIR)\lib\ogl.lib
30 DOCDIR = $(OGLDIR)\docs
32 INC=/DPROLOGIO=1 # /I$(WXDIR)\include\base /I$(WXDIR)\include\msw
34 LIBS=$(WXLIB) $(OGLLIB) mathwl cwl import mathwl
41 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
45 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
49 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
50 CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
52 OBJECTS = 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
58 bcc $(CPPFLAGS) $(INC) -c {$< }
64 +$(OBJECTS:.obj =.obj +)
69 hlp: $(DOCDIR)/ogl.hlp
70 hlp32: $(DOCDIR)/hlp32/ogl.hlp
71 rtf: $(DOCDIR)/ogl.rtf
73 $(DOCDIR)/ogl.hlp: $(DOCDIR)/ogl.rtf $(DOCDIR)/ogl.hpj
79 $(DOCDIR)/hlp32/ogl.hlp: $(DOCDIR)/hlp32/ogl.rtf $(DOCDIR)/hlp32/ogl.hpj
82 start /w hcw /c /e ogl.hpj
85 $(DOCDIR)/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
87 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -winhelp
90 $(DOCDIR)/hlp32/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
92 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/hlp32/ogl.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
97 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf