############################################################################
#
#  cmedit.bpr
#
#  This file is part of the CodeMax editor support code.
#
#  Copyright © POV-Team(tm) 1996-1998. All Rights Reserved.
#  This windows version of POV-Ray is Copyright 1996-1998 Christopher J. Cason.
#  Author : Christopher J. Cason.
#
#  NOTE : As this is Windows code, it was edited using a wide Windows-hosted
#         editor. Accordingly, expect text to exceed 80 columns regularly.
#
#  from Persistence of Vision Raytracer(tm)
#  Copyright 1996-1998 Persistence of Vision Team
#
# The terms POV-Ray, POV, and Persistence of Vision Raytracer are trademarks
# of the Persistence of Vision Team.
#---------------------------------------------------------------------------
#  NOTICE: This source code file is provided so that users may experiment
#  with enhancements to POV-Ray(tm) and to port the software to platforms other
#  than those supported by the POV-Ray Team.  There are strict rules under
#  which you are permitted to use this file.  The rules are in the file
#  named POVLEGAL.DOC which should be distributed with this file. If
#  POVLEGAL.DOC is not available or for more info please contact the POV-Ray(tm)
#  Team Coordinator by leaving a message in CompuServe's POVRAY forum. The
#  The latest version of POV-Ray may be found there as well. POVRAY files can
#  also be found on the world wide web at http://www.povray.org/.
#
#  In the case of this particular program, POVLEGAL.DOC is also embedded
#  in the source code. See the file ../PVLEGAL.H.
#
# This program is based on the popular DKB raytracer version 2.12.
# DKBTrace was originally written by David K. Buck.
# DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
#
# Thanks to the makers of PERFORCE (http://www.perforce.com/) for donating the
# copy of their Perforce revision control system that is now used to maintain
# the POVWIN source. Thanks also to WinMain Software (http://www.winmain.com/)
# for providing the CodeMax edit control which the POVWIN 3.1 editor is based
# upon.
#
# $Id: //depot/windows/codemax/cmedit.bpr#5 $
#
#############################################################################

!if !$d(BCB)
BCB = $(MAKEDIR)\..
!endif

# ---------------------------------------------------------------------------
# IDE SECTION
# ---------------------------------------------------------------------------
# The following section of the project makefile is managed by the BCB IDE.
# It is recommended to use the IDE to change any of the values in this
# section.
# ---------------------------------------------------------------------------

VERSION = BCB.03
# ---------------------------------------------------------------------------
PROJECT = cmedit.dll
OBJFILES = cmedit.obj EditForm.obj EditorSync.obj SaveFailed.obj AskSave.obj \
  RenderSave.obj InsertChangeThread.obj GenericInput.obj PrintOptions.obj
RESFILES =
DEFFILE =
RESDEPEN = $(RESFILES) EditForm.dfm SaveFailed.dfm AskSave.dfm RenderSave.dfm \
  GenericInput.dfm PrintOptions.dfm
LIBFILES = Cmax101.lib
LIBRARIES = bcbsmp35.lib vclx35.lib CMPkg.lib VCL35.lib
SPARELIBS = VCL35.lib CMPkg.lib vclx35.lib bcbsmp35.lib
PACKAGES = vclx35.bpi VCL35.bpi vcldb35.bpi vcldbx35.bpi bcbsmp35.bpi dclocx35.bpi \
  Qrpt35.bpi teeui35.bpi teedb35.bpi tee35.bpi ibsmp35.bpi NMFast35.bpi CMPkg.bpi
# ---------------------------------------------------------------------------
PATHCPP = .;
PATHASM = .;
PATHPAS = .;
PATHRC = .;
DEBUGLIBPATH = $(BCB)\lib\debug
RELEASELIBPATH = $(BCB)\lib\release
# ---------------------------------------------------------------------------
CFLAG1 = -WD -O2 -Hc -w -Ve -k- -vi -c -b- -w-par -w-inl -Vx
CFLAG2 = -I$(BCB)\include;$(BCB)\include\vcl;d:\devtools\codemax\component; \
  -H=$(BCB)\lib\vcl35.csm
CFLAG3 = -Tkh30000 -6
PFLAGS = -U$(BCB)\lib\obj;$(BCB)\lib;d:\devtools\codemax\component;$(RELEASELIBPATH) \
  -I$(BCB)\include;$(BCB)\include\vcl;d:\devtools\codemax\component; -$L- -$D- -v \
  -JPHN -M
RFLAGS = -i$(BCB)\include;$(BCB)\include\vcl;d:\devtools\codemax\component;
AFLAGS = /i$(BCB)\include /i$(BCB)\include\vcl /id:\devtools\codemax\component /mx /w2 \
  /zn /d_RTLDLL /dUSEPACKAGES
LFLAGS = -L$(BCB)\lib\obj;$(BCB)\lib;d:\devtools\codemax\component;$(RELEASELIBPATH) -aa \
  -Tpd -x -Gn -Gi
IFLAGS =
# ---------------------------------------------------------------------------
ALLOBJ = c0d32.obj sysinit.obj $(OBJFILES)
ALLRES = $(RESFILES)
ALLLIB = $(LIBFILES) $(LIBRARIES) import32.lib cp32mt.lib
# ---------------------------------------------------------------------------
!ifdef IDEOPTIONS

