source: rtems/c/src/exec/score/tools/unix/Makefile.in @ 1407343

4.104.114.84.95
Last change on this file since 1407343 was d2d22780, checked in by Joel Sherrill <joel.sherrill@…>, on 06/15/99 at 22:46:44

Patch from Ralf Corsepius <corsepiu@…>:

When I run my script that just repeatedly builds different targets, some
of them die with an error like this:

Making all RTEMS_BSP=gen68360 in cpugmake[5]: Entering directory
`/usr1/rtems/build/build-m68k-rtems/c/src/exec/score/cpu'
Making all RTEMS_BSP=gen68360 in @RTEMS_CPU@
/bin/sh: @RTEMS_CPU@: No such file or directory
gmake[5]: * [all] Error 1
gmake[5]: Leaving directory
`/usr1/rtems/build/build-m68k-rtems/c/src/exec/score/cpu'

It is not always the same variable substitution that fails. Sometimes it
is @INSTALL@. But reliably, it is a variable substitution that is
failing.

Do you have any idea why this happens?

Yep, I think I know what's going on.

AC_SUBST(RTEMS_CPU) is missing in configure.ins, thus @RTEMS_CPU@ in
target.cfg.in doesn't get substituted correctly, causing the bug above. Due
to the redundancy of RTEMS_CPU, other most BSPs don't seem to be affected.

