]> git.saurik.com Git - wxWidgets.git/blame - samples/mfc/makefile.bcc
Added fix to send scroll messages from mouse wheel instead of scrolling directly
[wxWidgets.git] / samples / mfc / makefile.bcc
CommitLineData
bbf1f0e5
KB
1#
2# File: makefile.bcc
3# Author: Julian Smart
4# Created: 1993
5# Updated:
6# Copyright: (c) 1993, AIAI, University of Edinburgh
7#
8# "%W% %G%"
9#
10# Makefile : Builds mfc example (DOS).
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
20WXDIR = $(WXWIN)
21!include $(WXDIR)\src\makebcc.env
22
23THISDIR = $(WXDIR)\samples\mfc
24WXLIB = $(WXDIR)\lib\wx.lib
25
26LIBS=$(WXLIB) mathwl cwl import
27INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
28CFG=$(WXDIR)\src\wxwin.cfg
29
30!ifndef FINAL
31FINAL=0
32!endif
33
34!if "$(FINAL)" == "0"
35LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
36OPT = -Od
37DEBUG_FLAGS= -v
38!else
39LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
40OPT = -O2
41DEBUG_FLAGS =
42!endif
43CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
44
45HEADERS = hello.h
46SOURCES = hello.$(SRCSUFF)
47OBJECTS = hello.obj
48
49hello: hello.exe
50
51all: hello.exe
52
53hello.exe: $(WXLIB) hello.obj hello.def hello.res
54 tlink $(LINKFLAGS) @&&!
55c0wl.obj hello.obj
56hello
57nul
58$(LIBS)
59hello.def
60!
61 rc -30 -K hello.res
62
63.$(SRCSUFF).obj:
64 bcc $(CPPFLAGS) -c {$< }
65
66hello.obj: hello.$(SRCSUFF)
67
68hello.res : hello.rc $(WXDIR)\include\msw\wx.rc
69 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa hello
70
71clean:
72 -erase *.obj
73 -erase *.exe
74 -erase *.res
75 -erase *.map
76 -erase *.rws