Makefile.am (2282B)
1 #*************************************************************************** 2 # _ _ ____ _ 3 # Project ___| | | | _ \| | 4 # / __| | | | |_) | | 5 # | (__| |_| | _ <| |___ 6 # \___|\___/|_| \_\_____| 7 # 8 # Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 9 # 10 # This software is licensed as described in the file COPYING, which 11 # you should have received as part of this distribution. The terms 12 # are also available at https://curl.se/docs/copyright.html. 13 # 14 # You may opt to use, copy, modify, merge, publish, distribute and/or sell 15 # copies of the Software, and permit persons to whom the Software is 16 # furnished to do so, under the terms of the COPYING file. 17 # 18 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 19 # KIND, either express or implied. 20 # 21 # SPDX-License-Identifier: curl 22 # 23 ########################################################################### 24 25 AUTOMAKE_OPTIONS = foreign nostdinc 26 27 EXTRA_DIST = CMakeLists.txt README.md Makefile.example $(COMPLICATED_EXAMPLES) 28 29 # Specify our include paths here, and do it relative to $(top_srcdir) and 30 # $(top_builddir), to ensure that these paths which belong to the library 31 # being currently built and tested are searched before the library which 32 # might possibly already be installed in the system. 33 # 34 # $(top_srcdir)/include is for libcurl's external include files 35 36 AM_CPPFLAGS = -I$(top_srcdir)/include 37 38 if USE_CPPFLAG_CURL_STATICLIB 39 AM_CPPFLAGS += -DCURL_STATICLIB 40 endif 41 if DOING_NATIVE_WINDOWS 42 AM_CPPFLAGS += -DWIN32_LEAN_AND_MEAN 43 endif 44 # Avoid libcurl obsolete stuff 45 AM_CPPFLAGS += -DCURL_NO_OLDIES 46 47 # Prevent LIBS from being used for all link targets 48 LIBS = $(BLANK_AT_MAKETIME) 49 50 # Dependencies 51 LDADD = $(top_builddir)/lib/libcurl.la 52 53 # This might hold -Werror 54 CFLAGS += @CURL_CFLAG_EXTRAS@ 55 56 # Get check_PROGRAMS variable 57 include Makefile.inc 58 59 all: $(check_PROGRAMS) 60 61 CHECKSRC = $(CS_$(V)) 62 CS_0 = @echo " RUN " $@; 63 CS_1 = 64 CS_ = $(CS_0) 65 66 checksrc: 67 $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) $(srcdir)/*.c) 68 69 if NOT_CURL_CI 70 if DEBUGBUILD 71 # for debug builds, we scan the sources on all regular make invokes 72 all-local: checksrc 73 endif 74 endif