How to make a makefile only for compiling some jav

2019-03-05 23:32发布

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条回答
祖国的老花朵
2楼-- · 2019-03-06 00:04
  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.

查看更多
登录 后发表回答