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