Other similar problems probably exist for the unix/posix bsp and the hppa.1
cpu, because their */tools/*Makefile.ams require RTEMS_CPU, too.

  • Property mode set to 100644
File size: 10.3 KB
Line 
1# Makefile.in generated automatically by automake 1.4 from Makefile.am
2
3# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4# This Makefile.in is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved.
7
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11# PARTICULAR PURPOSE.
12
13#
14#  $Id$
15#
16
17
18
19SHELL = @SHELL@
20
21srcdir = @srcdir@
22top_srcdir = @top_srcdir@
23VPATH = @srcdir@
24prefix = @prefix@
25exec_prefix = @exec_prefix@
26
27bindir = @bindir@
28sbindir = @sbindir@
29libexecdir = @libexecdir@
30datadir = @datadir@
31sysconfdir = @sysconfdir@
32sharedstatedir = @sharedstatedir@
33localstatedir = @localstatedir@
34libdir = @libdir@
35infodir = @infodir@
36mandir = @mandir@
37includedir = @includedir@
38oldincludedir = /usr/include
39
40DESTDIR =
41
42pkgdatadir = $(datadir)/@PACKAGE@
43pkglibdir = $(libdir)/@PACKAGE@
44pkgincludedir = $(includedir)/@PACKAGE@
45
46top_builddir = .
47AUTOCONF = @AUTOCONF@
48AUTOMAKE = @AUTOMAKE@
49AUTOHEADER = @AUTOHEADER@
50
51INSTALL = @INSTALL@
52INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
53INSTALL_DATA = @INSTALL_DATA@
54INSTALL_SCRIPT = @INSTALL_SCRIPT@
55transform = @program_transform_name@
56
57NORMAL_INSTALL = :
58PRE_INSTALL = :
59POST_INSTALL = :
60NORMAL_UNINSTALL = :
61PRE_UNINSTALL = :
62POST_UNINSTALL = :
63build_alias = @build_alias@
64build_triplet = @build@
65host_alias = @host_alias@
66host_triplet = @host@
67target_alias = @target_alias@
68target_triplet = @target@
69CC = @CC@
70MAKEINFO = @MAKEINFO@
71PACKAGE = @PACKAGE@
72PROJECT_ROOT = @PROJECT_ROOT@
73RTEMS_CPU = @RTEMS_CPU@
74RTEMS_ROOT = @RTEMS_ROOT@
75RTEMS_TOPdir = @RTEMS_TOPdir@
76VERSION = @VERSION@
77project_bindir = @project_bindir@
78project_includedir = @project_includedir@
79project_libdir = @project_libdir@
80tooldir = @tooldir@
81
82AUTOMAKE_OPTIONS = foreign
83ACLOCAL = @ACLOCAL@ -I $(RTEMS_TOPdir)/aclocal
84
85noinst_PROGRAMS = gensize
86
87gensize_SOURCES = gensize.c
88
89# We use files that have not been installed yet.
90CPU_DIR = $(srcdir)/../../cpu/$(RTEMS_CPU)
91
92INCLUDES =  -I$(PROJECT_ROOT)/${RTEMS_BSP}/include -I$(CPU_DIR)
93
94ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
95mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../../../mkinstalldirs
96CONFIG_CLEAN_FILES =
97PROGRAMS =  $(noinst_PROGRAMS)
98
99
100DEFS = @DEFS@ -I. -I$(srcdir)
101CPPFLAGS = @CPPFLAGS@
102LDFLAGS = @LDFLAGS@
103LIBS = @LIBS@
104gensize_OBJECTS =  gensize.o
105gensize_LDADD = $(LDADD)
106gensize_DEPENDENCIES =
107gensize_LDFLAGS =
108CFLAGS = @CFLAGS@
109COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
110CCLD = $(CC)
111LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
112DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
113
114
115DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
116
117TAR = tar
118GZIP_ENV = --best
119DEP_FILES =  .deps/gensize.P
120SOURCES = $(gensize_SOURCES)
121OBJECTS = $(gensize_OBJECTS)
122
123all: all-redirect
124.SUFFIXES:
125.SUFFIXES: .S .c .o .s
126$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../../../../../automake/local.am
127        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
128
129Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
130        cd $(top_builddir) \
131          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
132
133$(ACLOCAL_M4):  configure.in
134        cd $(srcdir) && $(ACLOCAL)
135
136config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
137        $(SHELL) ./config.status --recheck
138$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
139        cd $(srcdir) && $(AUTOCONF)
140
141mostlyclean-noinstPROGRAMS:
142
143clean-noinstPROGRAMS:
144        -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
145
146distclean-noinstPROGRAMS:
147
148maintainer-clean-noinstPROGRAMS:
149
150.s.o:
151        $(COMPILE) -c $<
152
153.S.o:
154        $(COMPILE) -c $<
155
156mostlyclean-compile:
157        -rm -f *.o core *.core
158
159clean-compile:
160
161distclean-compile:
162        -rm -f *.tab.c
163
164maintainer-clean-compile:
165
166gensize: $(gensize_OBJECTS) $(gensize_DEPENDENCIES)
167        @rm -f gensize
168        $(LINK) $(gensize_LDFLAGS) $(gensize_OBJECTS) $(gensize_LDADD) $(LIBS)
169
170tags: TAGS
171
172ID: $(HEADERS) $(SOURCES) $(LISP)
173        list='$(SOURCES) $(HEADERS)'; \
174        unique=`for i in $$list; do echo $$i; done | \
175          awk '    { files[$$0] = 1; } \
176               END { for (i in files) print i; }'`; \
177        here=`pwd` && cd $(srcdir) \
178          && mkid -f$$here/ID $$unique $(LISP)
179
180TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
181        tags=; \
182        here=`pwd`; \
183        list='$(SOURCES) $(HEADERS)'; \
184        unique=`for i in $$list; do echo $$i; done | \
185          awk '    { files[$$0] = 1; } \
186               END { for (i in files) print i; }'`; \
187        test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
188          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
189
190mostlyclean-tags:
191
192clean-tags:
193
194distclean-tags:
195        -rm -f TAGS ID
196
197maintainer-clean-tags:
198
199distdir = $(PACKAGE)-$(VERSION)
200top_distdir = $(distdir)
201
202# This target untars the dist file and tries a VPATH configuration.  Then
203# it guarantees that the distribution is self-contained by making another
204# tarfile.
205distcheck: dist
206        -rm -rf $(distdir)
207        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
208        mkdir $(distdir)/=build
209        mkdir $(distdir)/=inst
210        dc_install_base=`cd $(distdir)/=inst && pwd`; \
211        cd $(distdir)/=build \
212          && ../configure --srcdir=.. --prefix=$$dc_install_base \
213          && $(MAKE) $(AM_MAKEFLAGS) \
214          && $(MAKE) $(AM_MAKEFLAGS) dvi \
215          && $(MAKE) $(AM_MAKEFLAGS) check \
216          && $(MAKE) $(AM_MAKEFLAGS) install \
217          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
218          && $(MAKE) $(AM_MAKEFLAGS) dist
219        -rm -rf $(distdir)
220        @banner="$(distdir).tar.gz is ready for distribution"; \
221        dashes=`echo "$$banner" | sed s/./=/g`; \
222        echo "$$dashes"; \
223        echo "$$banner"; \
224        echo "$$dashes"
225dist: distdir
226        -chmod -R a+r $(distdir)
227        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
228        -rm -rf $(distdir)
229dist-all: distdir
230        -chmod -R a+r $(distdir)
231        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
232        -rm -rf $(distdir)
233distdir: $(DISTFILES)
234        -rm -rf $(distdir)
235        mkdir $(distdir)
236        -chmod 777 $(distdir)
237        here=`cd $(top_builddir) && pwd`; \
238        top_distdir=`cd $(distdir) && pwd`; \
239        distdir=`cd $(distdir) && pwd`; \
240        cd $(top_srcdir) \
241          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
242        @for file in $(DISTFILES); do \
243          d=$(srcdir); \
244          if test -d $$d/$$file; then \
245            cp -pr $$/$$file $(distdir)/$$file; \
246          else \
247            test -f $(distdir)/$$file \
248            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
249            || cp -p $$d/$$file $(distdir)/$$file || :; \
250          fi; \
251        done
252
253DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
254
255-include $(DEP_FILES)
256
257mostlyclean-depend:
258
259clean-depend:
260
261distclean-depend:
262        -rm -rf .deps
263
264maintainer-clean-depend:
265
266%.o: %.c
267        @echo '$(COMPILE) -c $<'; \
268        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
269        @-cp .deps/$(*F).pp .deps/$(*F).P; \
270        tr ' ' '\012' < .deps/$(*F).pp \
271          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
272            >> .deps/$(*F).P; \
273        rm .deps/$(*F).pp
274
275%.lo: %.c
276        @echo '$(LTCOMPILE) -c $<'; \
277        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
278        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
279          < .deps/$(*F).pp > .deps/$(*F).P; \
280        tr ' ' '\012' < .deps/$(*F).pp \
281          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
282            >> .deps/$(*F).P; \
283        rm -f .deps/$(*F).pp
284info-am:
285info: info-am
286dvi-am:
287dvi: dvi-am
288check-am: all-am
289check: check-am
290installcheck-am:
291installcheck: installcheck-am
292install-exec-am: install-exec-local
293install-exec: install-exec-am
294
295install-data-am:
296install-data: install-data-am
297
298install-am: all-am
299        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
300install: install-am
301uninstall-am:
302uninstall: uninstall-am
303all-am: Makefile $(PROGRAMS)
304all-redirect: all-am
305install-strip:
306        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
307installdirs:
308
309
310mostlyclean-generic:
311
312clean-generic:
313
314distclean-generic:
315        -rm -f Makefile $(CONFIG_CLEAN_FILES)
316        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
317
318maintainer-clean-generic:
319mostlyclean-am:  mostlyclean-noinstPROGRAMS mostlyclean-compile \
320                mostlyclean-tags mostlyclean-depend mostlyclean-generic
321
322mostlyclean: mostlyclean-am
323
324clean-am:  clean-noinstPROGRAMS clean-compile clean-tags clean-depend \
325                clean-generic mostlyclean-am
326
327clean: clean-am
328
329distclean-am:  distclean-noinstPROGRAMS distclean-compile distclean-tags \
330                distclean-depend distclean-generic clean-am
331
332distclean: distclean-am
333        -rm -f config.status
334
335maintainer-clean-am:  maintainer-clean-noinstPROGRAMS \
336                maintainer-clean-compile maintainer-clean-tags \
337                maintainer-clean-depend maintainer-clean-generic \
338                distclean-am
339        @echo "This command is intended for maintainers to use;"
340        @echo "it deletes files that may require special tools to rebuild."
341
342maintainer-clean: maintainer-clean-am
343        -rm -f config.status
344
345.PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
346clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
347mostlyclean-compile distclean-compile clean-compile \
348maintainer-clean-compile tags mostlyclean-tags distclean-tags \
349clean-tags maintainer-clean-tags distdir mostlyclean-depend \
350distclean-depend clean-depend maintainer-clean-depend info-am info \
351dvi-am dvi check check-am installcheck-am installcheck \
352install-exec-local install-exec-am install-exec install-data-am \
353install-data install-am install uninstall-am uninstall all-redirect \
354all-am all installdirs mostlyclean-generic distclean-generic \
355clean-generic maintainer-clean-generic clean mostlyclean distclean \
356maintainer-clean
357
358
359# HACK: install into the build-tree
360preinstall: install-exec-local
361
362install-exec-local: gensize
363        $(mkinstalldirs) $(PROJECT_ROOT)/${RTEMS_BSP}/bin
364        $(INSTALL_PROGRAM) gensize $(PROJECT_ROOT)/${RTEMS_BSP}/bin
365
366debug-am:
367debug: debug-am
368.PHONY: debug debug-am
369
370debug_install-am:
371debug_install: debug_install-am
372.PHONY: debug_install debug_install-am
373
374profile-am:
375profile: profile-am
376.PHONY: profile profile-am
377
378profile_install-am:
379profile_install: profile_install-am
380.PHONY: profile_install profile_install-am
381
382preinstall-am:
383preinstall: preinstall-am
384.PHONY: preinstall preinstall-am
385
386clobber-am:
387clobber: clobber-am
388.PHONY: clobber clobber-am
389
390depend-am:
391depend: depend-am
392.PHONY: depend depend-am
393
394# Tell versions [3.59,3.63) of GNU make to not export all variables.
395# Otherwise a system limit (for SysV at least) may be exceeded.
396.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.