quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

Makefile.am (6967B)


      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
     26 
     27 ACLOCAL_AMFLAGS = -I m4
     28 
     29 CMAKE_DIST =                                    \
     30  CMake/cmake_uninstall.cmake.in                 \
     31  CMake/CMakeConfigurableFile.in                 \
     32  CMake/curl-config.cmake.in                     \
     33  CMake/CurlSymbolHiding.cmake                   \
     34  CMake/CurlTests.c                              \
     35  CMake/FindBrotli.cmake                         \
     36  CMake/FindCares.cmake                          \
     37  CMake/FindGSS.cmake                            \
     38  CMake/FindLDAP.cmake                           \
     39  CMake/FindLibgsasl.cmake                       \
     40  CMake/FindLibidn2.cmake                        \
     41  CMake/FindLibpsl.cmake                         \
     42  CMake/FindLibrtmp.cmake                        \
     43  CMake/FindLibssh.cmake                         \
     44  CMake/FindLibssh2.cmake                        \
     45  CMake/FindLibuv.cmake                          \
     46  CMake/FindMSH3.cmake                           \
     47  CMake/FindMbedTLS.cmake                        \
     48  CMake/FindNGHTTP2.cmake                        \
     49  CMake/FindNGHTTP3.cmake                        \
     50  CMake/FindNGTCP2.cmake                         \
     51  CMake/FindNettle.cmake                         \
     52  CMake/FindQuiche.cmake                         \
     53  CMake/FindRustls.cmake                         \
     54  CMake/FindWolfSSH.cmake                        \
     55  CMake/FindWolfSSL.cmake                        \
     56  CMake/FindZstd.cmake                           \
     57  CMake/Macros.cmake                             \
     58  CMake/OtherTests.cmake                         \
     59  CMake/PickyWarnings.cmake                      \
     60  CMake/Utilities.cmake                          \
     61  CMake/unix-cache.cmake                         \
     62  CMake/win32-cache.cmake                        \
     63  CMakeLists.txt                                 \
     64  tests/cmake/CMakeLists.txt                     \
     65  tests/cmake/test.c                             \
     66  tests/cmake/test.sh
     67 
     68 VC_DIST = projects/README.md projects/generate.bat
     69 
     70 WINBUILD_DIST = winbuild/README.md \
     71  winbuild/MakefileBuild.vc winbuild/Makefile.vc winbuild/makedebug.bat
     72 
     73 PLAN9_DIST = plan9/include/mkfile \
     74  plan9/include/mkfile             \
     75  plan9/mkfile.proto               \
     76  plan9/mkfile                     \
     77  plan9/README                     \
     78  plan9/lib/mkfile.inc             \
     79  plan9/lib/mkfile                 \
     80  plan9/src/mkfile.inc             \
     81  plan9/src/mkfile
     82 
     83 EXTRA_DIST = CHANGES.md COPYING RELEASE-NOTES Dockerfile \
     84  $(CMAKE_DIST) $(VC_DIST) $(WINBUILD_DIST) $(PLAN9_DIST)
     85 
     86 DISTCLEANFILES = buildinfo.txt
     87 
     88 bin_SCRIPTS = curl-config
     89 
     90 SUBDIRS = lib docs src scripts
     91 DIST_SUBDIRS = $(SUBDIRS) tests packages include docs
     92 
     93 pkgconfigdir = $(libdir)/pkgconfig
     94 pkgconfig_DATA = libcurl.pc
     95 
     96 dist-hook:
     97 	rm -rf $(top_builddir)/tests/log
     98 	find $(distdir) -name "*.dist" -exec rm {} \;
     99 	(distit=`find $(srcdir) -name "*.dist" | grep -v Makefile`; \
    100 	for file in $$distit; do \
    101 	  strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \
    102 	  cp -p $$file $(distdir)$$strip; \
    103 	done)
    104 
    105 check: test examples check-docs
    106 
    107 if CROSSCOMPILING
    108 test-full: test
    109 test-nonflaky: test
    110 test-torture: test
    111 test-event: test
    112 test-am: test
    113 test-ci: test
    114 pytest: test
    115 pytest-ci: test
    116 
    117 test:
    118 	@echo "NOTICE: we can't run the tests when cross-compiling!"
    119 
    120 else
    121 
    122 test:
    123 	@(cd tests; $(MAKE) all quiet-test)
    124 
    125 test-full:
    126 	@(cd tests; $(MAKE) all full-test)
    127 
    128 test-nonflaky:
    129 	@(cd tests; $(MAKE) all nonflaky-test)
    130 
    131 test-torture:
    132 	@(cd tests; $(MAKE) all torture-test)
    133 
    134 test-event:
    135 	@(cd tests; $(MAKE) all event-test)
    136 
    137 test-am:
    138 	@(cd tests; $(MAKE) all am-test)
    139 
    140 test-ci:
    141 	@(cd tests; $(MAKE) all ci-test)
    142 
    143 pytest:
    144 	@(cd tests; $(MAKE) all default-pytest)
    145 
    146 pytest-ci:
    147 	@(cd tests; $(MAKE) all ci-pytest)
    148 
    149 endif
    150 
    151 examples:
    152 	@(cd docs/examples; $(MAKE) check)
    153 
    154 check-docs:
    155 	@(cd docs/libcurl; $(MAKE) check)
    156 
    157 # Build source and binary rpms. For rpm-3.0 and above, the ~/.rpmmacros
    158 # must contain the following line:
    159 # %_topdir /home/loic/local/rpm
    160 # and that /home/loic/local/rpm contains the directory SOURCES, BUILD etc.
    161 #
    162 # cd /home/loic/local/rpm ; mkdir -p SOURCES BUILD RPMS/i386 SPECS SRPMS
    163 #
    164 # If additional configure flags are needed to build the package, add the
    165 # following in ~/.rpmmacros
    166 # %configure CFLAGS="%{optflags}" ./configure %{_target_platform} --prefix=%{_prefix} ${AM_CONFIGFLAGS}
    167 # and run make rpm in the following way:
    168 # AM_CONFIGFLAGS='--with-uri=/home/users/loic/local/RedHat-6.2' make rpm
    169 #
    170 
    171 rpms:
    172 	$(MAKE) RPMDIST=curl rpm
    173 	$(MAKE) RPMDIST=curl-ssl rpm
    174 
    175 rpm:
    176 	RPM_TOPDIR=`rpm --showrc | $(PERL) -n -e 'print if(s/.*_topdir\s+(.*)/$$1/)'` ; \
    177 	cp $(srcdir)/packages/Linux/RPM/$(RPMDIST).spec $$RPM_TOPDIR/SPECS ; \
    178 	cp $(PACKAGE)-$(VERSION).tar.gz $$RPM_TOPDIR/SOURCES ; \
    179 	rpm -ba --clean --rmsource $$RPM_TOPDIR/SPECS/$(RPMDIST).spec ; \
    180 	mv $$RPM_TOPDIR/RPMS/i386/$(RPMDIST)-*.rpm . ; \
    181 	mv $$RPM_TOPDIR/SRPMS/$(RPMDIST)-*.src.rpm .
    182 
    183 # We extend the standard install with a custom hook:
    184 if BUILD_DOCS
    185 install-data-hook:
    186 	(cd include && $(MAKE) install)
    187 	(cd docs && $(MAKE) install)
    188 	(cd docs/libcurl && $(MAKE) install)
    189 else
    190 install-data-hook:
    191 	(cd include && $(MAKE) install)
    192 	(cd docs && $(MAKE) install)
    193 endif
    194 
    195 # We extend the standard uninstall with a custom hook:
    196 uninstall-hook:
    197 	(cd include && $(MAKE) uninstall)
    198 	(cd docs && $(MAKE) uninstall)
    199 	(cd docs/libcurl && $(MAKE) uninstall)
    200 
    201 ca-bundle: $(srcdir)/scripts/mk-ca-bundle.pl
    202 	@echo "generating a fresh ca-bundle.crt"
    203 	@perl $(srcdir)/scripts/mk-ca-bundle.pl -b -l -u lib/ca-bundle.crt
    204 
    205 ca-firefox: $(srcdir)/scripts/firefox-db2pem.sh
    206 	@echo "generating a fresh ca-bundle.crt"
    207 	$(srcdir)/scripts/firefox-db2pem.sh lib/ca-bundle.crt
    208 
    209 checksrc:
    210 	(cd lib && $(MAKE) checksrc)
    211 	(cd src && $(MAKE) checksrc)
    212 	(cd tests && $(MAKE) checksrc)
    213 	(cd include/curl && $(MAKE) checksrc)
    214 	(cd docs/examples && $(MAKE) checksrc)
    215 	(cd packages && $(MAKE) checksrc)
    216 
    217 tidy:
    218 	(cd src && $(MAKE) tidy)
    219 	(cd lib && $(MAKE) tidy)
    220 
    221 clean-local:
    222 	(cd tests && $(MAKE) clean)