6 # Copyright: (c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds OGL for BC++, 32-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\makeb32.env
24 WXLIB = $(WXDIR)\lib\wx32.lib
25 WXINC = $(WXDIR)\include
26 CFG=$(WXWIN)\src\wxwin32.cfg
28 OGLDIR = $(WXDIR)\utils\ogl
29 OGLLIB = $(WXDIR)\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 /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
43 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
45 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
47 DEBUG_FLAGS = -DDEBUG=$(DEBUG)
50 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
51 CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
53 OBJECTS = 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
59 bcc32 $(CPPFLAGS) $(INC) -c {$< }
65 +$(OBJECTS:.obj =.obj +)
70 hlp: $(DOCDIR)/ogl.hlp
71 hlp32: $(DOCDIR)/hlp32/ogl.hlp
72 rtf: $(DOCDIR)/ogl.rtf
74 $(DOCDIR)/ogl.hlp: $(DOCDIR)/ogl.rtf $(DOCDIR)/ogl.hpj
80 $(DOCDIR)/hlp32/ogl.hlp: $(DOCDIR)/hlp32/ogl.rtf $(DOCDIR)/hlp32/ogl.hpj
83 start /w hcw /c /e ogl.hpj
86 $(DOCDIR)/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
88 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -winhelp
91 $(DOCDIR)/hlp32/ogl.rtf: $(DOCDIR)/classes.tex $(DOCDIR)/intro.tex $(DOCDIR)/ogl.tex
93 start /w tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/hlp32/ogl.rtf -twice -winhelp -macros $(DOCDIR)/t2rtf32.ini
98 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
105 -erase ..\lib\*.lib $(OGLLIB)