1998-05-30 13:10:15 -04:00
|
|
|
#
|
|
|
|
# File: makefile.bcc
|
|
|
|
# Author: Julian Smart
|
|
|
|
# Created: 1993
|
|
|
|
# Updated:
|
|
|
|
# Copyright: (c) 1993, AIAI, University of Edinburgh
|
|
|
|
#
|
|
|
|
# "%W% %G%"
|
|
|
|
#
|
1998-07-10 06:36:57 -04:00
|
|
|
# Makefile : Builds controls example (DOS).
|
1998-05-30 13:10:15 -04:00
|
|
|
|
|
|
|
!if "$(BCCDIR)" == ""
|
|
|
|
!error You must define the BCCDIR variable in autoexec.bat, e.g. BCCDIR=d:\bc4
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if "$(WXWIN)" == ""
|
|
|
|
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
|
|
|
!endif
|
|
|
|
|
|
|
|
WXDIR = $(WXWIN)
|
|
|
|
!include $(WXDIR)\src\makebcc.env
|
|
|
|
|
1998-07-10 06:36:57 -04:00
|
|
|
THISDIR = $(WXDIR)\samples\controls
|
1998-05-30 13:10:15 -04:00
|
|
|
WXLIB = $(WXDIR)\lib\wx.lib
|
|
|
|
LIBS=$(WXLIB) mathwl cwl import
|
|
|
|
INC=-I$(WXDIR)\include\base -I$(WXDIR)\include\msw
|
|
|
|
CFG=$(WXDIR)\src\wxwin.cfg
|
|
|
|
|
|
|
|
!ifndef FINAL
|
|
|
|
FINAL=0
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!if "$(FINAL)" == "0"
|
|
|
|
LINKFLAGS=/v/Vt /Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
|
|
|
|
OPT = -Od
|
|
|
|
DEBUG_FLAGS= -v
|
|
|
|
!else
|
|
|
|
LINKFLAGS=/Twe /L$(WXDIR)\lib;$(BCCDIR)\lib
|
|
|
|
OPT = -O2
|
|
|
|
DEBUG_FLAGS=
|
|
|
|
!endif
|
|
|
|
CPPFLAGS=$(DEBUG_FLAGS) $(OPT) @$(CFG)
|
|
|
|
|
1998-07-10 06:36:57 -04:00
|
|
|
OBJECTS = controls.obj
|
1998-05-30 13:10:15 -04:00
|
|
|
|
1998-07-10 06:36:57 -04:00
|
|
|
controls: controls.exe
|
1998-05-30 13:10:15 -04:00
|
|
|
|
1998-07-10 06:36:57 -04:00
|
|
|
all: controls.exe
|
1998-05-30 13:10:15 -04:00
|
|
|
|
1998-07-10 06:36:57 -04:00
|
|
|
controls.exe: $(WXLIB) controls.obj controls.def controls.res
|
1998-05-30 13:10:15 -04:00
|
|
|
tlink $(LINKFLAGS) @&&!
|
1998-07-10 06:36:57 -04:00
|
|
|
c0wl.obj controls.obj
|
|
|
|
controls
|
1998-05-30 13:10:15 -04:00
|
|
|
nul
|
|
|
|
$(LIBS)
|
1998-07-10 06:36:57 -04:00
|
|
|
controls.def
|
1998-05-30 13:10:15 -04:00
|
|
|
!
|
1998-07-10 06:36:57 -04:00
|
|
|
rc -31 -K controls.res
|
1998-05-30 13:10:15 -04:00
|
|
|
|
|
|
|
.$(SRCSUFF).obj:
|
|
|
|
bcc $(CPPFLAGS) -c {$< }
|
|
|
|
|
1998-07-10 06:36:57 -04:00
|
|
|
controls.obj: controls.$(SRCSUFF)
|
1998-05-30 13:10:15 -04:00
|
|
|
|
1998-07-10 06:36:57 -04:00
|
|
|
controls.res : controls.rc $(WXDIR)\include\msw\wx.rc
|
|
|
|
rc -r /i$(BCCDIR)\include /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa controls
|
1998-05-30 13:10:15 -04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
-erase *.obj
|
|
|
|
-erase *.exe
|
|
|
|
-erase *.res
|
|
|
|
-erase *.map
|
|
|
|
-erase *.rws
|