xref: /aosp_15_r20/external/curl/docs/examples/Makefile.am (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker#***************************************************************************
2*6236dae4SAndroid Build Coastguard Worker#                                  _   _ ____  _
3*6236dae4SAndroid Build Coastguard Worker#  Project                     ___| | | |  _ \| |
4*6236dae4SAndroid Build Coastguard Worker#                             / __| | | | |_) | |
5*6236dae4SAndroid Build Coastguard Worker#                            | (__| |_| |  _ <| |___
6*6236dae4SAndroid Build Coastguard Worker#                             \___|\___/|_| \_\_____|
7*6236dae4SAndroid Build Coastguard Worker#
8*6236dae4SAndroid Build Coastguard Worker# Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9*6236dae4SAndroid Build Coastguard Worker#
10*6236dae4SAndroid Build Coastguard Worker# This software is licensed as described in the file COPYING, which
11*6236dae4SAndroid Build Coastguard Worker# you should have received as part of this distribution. The terms
12*6236dae4SAndroid Build Coastguard Worker# are also available at https://curl.se/docs/copyright.html.
13*6236dae4SAndroid Build Coastguard Worker#
14*6236dae4SAndroid Build Coastguard Worker# You may opt to use, copy, modify, merge, publish, distribute and/or sell
15*6236dae4SAndroid Build Coastguard Worker# copies of the Software, and permit persons to whom the Software is
16*6236dae4SAndroid Build Coastguard Worker# furnished to do so, under the terms of the COPYING file.
17*6236dae4SAndroid Build Coastguard Worker#
18*6236dae4SAndroid Build Coastguard Worker# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19*6236dae4SAndroid Build Coastguard Worker# KIND, either express or implied.
20*6236dae4SAndroid Build Coastguard Worker#
21*6236dae4SAndroid Build Coastguard Worker# SPDX-License-Identifier: curl
22*6236dae4SAndroid Build Coastguard Worker#
23*6236dae4SAndroid Build Coastguard Worker###########################################################################
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard WorkerAUTOMAKE_OPTIONS = foreign nostdinc
26*6236dae4SAndroid Build Coastguard Worker
27*6236dae4SAndroid Build Coastguard WorkerEXTRA_DIST = README.md Makefile.example Makefile.mk CMakeLists.txt \
28*6236dae4SAndroid Build Coastguard Worker  $(COMPLICATED_EXAMPLES) .checksrc
29*6236dae4SAndroid Build Coastguard Worker
30*6236dae4SAndroid Build Coastguard Worker# Specify our include paths here, and do it relative to $(top_srcdir) and
31*6236dae4SAndroid Build Coastguard Worker# $(top_builddir), to ensure that these paths which belong to the library
32*6236dae4SAndroid Build Coastguard Worker# being currently built and tested are searched before the library which
33*6236dae4SAndroid Build Coastguard Worker# might possibly already be installed in the system.
34*6236dae4SAndroid Build Coastguard Worker#
35*6236dae4SAndroid Build Coastguard Worker# $(top_srcdir)/include is for libcurl's external include files
36*6236dae4SAndroid Build Coastguard Worker
37*6236dae4SAndroid Build Coastguard WorkerAM_CPPFLAGS = -I$(top_srcdir)/include
38*6236dae4SAndroid Build Coastguard Worker
39*6236dae4SAndroid Build Coastguard WorkerLIBDIR = $(top_builddir)/lib
40*6236dae4SAndroid Build Coastguard Worker
41*6236dae4SAndroid Build Coastguard Worker# Avoid libcurl obsolete stuff
42*6236dae4SAndroid Build Coastguard WorkerAM_CPPFLAGS += -DCURL_NO_OLDIES
43*6236dae4SAndroid Build Coastguard Worker
44*6236dae4SAndroid Build Coastguard Workerif USE_CPPFLAG_CURL_STATICLIB
45*6236dae4SAndroid Build Coastguard WorkerAM_CPPFLAGS += -DCURL_STATICLIB
46*6236dae4SAndroid Build Coastguard Workerendif
47*6236dae4SAndroid Build Coastguard Worker
48*6236dae4SAndroid Build Coastguard Worker# Prevent LIBS from being used for all link targets
49*6236dae4SAndroid Build Coastguard WorkerLIBS = $(BLANK_AT_MAKETIME)
50*6236dae4SAndroid Build Coastguard Worker
51*6236dae4SAndroid Build Coastguard Worker# Dependencies
52*6236dae4SAndroid Build Coastguard WorkerLDADD = $(LIBDIR)/libcurl.la @LIBCURL_PC_LIBS_PRIVATE@
53*6236dae4SAndroid Build Coastguard Worker
54*6236dae4SAndroid Build Coastguard Worker# This might hold -Werror
55*6236dae4SAndroid Build Coastguard WorkerCFLAGS += @CURL_CFLAG_EXTRAS@
56*6236dae4SAndroid Build Coastguard Worker
57*6236dae4SAndroid Build Coastguard Worker# Makefile.inc provides the check_PROGRAMS and COMPLICATED_EXAMPLES defines
58*6236dae4SAndroid Build Coastguard Workerinclude Makefile.inc
59*6236dae4SAndroid Build Coastguard Worker
60*6236dae4SAndroid Build Coastguard Workerall: $(check_PROGRAMS)
61*6236dae4SAndroid Build Coastguard Worker
62*6236dae4SAndroid Build Coastguard WorkerCHECKSRC = $(CS_$(V))
63*6236dae4SAndroid Build Coastguard WorkerCS_0 = @echo "  RUN     " $@;
64*6236dae4SAndroid Build Coastguard WorkerCS_1 =
65*6236dae4SAndroid Build Coastguard WorkerCS_ = $(CS_0)
66*6236dae4SAndroid Build Coastguard Worker
67*6236dae4SAndroid Build Coastguard Workerchecksrc:
68*6236dae4SAndroid Build Coastguard Worker	$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) $(srcdir)/*.c)
69