|
Read up on how to create makefiles and then you can just do something like:
make
or
make myprog
Actually, if it's just a C/C++ file and you don't need any special libraries, you can usually just do
make myprog
without a Makefile, and it will automatically build files with a .c extension using gcc, or if it's got a .cpp extension, it will compile it with g++...
I've never used xlc before, so maybe that does something that would require you to add more to a makefile than if you were just using gcc, though...
Last edited by deiussum; 06-03-2004 at 01:15 PM.
|