10 # Makefile : Builds OGL example for BC++, 32-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\makeb32.env
27 THISDIR = $(WXDIR)\utils\ogl\samples\ogledit
29 OGLDIR = ..\.. # $(WXDIR)\utils\ogl # Command line too long!
30 OGLINC = $(OGLDIR)\src
31 OGLLIB = $(WXDIR)\lib\ogl.lib
33 WXLIB = $(WXDIR)\lib\wx32.lib
34 LIBS=$(WXLIB) $(OGLLIB) cw32 import32
36 CFG=$(WXDIR)\src\wxwin32.cfg
39 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
41 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
43 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
45 DEBUG_FLAGS = -DDEBUG=$(DEBUG)
48 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
50 OBJECTS = ogledit.obj doc.obj view.obj palette.obj
59 ogledit.exe: $(WXLIB) $(OBJECTS) ogledit.def ogledit.res
60 tlink32 $(LINKFLAGS) @&&!
70 bcc32 $(CPPFLAGS) $(INC) -c {$< }
72 ogledit.obj: ogledit.$(SRCSUFF)
74 doc.obj: doc.$(SRCSUFF)
76 view.obj: view.$(SRCSUFF)
78 palette.obj: palette.$(SRCSUFF)
80 ogledit.res : ogledit.rc $(WXDIR)\include\msw\wx.rc
81 brc32 -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa ogledit