1############################################################# 2# 3# Copyright (C) the Massachusetts Institute of Technology. 4# Copyright (C) Daniel Stenberg 5# 6# Permission to use, copy, modify, and distribute this 7# software and its documentation for any purpose and without 8# fee is hereby granted, provided that the above copyright 9# notice appear in all copies and that both that copyright 10# notice and this permission notice appear in supporting 11# documentation, and that the name of M.I.T. not be used in 12# advertising or publicity pertaining to distribution of the 13# software without specific, written prior permission. 14# M.I.T. makes no representations about the suitability of 15# this software for any purpose. It is provided "as is" 16# without express or implied warranty. 17# 18# SPDX-License-Identifier: MIT 19# 20############################################################# 21 22AUTOMAKE_OPTIONS = foreign nostdinc 1.9.6 23ACLOCAL_AMFLAGS = -I m4 --install 24 25MSVCFILES = msvc_ver.inc buildconf.bat 26 27# adig and ahost are just sample programs and thus not mentioned with the 28# regular sources and headers 29EXTRA_DIST = AUTHORS CHANGES README.cares $(man_MANS) RELEASE-NOTES.md \ 30 c-ares-config.cmake.in libcares.pc.cmake libcares.pc.in buildconf get_ver.awk \ 31 maketgz TODO README.msvc $(MSVCFILES) INSTALL.md README.md LICENSE.md \ 32 CMakeLists.txt Makefile.dj Makefile.m32 Makefile.netware Makefile.msvc \ 33 Makefile.Watcom AUTHORS CONTRIBUTING.md SECURITY.md TODO \ 34 cmake/EnableWarnings.cmake 35 36CLEANFILES = $(PDFPAGES) $(HTMLPAGES) 37 38DISTCLEANFILES = include/ares_build.h 39 40DIST_SUBDIRS = include src test docs 41 42SUBDIRS = @BUILD_SUBDIRS@ 43 44pkgconfigdir = $(libdir)/pkgconfig 45pkgconfig_DATA = libcares.pc 46 47# where to install the c-ares headers 48libcares_ladir = $(includedir) 49 50 51# Make files named *.dist replace the file without .dist extension 52dist-hook: 53 find $(distdir) -name "*.dist" -exec rm {} \; 54 (distit=`find $(srcdir) -name "*.dist"`; \ 55 for file in $$distit; do \ 56 strip=`echo $$file | sed -e s/^$(srcdir)// -e s/\.dist//`; \ 57 cp $$file $(distdir)$$strip; \ 58 done) 59