How to make a makefile only for compiling some java files?

安稳与你 提交于 2019-12-02 18:17:01

问题


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:


  1. Define your suffixes.
  2. Define how to turn .java into .class
  3. Define what classes you want
  4. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!