[Version Info]
IncludeVerInfo=0
AutoIncBuild=0
MajorVer=1
MinorVer=0
Release=0
Build=0
Debug=0
PreRelease=0
Special=0
Private=0
DLL=0
Locale=3081
CodePage=1252

[Version Info Keys]
CompanyName=
FileDescription=
FileVersion=1.0.0.0
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=1.0.0.0
Comments=

[HistoryLists\hlIncludePath]
Count=10
Item0=$(BCB)\include;$(BCB)\include\vcl;d:\devtools\codemax\component;
Item1=d:\devtools\cbuilder3\compbin;$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc;e:\devtools\codemax\component;
Item2=..\..\..\..\..\safetran;d:\devtools\cbuilder3\compbin;$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc;e:\devtools\codemax\component;
Item3=$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc;e:\devtools\codemax\component;
Item4=..\..\..\..\..\safetran;$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc;e:\devtools\codemax\component;
Item5=e:\devtools\codemax\component;$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc;
Item6=e:\codemax\component;$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc;
Item7=$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc;
Item8=$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc;e:\classlibs\include;
Item9=$(BCB)\include;$(BCB)\include\vcl;$(BCB)\compinc

[HistoryLists\hlLibraryPath]
Count=13
Item0=$(BCB)\lib\obj;$(BCB)\lib;d:\devtools\codemax\component
Item1=d:\devtools\cbuilder3\compbin;$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin;e:\devtools\codemax\component
Item2=..\..\..\..\..\safetran;d:\devtools\cbuilder3\compbin;$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin;e:\devtools\codemax\component
Item3=$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin;e:\devtools\codemax\component
Item4=..\..\..\..\..\safetran;$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin;e:\devtools\codemax\component
Item5=$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin;e:\devtools\codemax\component;
Item6=e:\devtools\codemax\component;$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin
Item7=e:\codemax\component;$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin;
Item8=$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin;
Item9=$(BCB)\lib\obj;$(BCB)\lib;$(BCB)\compbin
Item10=$(BCB)\lib\obj;$(BCB)\lib;
Item11=$(BCB)\lib\obj;$(BCB)\lib;e:\classlibs\lib;
Item12=$(BCB)\lib\obj;$(BCB)\lib

[HistoryLists\hlDebugSourcePath]
Count=1
Item0=$(BCB)\source\vcl

[HistoryLists\hlConditionals]
Count=1
Item0=_RTLDLL;USEPACKAGES

[HistoryLists\hlHostApplication]
Count=3
Item0=d:\povray\povwin\source\windows\vc6\bin\pvengine.exe
Item1=d:\povray\povwin\source\windows\borland\pvengine.exe
Item2=E:\POVRAY\povwin\source\windows\borland\pvengine.exe

[HistoryLists\hlRunParameters]
Count=1
Item0=/edit g:\foo2.pov

[Debugging]
DebugSourceDirs=$(BCB)\source\vcl

[Parameters]
RunParams=
HostApplication=d:\povray\povwin\source\windows\vc6\bin\pvengine.exe

!endif

# ---------------------------------------------------------------------------
# MAKE SECTION
# ---------------------------------------------------------------------------
# This section of the project file is not used by the BCB IDE.  It is for
# the benefit of building from the command-line using the MAKE utility.
# ---------------------------------------------------------------------------

.autodepend
# ---------------------------------------------------------------------------
!if !$d(BCC32)
BCC32 = bcc32
!endif

!if !$d(DCC32)
DCC32 = dcc32
!endif

!if !$d(TASM32)
TASM32 = tasm32
!endif

!if !$d(LINKER)
LINKER = ilink32
!endif

!if !$d(BRCC32)
BRCC32 = brcc32
!endif
# ---------------------------------------------------------------------------
!if $d(PATHCPP)
.PATH.CPP = $(PATHCPP)
.PATH.C   = $(PATHCPP)
!endif

!if $d(PATHPAS)
.PATH.PAS = $(PATHPAS)
!endif

!if $d(PATHASM)
.PATH.ASM = $(PATHASM)
!endif

!if $d(PATHRC)
.PATH.RC  = $(PATHRC)
!endif
# ---------------------------------------------------------------------------
$(PROJECT): $(OBJFILES) $(RESDEPEN) $(DEFFILE)
    $(BCB)\BIN\$(LINKER) @&&!
    $(LFLAGS) +
    $(ALLOBJ), +
    $(PROJECT),, +
    $(ALLLIB), +
    $(DEFFILE), +
    $(ALLRES)
!
# ---------------------------------------------------------------------------
.pas.hpp:
    $(BCB)\BIN\$(DCC32) $(PFLAGS) {$< }

.pas.obj:
    $(BCB)\BIN\$(DCC32) $(PFLAGS) {$< }

.cpp.obj:
    $(BCB)\BIN\$(BCC32) $(CFLAG1) $(CFLAG2) $(CFLAG3) -n$(@D) {$< }

.c.obj:
    $(BCB)\BIN\$(BCC32) $(CFLAG1) $(CFLAG2) $(CFLAG3) -n$(@D) {$< }

.asm.obj:
    $(BCB)\BIN\$(TASM32) $(AFLAGS) $<, $@

.rc.res:
    $(BCB)\BIN\$(BRCC32) $(RFLAGS) -fo$@ $<
# ---------------------------------------------------------------------------
