123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- AUTOMAKE_OPTIONS = foreign nostdinc
- CMAKE_DIST = CMakeLists.txt curl_config.h.cmake
- CHECKSRC_DIST = .checksrc vauth/.checksrc vquic/.checksrc vssh/.checksrc \
- vtls/.checksrc
- EXTRA_DIST = config-win32.h config-win32ce.h config-plan9.h \
- config-riscos.h config-mac.h curl_config.h.in libcurl.rc \
- config-win32ce.h config-os400.h setup-os400.h \
- $(CMAKE_DIST) setup-win32.h Makefile.soname optiontable.pl libcurl.def \
- $(CHECKSRC_DIST)
- lib_LTLIBRARIES = libcurl.la
- if BUILD_UNITTESTS
- noinst_LTLIBRARIES = libcurlu.la
- else
- noinst_LTLIBRARIES =
- endif
- CFLAGS += @CURL_CFLAG_EXTRAS@
- AM_CPPFLAGS = -I$(top_srcdir)/include \
- -I$(top_builddir)/lib \
- -I$(top_srcdir)/lib
- LIBS = $(BLANK_AT_MAKETIME)
- include Makefile.soname
- AM_CPPFLAGS += -DBUILDING_LIBCURL
- AM_LDFLAGS =
- AM_CFLAGS =
- include Makefile.inc
- if USE_UNITY
- curl_EXCLUDE = curl_threads.c timediff.c warnless.c
- if DEBUGBUILD
- curl_EXCLUDE += memdebug.c curl_multibyte.c
- endif
- libcurl_unity.c: $(top_srcdir)/scripts/mk-unity.pl $(CSOURCES)
- @PERL@ $(top_srcdir)/scripts/mk-unity.pl $(srcdir) $(CSOURCES) --exclude $(curl_EXCLUDE) > libcurl_unity.c
- nodist_libcurl_la_SOURCES = libcurl_unity.c
- libcurl_la_SOURCES = $(curl_EXCLUDE)
- nodist_libcurlu_la_SOURCES = libcurl_unity.c
- libcurlu_la_SOURCES = $(curl_EXCLUDE)
- CLEANFILES = libcurl_unity.c
- else
- libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
- libcurlu_la_SOURCES = $(CSOURCES) $(HHEADERS)
- endif
- libcurl_la_CPPFLAGS_EXTRA =
- libcurl_la_LDFLAGS_EXTRA =
- libcurl_la_CFLAGS_EXTRA =
- if CURL_LT_SHLIB_USE_VERSION_INFO
- libcurl_la_LDFLAGS_EXTRA += $(VERSIONINFO)
- endif
- if CURL_LT_SHLIB_USE_NO_UNDEFINED
- libcurl_la_LDFLAGS_EXTRA += -no-undefined
- endif
- if CURL_LT_SHLIB_USE_MIMPURE_TEXT
- libcurl_la_LDFLAGS_EXTRA += -mimpure-text
- endif
- if CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS
- libcurl_la_LDFLAGS_EXTRA += -Wl,--version-script=libcurl.vers
- else
- if DOING_CURL_SYMBOL_HIDING
- libcurl_la_LDFLAGS_EXTRA += -export-symbols-regex '^curl_.*'
- endif
- endif
- if USE_CPPFLAG_CURL_STATICLIB
- libcurl_la_CPPFLAGS_EXTRA += -DCURL_STATICLIB
- else
- if HAVE_WINDRES
- libcurl_la_SOURCES += $(LIB_RCFILES)
- $(LIB_RCFILES): $(top_srcdir)/include/curl/curlver.h
- endif
- endif
- if DOING_CURL_SYMBOL_HIDING
- libcurl_la_CPPFLAGS_EXTRA += -DCURL_HIDDEN_SYMBOLS
- libcurl_la_CFLAGS_EXTRA += $(CFLAG_CURL_SYMBOL_HIDING)
- endif
- libcurl_la_CPPFLAGS = $(AM_CPPFLAGS) $(libcurl_la_CPPFLAGS_EXTRA)
- libcurl_la_LDFLAGS = $(AM_LDFLAGS) $(libcurl_la_LDFLAGS_EXTRA) $(CURL_LDFLAGS_LIB) $(LIBCURL_PC_LIBS_PRIVATE)
- libcurl_la_CFLAGS = $(AM_CFLAGS) $(libcurl_la_CFLAGS_EXTRA)
- libcurlu_la_CPPFLAGS = $(AM_CPPFLAGS) -DCURL_STATICLIB -DUNITTESTS
- libcurlu_la_LDFLAGS = $(AM_LDFLAGS) -static $(LIBCURL_PC_LIBS_PRIVATE)
- libcurlu_la_CFLAGS = $(AM_CFLAGS)
- CHECKSRC = $(CS_$(V))
- CS_0 = @echo " RUN " $@;
- CS_1 =
- CS_ = $(CS_0)
- checksrc:
- $(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
- -W$(srcdir)/curl_config.h $(srcdir)/*.[ch] $(srcdir)/vauth/*.[ch] \
- $(srcdir)/vtls/*.[ch] $(srcdir)/vquic/*.[ch] $(srcdir)/vssh/*.[ch])
- if DEBUGBUILD
- all-local: checksrc
- endif
- TIDYFLAGS=-checks=-clang-analyzer-security.insecureAPI.strcpy,-clang-analyzer-optin.performance.Padding,-clang-analyzer-valist.Uninitialized,-clang-analyzer-core.NonNullParamChecker,-clang-analyzer-core.NullDereference -quiet
- TIDY:=clang-tidy
- tidy:
- $(TIDY) $(CSOURCES) $(TIDYFLAGS) -- $(AM_CPPFLAGS) $(CPPFLAGS) -DHAVE_CONFIG_H
- optiontable:
- perl optiontable.pl < $(top_srcdir)/include/curl/curl.h > easyoptions.c
- if HAVE_WINDRES
- .rc.lo:
- $(LIBTOOL) --tag=RC --mode=compile $(RC) -I$(top_srcdir)/include $(RCFLAGS) -i $< -o $@
- endif
|