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