Build in Java and Makefile in C/C++

sonxEr77

Expert Member
Joined
Oct 22, 2006
Messages
1,809
Was just having a quick look at makefiles, to me seems like the same concept as with build files in java projects?
 

hyperian

Expert Member
Joined
Apr 17, 2008
Messages
1,958
hmmm. Haven't had to write a makefile in many years. From what I remember, you use it to specify your program source files, how they are to be converted into their respective object files, and how those object files are going to be put together to make the executable.

I remember nearly being brought to tears a few times because of them buggers ;)
 

Sackboy

Executive Member
Joined
Dec 14, 2008
Messages
5,598
Well Java is supposed to be an improvement on C++, so it isn't a surprise they use similar concepts to include the libraries. Plus "import" = "include" etc..
 

sonxEr77

Expert Member
Joined
Oct 22, 2006
Messages
1,809
hmmm. Haven't had to write a makefile in many years. From what I remember, you use it to specify your program source files, how they are to be converted into their respective object files, and how those object files are going to be put together to make the executable.

I remember nearly being brought to tears a few times because of them buggers ;)

Build.xml build java classes which in a process include libraries/jar files, and perhaps specifies environment variables to use ... Your explanation of makefile seem to do the same (compile & specify includes) and build executables ...
 
Top