]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/samples/ogledit/makefile.b32
Renamed .nt makefiles to .vc and factored them out; made DND sample compile
[wxWidgets.git] / utils / ogl / samples / ogledit / makefile.b32
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++, 32-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\makeb32.env
26
27 THISDIR = $(WXDIR)\utils\ogl\samples\ogledit
28
29 OGLDIR = ..\.. # $(WXDIR)\utils\ogl # Command line too long!
30 OGLINC = $(OGLDIR)\src
31 OGLLIB = $(WXDIR)\lib\ogl.lib
32
33 WXLIB = $(WXDIR)\lib\wx32.lib
34 LIBS=$(WXLIB) $(OGLLIB) cw32 import32 ole2w32
35 INC=/I$(OGLINC)
36 CFG=$(WXDIR)\src\wxwin32.cfg
37
38 !if "$(FINAL)" == "0"
39 LINKFLAGS=/v /Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
40 OPT = -Od
41 DEBUG_FLAGS= -v -DDEBUG=$(DEBUG)
42 !else
43 LINKFLAGS=/Tpe /L$(WXLIBDIR);$(BCCDIR)\lib
44 OPT = -O2
45 DEBUG_FLAGS = -DDEBUG=$(DEBUG)
46 !endif
47
48 CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
49
50 OBJECTS = ogledit.obj doc.obj view.obj palette.obj
51
52 all: ogl ogledit.exe
53
54 ogl:
55 cd $(OGLDIR)\src
56 make -f makefile.b32
57 cd $(THISDIR)
58
59 ogledit.exe: $(WXLIB) $(OBJECTS) ogledit.def ogledit.res
60 tlink32 $(LINKFLAGS) @&&!
61 c0w32.obj $(OBJECTS)
62 ogledit
63 nul
64 $(LIBS)
65 ogledit.def
66 ogledit.res
67 !
68
69 .$(SRCSUFF).obj:
70 bcc32 $(CPPFLAGS) $(INC) -c {$< }
71
72 ogledit.obj: ogledit.$(SRCSUFF)
73
74 doc.obj: doc.$(SRCSUFF)
75
76 view.obj: view.$(SRCSUFF)
77
78 palette.obj: palette.$(SRCSUFF)
79
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
82
83 clean:
84 -erase *.obj
85 -erase *.exe
86 -erase *.res
87 -erase *.map
88 -erase *.rws