bcc and makefile

Hello, I'm trying to compile a little project with the borland command line tools 5.5.

I'm using a call to a makefile with:
 
MAKE.EXE -f MAKEFILE -a -c



the makefile have the content:
1
2
3
4
5
6
7
8
9
todo: prog.exe
DialogFunc.o: DialogFunc.cpp
	BCC32.EXE -c -tW -L"C:\Borland\BCC55\Lib" -I"C:\Borland\BCC55\Include" DialogFunc.cpp
otromod.o: otromod.cpp
	BCC32.EXE -c -tW -L"C:\Borland\BCC55\Lib" -I"C:\Borland\BCC55\Include" otromod.cpp
TestDlg.o: TestDlg.cpp
	BCC32.EXE -c -tW -L"C:\Borland\BCC55\Lib" -I"C:\Borland\BCC55\Include" TestDlg.cpp
prog.exe: DialogFunc.o otromod.o TestDlg.o
	ILINK32.EXE @Response.txt


and the response file:

1
2
/aa /c /x /Gn /L"C:\Borland\BCC55\Lib" "C:\Borland\BCC55\Lib\c0w32.obj" TestDlg.obj DialogFunc.obj otromod.obj
TestDlg.exe,,import32.lib cw32.lib,,TestDlg.res


The project compiles and run fine, it's a little dialog, but according with the command line help:


MAKE helps you quickly build projects by compiling only the files you have modified since the last compilation...


however, every time I call to make.exe seems to compile all the modules without taking in count if the file was modified or not. What is wrong?
Thank you in advance.
you can try auto tools like automake and autoconf, its one time work to setup the environment and they generate standard makefiles for you automatically.
Learning will not take more than half hour.
Last edited on
I have found what I wanted. Now only compile again the modified sources with the following makefile:

1
2
3
4
5
6
7
8
9
todo: prog.exe
DialogFunc.obj: DialogFunc.cpp
	BCC32.EXE -c -tW -L"C:\Borland\BCC55\Lib" -I"C:\Borland\BCC55\Include" DialogFunc.cpp
otromod.obj: otromod.cpp
	BCC32.EXE -c -tW -L"C:\Borland\BCC55\Lib" -I"C:\Borland\BCC55\Include" otromod.cpp
TestDlg.obj: TestDlg.cpp
	BCC32.EXE -c -tW -L"C:\Borland\BCC55\Lib" -I"C:\Borland\BCC55\Include" TestDlg.cpp
prog.exe: DialogFunc.obj otromod.obj TestDlg.obj
	ILINK32.EXE @Response.txt


writetonsharma:
The tools sound very promising. I will check it out, thank you for the reply.

Fabio.
you want a ready made simle example for automake, tell me your email will send.
If you're using bcc, and you have a make file that works, you'll find the GNU autobuild tools a project in itself. Save it for a portable project that uses gcc.
Topic archived. No new replies allowed.