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

后端 未结 1 1453
耶瑟儿~
耶瑟儿~ 2021-01-27 08:48

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 m

1条回答
  •  爱一瞬间的悲伤
    2021-01-27 09:46

    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.

    0 讨论(0)
提交回复
热议问题