10 # Makefile : Builds OGL example for BC++, 16-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
25 !include $(WXDIR)\src\makebcc.env
27 THISDIR = $(WXDIR)\utils\ogl\samples\ogledit
29 OGLDIR = $(WXDIR)\utils\ogl
30 OGLINC = $(OGLDIR)\src
31 OGLLIB = $(OGLDIR)\lib\ogl.lib
33 WXLIB = $(WXDIR)\lib\wx.lib
34 LIBS=$(WXLIB) $(OGLLIB) mathwl cwl import
36 CFG=$(WXDIR)\src\wxwin.cfg
39 LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
43 LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
47 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
49 OBJECTS = ogledit.obj doc.obj view.obj palette.obj
58 ogledit.exe: $(WXLIB) $(OBJECTS) ogledit.def ogledit.res
59 tlink $(LINKFLAGS) @&&!
69 bcc $(CPPFLAGS) $(INC) -c {$< }
71 ogledit.obj: ogledit.$(SRCSUFF)
73 doc.obj: doc.$(SRCSUFF)
75 view.obj: view.$(SRCSUFF)
77 palette.obj: palette.$(SRCSUFF)
79 ogledit.res : ogledit.rc $(WXDIR)\include\wx\msw\wx.rc
80 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include ogledit