Passing C/C++ #defines to makefile

后端 未结 4 607
一向
一向 2020-12-29 20:31

I develop C/C++ using the Eclipse IDE. Eclipse also generates a makefile which I don\'t want to edit as it will simply be overwritten.

I want to use that makefile fo

4条回答
  •  無奈伤痛
    2020-12-29 20:44

    You could write a small program to include the headers and write a makefile fragment which you include in the main makefile (requires GNU make).

    This is a fairly ugly solution that requires a fair amount of hand hackery. More elegant would be to parse the project file and write the makefile fragment.

提交回复
热议问题