• Kang-Che Sung (宋岡哲)'s avatar
    Use AM_CFLAGS and AM_LDFLAGS in Makefile.am (#760) · 2e3c35d6
    Kang-Che Sung (宋岡哲) authored
    
    
    This reduces generated Makefile.in size by 74%.
    (217319 bytes -> 56326 bytes)
    
    Automake considers that <prog>_CFLAGS and <prog>_LDFLAGS are
    program-specific build rules, and when such are specified, Automake
    will generate additional code just to avoid the "generic" and
    package-wide AM_CFLAGS or AM_LDFLAGS. (Especially for <prog>_CFLAGS,
    Automake will rename generated object files to become "prog-foo.o" and
    such, and it's _a lot_ of code to achieve this in Makefile.)
    
    There's no reason for htop to rename intermediate object files. It's
    better to make things simpler.
    Signed-off-by: default avatarKang-Che Sung <explorer09@gmail.com>
    2e3c35d6
Makefile.am 4.72 KB