]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/src/makefile.bcc
no message
[wxWidgets.git] / utils / ogl / src / makefile.bcc
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
21 WXDIR = $(WXWIN)
22 !include $(WXDIR)\src\makebcc.env
23
24 WXLIB = $(WXDIR)\lib\wx.lib
25 WXINC = $(WXDIR)\include
26 CFG=$(WXWIN)\src\wxwin.cfg
27
28 OGLDIR = $(WXDIR)\utils\ogl
29 OGLLIB = $(OGLDIR)\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/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
42 OPT = -Od
43 DEBUG_FLAGS= -v
44 !else
45 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
46 OPT = -O2
47 DEBUG_FLAGS=
48 !endif
49 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
50 CFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
51
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
54
55 all: $(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
68 docs: hlp
69 hlp: $(DOCDIR)/ogl.hlp
70 hlp32: $(DOCDIR)/hlp32/ogl.hlp
71 rtf: $(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
95 wordrtf:
96 cd $(DOCDIR)
97 -wx /W tex2rtf $(DOCDIR)/ogl.tex $(DOCDIR)/ogl.rtf -twice -rtf
98 cd $(THISDIR)
99
100 clean:
101 -erase *.obj
102 -erase *.exe
103 -erase *.res
104 -erase ..\lib\*.lib
105