mirror of
https://github.com/libssh2/libssh2.git
synced 2026-01-27 00:18:12 +03:00
Use `AM_CFLAGS` to pass custom, per-target C flags. This replaces using
`CFLAGS` which triggered this warning when running `autoreconf -fi`:
```
tests/Makefile.am:8: warning: 'CFLAGS' is a user variable, you should not override it;
tests/Makefile.am:8: use 'AM_CFLAGS' instead
```
(Only for `tests`, even though `example` and `src` also used this
method. The warning is also missing from curl, that also uses
`CFLAGS`.)
Follow-up to 3ec53f3ea2 #1286
Closes #1378
15 lines
388 B
Makefile
15 lines
388 B
Makefile
# Copyright (C) The libssh2 project and its contributors.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
AUTOMAKE_OPTIONS = foreign nostdinc
|
|
|
|
EXTRA_DIST = CMakeLists.txt
|
|
|
|
# Get noing_PROGRAMS
|
|
include Makefile.inc
|
|
|
|
AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src -I$(top_srcdir)/include
|
|
LDADD = $(top_builddir)/src/libssh2.la
|
|
|
|
# This might hold -Werror
|
|
AM_CFLAGS = @LIBSSH2_CFLAG_EXTRAS@
|