• Andreas Schwab's avatar
    Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS · e6cfa7c3
    Andreas Schwab authored
    * configure.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
    (PROFILING_LDFLAGS): Substitute, don't add them to CFLAGS/LDFLAGS.
    (C_OPTIMIZE_SWITCH): Remove.
    (TEMACS_LDFLAGS2): Add ${PROFILING_LDFLAGS}.
    
    * lib-src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
    (PROFILING_LDFLAGS): Set from substitution.
    (BASE_CFLAGS): Add  ${C_WARNINGS_SWITCH}.
    (ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
    (LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.
    
    * lwlib/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
    substitution.
    (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
    
    * oldXMenu/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
    substitution.
    (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
    
    * src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
    (PROFILING_LDFLAGS): Set from substitution.
    (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
    CFLAGS last.
    e6cfa7c3
Makefile.in 2.7 KB