File: Makefile.maint

package info (click to toggle)
ffcall 2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,808 kB
  • sloc: asm: 43,409; ansic: 23,224; sh: 5,383; makefile: 1,517; cpp: 2
file content (176 lines) | stat: -rw-r--r-- 6,060 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
# maintainer -*-Makefile-*-

SHELL = /bin/sh
MAKE = make

# You need to use this precise version of GNU Automake.
# If you want to use a different version of GNU Automake, you are on your own!
ACLOCAL = aclocal-1.15
AUTOMAKE = automake-1.15

# You need to use this precise version of GNU Autoconf and create
# symbolic links
#   $ ln -s `which autoconf` autoconf-`autoconf --version | sed -e '2,$d' -e 's/^[^0-9]*//'`
#   $ ln -s `which autoheader` autoheader-`autoheader --version | sed -e '2,$d' -e 's/^[^0-9]*//'`
# If you want to use a different version of GNU Autoconf, you are on your own!
AUTOCONF = autoconf-2.69
AUTOHEADER = autoheader-2.69

CP = cp
RM = rm -f

# ==================== Easily regeneratable files ====================

.PHONY : all
all : aclocal.m4 configures check-configures config-h-in Makefile-ins force
	cd avcall && $(MAKE) -f Makefile.maint all
	cd vacall && $(MAKE) -f Makefile.maint all
	cd trampoline && $(MAKE) -f Makefile.maint all
	cd callback && $(MAKE) -f Makefile.maint all


# Files originating from GNU libtool.

# It is important to get ltmain.sh and libtool.m4 from the same version of
# libtool. Don't rely on what's installed in /usr/share or similar.

.PHONY : libtool-imported-files
libtool-imported-files : force
	test -n "$(LIBTOOL_RELEASE)" || { echo "Variable LIBTOOL_RELEASE not set." 1>&2; exit 1; }
	test -f "$(LIBTOOL_RELEASE)" || { echo "File $(LIBTOOL_RELEASE) does not exist." 1>&2; exit 1; }
	rm -rf libtool.tmp
	mkdir libtool.tmp
	gzip -d -c < "$(LIBTOOL_RELEASE)" | (cd libtool.tmp && tar -xf -)
	test -d build-aux || mkdir build-aux
	for destfile in m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4 build-aux/ltmain.sh; do \
	  name=`echo $$destfile | sed -e 's|^.*/||'`; \
	  srcfile=`find libtool.tmp -name $$name -print | sed 1q`; \
	  if test -n "$$srcfile"; then \
	    if test -f $$destfile && cmp "$$srcfile" $$destfile > /dev/null; then \
	      : ; \
	    else \
	      mv "$$srcfile" $$destfile; \
	    fi; \
	  else \
	    echo "File $(LIBTOOL_RELEASE) does not contain the expected files of a libtool release." 1>&2; \
	    exit 1; \
	  fi; \
	done
	rm -rf libtool.tmp
	: "Allow building statically linked binaries, through LDFLAGS=-static ."
	wget --execute netrc=off --no-verbose --retry-connrefused --timeout=60 -O libtool-allow-static.diff https://lists.gnu.org/archive/html/bug-libtool/2017-07/txt7Q9LRXv6HS.txt
	chmod u+w build-aux/ltmain.sh
	patch build-aux/ltmain.sh < libtool-allow-static.diff
	rm -f libtool-allow-static.diff
	: "Fix -export-symbols and -export-symbols-regex support on Solaris 11.3"
	wget --execute netrc=off --no-verbose --retry-connrefused --timeout=60 -O libtool-solaris11-fix.diff 'https://savannah.gnu.org/patch/download.php?file_id=42205'
	chmod u+w m4/libtool.m4
	patch -p1 < libtool-solaris11-fix.diff
	rm -f libtool-solaris11-fix.diff

.PHONY : libtool-clean
libtool-clean : force
	$(RM) m4/libtool.m4 build-aux/ltmain.sh


# Files brought in by gnulib-tool.

GNULIB_MODULES = \
  ansi-c++-opt \
  host-cpu-c-abi \
  lock \
  longlong \
  nocrash \
  stdint \
  stdnoreturn

