]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/samples/ogledit/makefile.bcc
Removed references to DEBUG and WXDEBUG; cured Motif font problem; removed
[wxWidgets.git] / utils / ogl / samples / ogledit / 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 example 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 !ifndef FINAL
21 FINAL=0
22 !endif
23
24 WXDIR = $(WXWIN)
25 !include $(WXDIR)\src\makebcc.env
26
27 THISDIR = $(WXDIR)\utils\ogl\samples\ogledit
28
29 OGLDIR = $(WXDIR)\utils\ogl
30 OGLINC = $(OGLDIR)\src
31 OGLLIB = $(OGLDIR)\lib\ogl.lib
32
33 WXLIB = $(WXDIR)\lib\wx.lib
34 LIBS=$(WXLIB) $(OGLLIB) mathwl cwl import
35 INC=/I$(OGLINC)
36 CFG=$(WXDIR)\src\wxwin.cfg
37
38 !if "$(FINAL)" == "0"
39 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
40 OPT = -Od
41 DEBUG_FLAGS= -v
42 !else
43 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
44 OPT = -O2
45 DEBUG_FLAGS =
46 !endif
47 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
48
49 OBJECTS = ogledit.obj doc.obj view.obj palette.obj
50
51 all: ogl ogledit.exe
52
53 ogl:
54 cd $(OGLDIR)\src
55 make -f makefile.bcc
56 cd $(THISDIR)
57
58 ogledit.exe: $(WXLIB) $(OBJECTS) ogledit.def ogledit.res
59 tlink $(LINKFLAGS) @&&!
60 c0wl.obj $(OBJECTS)
61 ogledit
62 nul
63 $(LIBS)
64 ogledit.def
65 !
66 rc -30 -K ogledit.res
67
68 .$(SRCSUFF).obj:
69 bcc $(CPPFLAGS) $(INC) -c {$< }
70
71 ogledit.obj: ogledit.$(SRCSUFF)
72
73 doc.obj: doc.$(SRCSUFF)
74
75 view.obj: view.$(SRCSUFF)
76
77 palette.obj: palette.$(SRCSUFF)
78
79 ogledit.res : ogledit.rc $(WXDIR)\include\wx\msw\wx.rc
80 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include ogledit
81
82 clean:
83 -erase *.obj
84 -erase *.exe
85 -erase *.res
86 -erase *.map
87 -erase *.rws