]> git.saurik.com Git - wxWidgets.git/blame - samples/nativdlg/makefile.bcc
corrected (?) wxStringList::Delete()
[wxWidgets.git] / samples / nativdlg / 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 resource 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)
21THISDIR = $(WXDIR)\samples\resource
22WXLIB = $(WXDIR)\lib\wx.lib
23
24LIBS=$(WXLIB) mathwl cwl import
25INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
26CFG=$(WXDIR)\src\wxwin.cfg
27
28!ifndef FINAL
29FINAL=0
30!endif
31
32!if "$(FINAL)" == "0"
33LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
34OPT = -Od
35DEBUG_FLAGS= -v
36!else
37LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
38OPT = -O2
39DEBUG_FLAGS =
40!endif
41CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
42
43HEADERS = resource.h
44SOURCES = resource.cc
45OBJECTS = resource.obj
46
47resource: resource.exe
48
49all: resource.exe
50
51resource.exe: $(WXLIB) resource.obj resource.def resource.res
52 tlink $(LINKFLAGS) @&&!
53c0wl.obj resource.obj
54resource
55nul
56$(LIBS)
57resource.def
58!
59 rc -30 -K resource.res
60
61.cc.obj:
62 bcc $(CPPFLAGS) -c {$< }
63
64resource.obj: resource.cc
65
66resource.res : resource.rc $(WXDIR)\include\msw\wx.rc
67 rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa resource
68
69clean:
70 -erase *.obj
71 -erase *.exe
72 -erase *.res
73 -erase *.map
74 -erase *.rws