]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/src/makefile.b32
Added sys/types.h needed for Solaris.
[wxWidgets.git] / utils / ogl / src / makefile.b32
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
21 WXDIR = $(WXWIN)
22 !include $(WXDIR)\src\makeb32.env
23
24 WXLIB = $(WXDIR)\lib\wx32.lib
25 WXINC = $(WXDIR)\include
26 CFG=$(WXWIN)\src\wxwin32.cfg
27
28 OGLDIR = $(WXDIR)\utils\ogl
29 OGLLIB = $(WXDIR)\lib\ogl.lib
30 DOCDIR = $(OGLDIR)\docs
31
32 INC=/DPROLOGIO=1 # /I$(WXDIR)\include\base /I$(WXDIR)\include\msw
33
34 LIBS=$(WXLIB) $(OGLLIB) mathwl cwl import mathwl
35
36 !ifndef FINAL
37 FINAL=0
38 !endif
39
40 !if "$(FINAL)" == "0"
41 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
42 OPT = -Od
43 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
44 !else
45 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
46 OPT = -O2
47 DEBUG_FLAGS = -DDEBUG=$(DEBUG)
48 !endif
49
50 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
51 CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
52
53 OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
54 composit.obj drawn.obj bmpshape.obj mfutils.obj
55
56 all: $(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
69 docs: hlp
70 hlp: $(DOCDIR)/ogl.hlp
71 hlp32: $(DOCDIR)/hlp32/ogl.hlp
72 rtf: $(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
96 wordrtf:
97 cd $(DOCDIR)
98 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
99 cd $(THISDIR)
100
101 clean:
102 -erase *.obj
103 -erase *.exe
104 -erase *.res
105 -erase ..\lib\*.lib $(OGLLIB)
106