Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dpr2mak exists?

Status
Not open for further replies.

zallen

Programmer
Aug 10, 2000
227
CN
Hi,friends
Does there exist any tools same as bpr2mak in C++Builder which can produce a makefile from a dephi project ?
The reason i need such a tool is i donnot want to enter IDE to build my project after i changed the source code instead i only need to build it by make utility on command line.

Any suggestions are appreciated! zallen@cmmail.com
ICQ:101229409
I want to emigrate Canada or Australia. Any relative information you supplied will be appreciated!

 
zallen,

Take a peek at DCC32.EXE in your \BIN folder. Documentation is in the Delphi5.HLP file; search for the topic called "The command-line compiler." It's a bit different than DPR2MAK, but essentially achieves the same end, that of compiling a unit and/or project without loading the IDE.

Also, you can get an overview of the supprted command-line options by typing:

c:\program files\borland\delphi5\> dcc32 -?

From the DOS prompt.


Hope this helps...

-- Lance
 
Thanks for your suggestion! It helps me but it is not convenient for me to write switches manually!

If i can get a dpr2mak tool,then i will only need to type make to rebuild my delphi project .


Regards! zallen@cmmail.com
ICQ:101229409
I want to emigrate Canada or Australia. Any relative information you supplied will be appreciated!

 
zallen,

Ah, if life were that simple. If it's not not convenienct for you who knows the project, its dependencies, and its requirement, how do you expect it to be convenient for me, with no clue regarding your specifics, to have the slightest idea how to advise you?

Traditionally, people try things out and post messages concerning their confusion.

I reget I am not psychic.

-- Lance
 
I understand what you mean.Here is my build.bat file which is used to build my 3 delphi projects.You know the dos batch file is not strong enough for me to code conveniently,e.g. the dpr32 -U swith is too long and i donnot know how to split it into multiple lines :(

@echo off

echo please specify the target project
echo 1:ihpms
echo 2:hpms
echo 3:igms
echo 4:exit
echo .

choice /c:1234 Choose an option
if errorlevel 4 goto END
if errorlevel 3 goto IGMS
if errorlevel 2 goto HPMS
if errorlevel 1 goto IHPMS
goto END

:IHPMS
dcc32 -Uc:\ihpms\common\my_com~1;c:\ihpms\common\dbgrideh;c:\borland\delphi5\imports -DIHPMS -B -W ihpms.dpr
goto END

:HPMS
cd C:\IHPMS\HPMS\code\client
dcc32 -Uc:\ihpms\common\my_com~1;c:\ihpms\common\dbgrideh;c:\borland\delphi5\imports -B -W hpms.dpr
goto END

:IGMS
cd C:\IHPMS\iSYS\iGMS\code\client
dcc32 -Uc:\ihpms\common\my_com~1;c:\ihpms\common\dbgrideh;c:\borland\delphi5\imports -B -W igms.dpr
goto END

:END
cd c:\ihpms

Regards! zallen@cmmail.com
ICQ:101229409
I want to emigrate Canada or Australia. Any relative information you supplied will be appreciated!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top