gnulib-m4/gnulib-cache.m4 :
	if test -n "$$GNULIB_TOOL"; then \
	  $$GNULIB_TOOL --source-base=gnulib-lib --m4-base=gnulib-m4 --aux-dir=build-aux --libtool --no-changelog \
	    --import $(GNULIB_MODULES); \
	fi

.PHONY : gnulib-imported-files
gnulib-imported-files : force
# Get up-to-date versions of files imported from http://git.savannah.gnu.org/gitweb/?p=automake.git;a=tree;f=lib via gnulib.
	if test -n "$$GNULIB_TOOL"; then \
	  for file in ar-lib compile install-sh; do \
	    $$GNULIB_TOOL --copy-file build-aux/$$file || exit $$?; \
	    chmod a+x build-aux/$$file || exit $$?; \
	  done; \
	fi
# Get up-to-date versions of files imported from http://git.savannah.gnu.org/gitweb/?p=config.git;a=tree via gnulib.
	if test -n "$$GNULIB_TOOL"; then \
	  for file in config.guess config.sub; do \
	    $$GNULIB_TOOL --copy-file build-aux/$$file || exit $$?; \
	    chmod a+x build-aux/$$file || exit $$?; \
	  done; \
	fi

.PHONY : gnulib-clean
gnulib-clean : force
# Move gnulib-m4/gnulib-cache.m4 away, so that the target 'gnulib-m4/gnulib-cache.m4' will actually do something.
	if test -f gnulib-m4/gnulib-cache.m4; then \
	  mv gnulib-m4/gnulib-cache.m4 gnulib-m4/gnulib-cache.m4~; \
	fi
# No need to remove the stale files. gnulib-tool does this itself, thanks to gnulib-m4/gnulib-comp.m4.
#	rm -rf gnulib-m4


# Files generated by GNU Autoconf and GNU Automake.

AUTOCONF_CACHE = autom4te.cache

ALL_CONFIGURE = configure
ALL_CONFIGURE_AC = configure.ac

aclocal.m4 : $(ALL_CONFIGURE_AC) $(wildcard m4/*.m4) $(wildcard gnulib-m4/*.m4)
	$(ACLOCAL) --output=aclocal.m4 -I m4 -I gnulib-m4

.PHONY : configures
configures : $(ALL_CONFIGURE)

AUTOCONF_FILES = aclocal.m4 $(wildcard m4/*.m4) $(wildcard gnulib-m4/*.m4)

configure : configure.ac $(AUTOCONF_FILES)
	$(AUTOCONF) && rm -rf autom4te.cache

.PHONY : check-configures
check-configures : $(ALL_CONFIGURE)
	set -e; for f in $(ALL_CONFIGURE); do bash -x -n $$f; done


ALL_CONFIG_H_IN = config.h.in

.PHONY : config-h-in
config-h-in : $(ALL_CONFIG_H_IN)

config.h.in : configure.ac $(AUTOCONF_FILES)
	srcdir=`pwd`; $(AUTOHEADER) --include="$$srcdir" && rm -rf autom4te.cache


ALL_MAKEFILE_IN_FROM_AM = gnulib-lib/Makefile.in

.PHONY: Makefile-ins
Makefile-ins : $(ALL_MAKEFILE_IN_FROM_AM)

gnulib-lib/Makefile.in : gnulib-lib/Makefile.am configure.ac $(AUTOCONF_FILES)
	: "Make sure we get new versions of files brought in by automake."
	(cd build-aux && rm -f depcomp missing)
	$(AUTOMAKE) --add-missing --copy && rm -rf autom4te.cache


# ==================== Cleanup ====================

.PHONY : totally-clean
totally-clean : force
	cd avcall && $(MAKE) -f Makefile.maint totally-clean
	cd vacall && $(MAKE) -f Makefile.maint totally-clean
	cd trampoline && $(MAKE) -f Makefile.maint totally-clean
	cd callback && $(MAKE) -f Makefile.maint totally-clean
	rm -f $(ALL_CONFIGURE) $(ALL_CONFIG_H_IN)
	rm -f aclocal.m4
	rm -rf `find . -name $(AUTOCONF_CACHE) -print`


force :