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 WorkerAUTOMAKE_OPTIONS = foreign nostdinc 25*6236dae4SAndroid Build Coastguard Worker 26*6236dae4SAndroid Build Coastguard Worker# Specify our include paths here, and do it relative to $(top_srcdir) and 27*6236dae4SAndroid Build Coastguard Worker# $(top_builddir), to ensure that these paths which belong to the library 28*6236dae4SAndroid Build Coastguard Worker# being currently built and tested are searched before the library which 29*6236dae4SAndroid Build Coastguard Worker# might possibly already be installed in the system. 30*6236dae4SAndroid Build Coastguard Worker# 31*6236dae4SAndroid Build Coastguard Worker# $(top_srcdir)/include is for libcurl's external include files 32*6236dae4SAndroid Build Coastguard Worker# $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file 33*6236dae4SAndroid Build Coastguard Worker# $(top_srcdir)/lib for libcurl's lib/curl_setup.h and other "borrowed" files 34*6236dae4SAndroid Build Coastguard Worker 35*6236dae4SAndroid Build Coastguard WorkerAM_CPPFLAGS = -I$(top_srcdir)/include \ 36*6236dae4SAndroid Build Coastguard Worker -I$(top_builddir)/lib \ 37*6236dae4SAndroid Build Coastguard Worker -I$(top_srcdir)/lib \ 38*6236dae4SAndroid Build Coastguard Worker -I$(top_srcdir)/tests/libtest 39*6236dae4SAndroid Build Coastguard Worker 40*6236dae4SAndroid Build Coastguard WorkerEXTRA_DIST = test307.pl test610.pl test613.pl test1013.pl test1022.pl \ 41*6236dae4SAndroid Build Coastguard Worker CMakeLists.txt mk-lib1521.pl .checksrc 42*6236dae4SAndroid Build Coastguard Worker 43*6236dae4SAndroid Build Coastguard WorkerCFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@ 44*6236dae4SAndroid Build Coastguard Worker 45*6236dae4SAndroid Build Coastguard WorkerCFLAGS += @CURL_CFLAG_EXTRAS@ 46*6236dae4SAndroid Build Coastguard Worker 47*6236dae4SAndroid Build Coastguard WorkerCLEANFILES = lib1521.c 48*6236dae4SAndroid Build Coastguard Worker 49*6236dae4SAndroid Build Coastguard Worker# Prevent LIBS from being used for all link targets 50*6236dae4SAndroid Build Coastguard WorkerLIBS = $(BLANK_AT_MAKETIME) 51*6236dae4SAndroid Build Coastguard Worker 52*6236dae4SAndroid Build Coastguard WorkerSUPPORTFILES_LIBS = $(top_builddir)/lib/libcurl.la @LIBCURL_PC_LIBS_PRIVATE@ 53*6236dae4SAndroid Build Coastguard WorkerTESTUTIL_LIBS = $(top_builddir)/lib/libcurl.la @LIBCURL_PC_LIBS_PRIVATE@ 54*6236dae4SAndroid Build Coastguard Worker 55*6236dae4SAndroid Build Coastguard Worker# Dependencies (may need to be overridden) 56*6236dae4SAndroid Build Coastguard WorkerLDADD = $(SUPPORTFILES_LIBS) 57*6236dae4SAndroid Build Coastguard Worker 58*6236dae4SAndroid Build Coastguard Worker# Makefile.inc provides the source defines (TESTUTIL, SUPPORTFILES, 59*6236dae4SAndroid Build Coastguard Worker# LIBTESTPROGS, lib*_SOURCES, and lib*_CFLAGS) 60*6236dae4SAndroid Build Coastguard Workerinclude Makefile.inc 61*6236dae4SAndroid Build Coastguard Worker 62*6236dae4SAndroid Build Coastguard Workernoinst_LTLIBRARIES = 63*6236dae4SAndroid Build Coastguard Worker 64*6236dae4SAndroid Build Coastguard Workerif USE_CPPFLAG_CURL_STATICLIB 65*6236dae4SAndroid Build Coastguard WorkerAM_CPPFLAGS += -DCURL_STATICLIB 66*6236dae4SAndroid Build Coastguard Workerendif 67*6236dae4SAndroid Build Coastguard Worker 68*6236dae4SAndroid Build Coastguard WorkerAM_LDFLAGS = 69*6236dae4SAndroid Build Coastguard WorkerAM_CFLAGS = 70*6236dae4SAndroid Build Coastguard Worker 71*6236dae4SAndroid Build Coastguard Workerlibstubgss_la_LDFLAGS_EXTRA = 72*6236dae4SAndroid Build Coastguard Worker 73*6236dae4SAndroid Build Coastguard Workerif CURL_LT_SHLIB_USE_NO_UNDEFINED 74*6236dae4SAndroid Build Coastguard Workerlibstubgss_la_LDFLAGS_EXTRA += -no-undefined 75*6236dae4SAndroid Build Coastguard Workerendif 76*6236dae4SAndroid Build Coastguard Worker 77*6236dae4SAndroid Build Coastguard Worker# Build a stub gssapi implementation for testing 78*6236dae4SAndroid Build Coastguard Workerif BUILD_STUB_GSS 79*6236dae4SAndroid Build Coastguard Workernoinst_LTLIBRARIES += libstubgss.la 80*6236dae4SAndroid Build Coastguard Worker 81*6236dae4SAndroid Build Coastguard Workerlibstubgss_la_CPPFLAGS = $(AM_CPPFLAGS) 82*6236dae4SAndroid Build Coastguard Workerlibstubgss_la_LDFLAGS = $(AM_LDFLAGS) $(libstubgss_la_LDFLAGS_EXTRA) -avoid-version -rpath /nowhere 83*6236dae4SAndroid Build Coastguard Workerlibstubgss_la_CFLAGS = $(AM_CFLAGS) -g 84*6236dae4SAndroid Build Coastguard Worker 85*6236dae4SAndroid Build Coastguard Workerlibstubgss_la_SOURCES = stub_gssapi.c stub_gssapi.h 86*6236dae4SAndroid Build Coastguard Worker 87*6236dae4SAndroid Build Coastguard Workerlibstubgss_la_LIBADD = 88*6236dae4SAndroid Build Coastguard Workerlibstubgss_la_DEPENDENCIES = 89*6236dae4SAndroid Build Coastguard Workerendif 90*6236dae4SAndroid Build Coastguard Worker 91*6236dae4SAndroid Build Coastguard Workerif USE_TEST_BUNDLES 92*6236dae4SAndroid Build Coastguard WorkerAM_CPPFLAGS += -DCURL_NO_GETADDRINFO_OVERRIDE 93*6236dae4SAndroid Build Coastguard Worker 94*6236dae4SAndroid Build Coastguard Workerlibtest_bundle.c: $(top_srcdir)/tests/mk-bundle.pl lib1521.c 95*6236dae4SAndroid Build Coastguard Worker @PERL@ $(top_srcdir)/tests/mk-bundle.pl $(srcdir) > libtest_bundle.c 96*6236dae4SAndroid Build Coastguard Worker 97*6236dae4SAndroid Build Coastguard Workernoinst_PROGRAMS = libtests 98*6236dae4SAndroid Build Coastguard Workernodist_libtests_SOURCES = libtest_bundle.c 99*6236dae4SAndroid Build Coastguard Workerlibtests_SOURCES = $(TESTUTIL) $(TSTTRACE) 100*6236dae4SAndroid Build Coastguard Workerlibtests_LDADD = $(TESTUTIL_LIBS) 101*6236dae4SAndroid Build Coastguard WorkerCLEANFILES += libtest_bundle.c 102*6236dae4SAndroid Build Coastguard Worker 103*6236dae4SAndroid Build Coastguard Workerif USE_CPPFLAG_CURL_STATICLIB 104*6236dae4SAndroid Build Coastguard Workerelse 105*6236dae4SAndroid Build Coastguard Worker# These are part of the libcurl static lib. Add them here when linking shared. 106*6236dae4SAndroid Build Coastguard Workerlibtests_SOURCES += $(WARNLESS) $(MULTIBYTE) $(TIMEDIFF) $(THREADS) 107*6236dae4SAndroid Build Coastguard Workerendif 108*6236dae4SAndroid Build Coastguard Workerelse 109*6236dae4SAndroid Build Coastguard Workernoinst_PROGRAMS = $(LIBTESTPROGS) 110*6236dae4SAndroid Build Coastguard Workerendif 111*6236dae4SAndroid Build Coastguard Worker 112*6236dae4SAndroid Build Coastguard Workerlib1521.c: $(top_srcdir)/tests/libtest/mk-lib1521.pl $(top_srcdir)/include/curl/curl.h 113*6236dae4SAndroid Build Coastguard Worker @PERL@ $(top_srcdir)/tests/libtest/mk-lib1521.pl < $(top_srcdir)/include/curl/curl.h lib1521.c 114*6236dae4SAndroid Build Coastguard Worker 115*6236dae4SAndroid Build Coastguard WorkerCHECKSRC = $(CS_$(V)) 116*6236dae4SAndroid Build Coastguard WorkerCS_0 = @echo " RUN " $@; 117*6236dae4SAndroid Build Coastguard WorkerCS_1 = 118*6236dae4SAndroid Build Coastguard WorkerCS_ = $(CS_0) 119*6236dae4SAndroid Build Coastguard Worker 120*6236dae4SAndroid Build Coastguard Workerchecksrc: 121*6236dae4SAndroid Build Coastguard Worker $(CHECKSRC)@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) $(srcdir)/*.[ch] 122*6236dae4SAndroid Build Coastguard Worker 123*6236dae4SAndroid Build Coastguard Workerif DEBUGBUILD 124*6236dae4SAndroid Build Coastguard Worker# for debug builds, we scan the sources on all regular make invokes 125*6236dae4SAndroid Build Coastguard Workerall-local: checksrc 126*6236dae4SAndroid Build Coastguard Workerendif 127