问题
I have three java files named A.java, B.java, C.java, A will create object B, B will create object C. But I have never built a makefile before. Does anyone can help me build a makefile just to compile these three java files? And what tool should I use to make a makefile? Thank you!
回答1:
- Define your suffixes.
- Define how to turn .java into .class
- Define what classes you want
- Define an "all" target.
You don't need any specific editor for making a makefile; even Notepad would do.
来源:https://stackoverflow.com/questions/15169634/how-to-make-a-makefile-only-for-compiling-some-java-files