home *** CD-ROM | disk | FTP | other *** search
- # ---------------------------------------------------------------------------
- !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.04.04
- # ---------------------------------------------------------------------------
- PROJECT = %ProjectNameExt%
- OBJFILES = %OBJName%.obj
- RESFILES =
- RESDEPEN = $(RESFILES)
- LIBFILES =
- IDLFILES =
- IDLGENFILES =
- LIBRARIES = %VCLLibName%
- SPARELIBS = %VCLLibName%
- DEFFILE =
- # ---------------------------------------------------------------------------
- PATHCPP = .;
- PATHASM = .;
- PATHPAS = .;
- PATHRC = .;
- DEBUGLIBPATH = $(BCB)\lib\debug
- RELEASELIBPATH = $(BCB)\lib\release
- SYSDEFINES = %Defines%
- USERDEFINES =
- # ---------------------------------------------------------------------------
- CFLAG1 = -Od -w -r- -k -y -v -vi- -c -tWM %CFlag1Extra% \
- -I$(BCB)\include%IncExtra% -Tkh30000 -D$(SYSDEFINES);$(USERDEFINES)
- IDLCFLAGS = -src_suffixcpp
- PFLAGS = -U%LibExtra%$(BCB)\lib -I$(BCB)\include%IncExtra% -v -$Y -$W \
- -$O- -JPHN -M
- RFLAGS = -i$(BCB)\include%IncExtra%
- LFLAGS = -L%LibExtra%$(BCB)\lib %LinkFlags% -x -v -Gn
- # ---------------------------------------------------------------------------
- ALLOBJ = %StartupCode% $(OBJFILES)
- ALLRES = $(RESFILES)
- ALLLIB = $(LIBFILES) %LibExpansion% import32.lib %CRTLLib%
- # ---------------------------------------------------------------------------
- !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=%IsDLL%
-
- [Version Info Keys]
- CompanyName=
- FileDescription=%VersionDescription%
- FileVersion=1.0.0.0
- InternalName=
- LegalCopyright=
- LegalTrademarks=
- OriginalFilename=
- ProductName=
- ProductVersion=1.0.0.0
- Comments=
-
- [Debugging]
- DebugSourceDirs=%DebugSource%
-
- !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(IDL2CPP)
- IDL2CPP = idl2cpp
- !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): $(IDLGENFILES) $(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) -n$(@D) {$< }
-
- .c.obj:
- $(BCB)\BIN\$(BCC32) $(CFLAG1) -n$(@D) {$< }
-
- .asm.obj:
- $(BCB)\BIN\$(TASM32) $(AFLAGS) $<, $@
-
- .rc.res:
- $(BCB)\BIN\$(BRCC32) $(RFLAGS) -fo$@ $<
- # ---------------------------------------------------------------------------
- |
- %IncludeFilesList%
-
- //---------------------------------------------------------------------------
- #pragma argsused
- int main(int argc, char* argv[])
- {
- return 0;
- }
- |
- %IncludeFilesList%
-
- //---------------------------------------------------------------------------
- #pragma argsused
- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
- {
- return 0;
- }
- |
- %IncludeFilesList%
-
- //---------------------------------------------------------------------------
- // Important note about DLL memory management in a VCL DLL:
- //
- //
- //
- // If your DLL uses VCL and exports any functions that pass VCL String objects
- // (or structs/classes containing nested Strings) as parameter or function
- // results, you will need to build both your DLL project and any EXE projects
- // that use your DLL with the dynamic RTL (the RTL DLL). This will change your
- // DLL and its calling EXE's to use BORLNDMM.DLL as their memory manager. In
- // these cases, the file BORLNDMM.DLL should be deployed along with your DLL
- // and the RTL DLL (CP3240MT.DLL). To avoid the requiring BORLNDMM.DLL in
- // these situations, pass string information using "char *" or ShortString
- // parameters and then link with the static RTL.
- //
- //---------------------------------------------------------------------------
- #pragma argsused
- int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*)
- {
- return 1;
- }
- |//$$---- end of code ----
-