source: rtems/tools/build/Makefile.in @ 6693a68

4.104.114.84.95
Last change on this file since 6693a68 was 6693a68, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 26, 1999 at 8:00:37 PM

This is part of a major patch from Ralf Corsepius <corsepiu@…>
to move RTEMS more to automake/autoconf and GNU compliance.

Finally, here they are: the "big-patch" patches - merged into one big
patch (~1.5MB).

Sorry for the delay, but testing took much more time than I had expected

  • esp. reworking the acpolish script triggered many more tiny issues than I had expected (cf. below).

At least, now you've got something to spend your weekend with :-.

WARNINGS:

  • I've gone a little (??) further than I had announced before.
  • Several directories have been moved.
  • Several files have been added and removed
  • I have tested it with many BSPs/CPUs and a variety of permutiations of configuration flags, but not with all.
  • Most parts of the patch are automatically generated, however there are many tiny manual modifications.

APPLYING THE PATCH:

./autogen -c
mkdir tools
mv c/src/exec/score/tools tools/cpu
mv c/build-tools tools/build
mv c/update-tools tools/update
patch -p1 -E < rtems-rc-19990709-0.diff
./autogen

If the patch doesn't apply to rtems-cvs, I would suggest that you should
try to apply it brute-force and then to run tools/update/rtems-polish.sh
-ac -am afterwards. A recursive diff between rtems-19990709 + patch and
rtems-cvs + patch then should report only a few dozen significant
changes to configuration files which need to be merged manually (IIRC, I
did not change any source files).

* Attention: There are files to be removed, moved, copied and added
in/to CVS!

NEWS/CHANGES:

  1. Configuration takes place in 3 stages: 1. per host (toplevel configure script), 2. per target (c/configure), 3. per bsp c/src/configure automatically triggered from ./configure and c/Makefile.am.
  2. Building of subdirectory c/ takes place in c/$(target_alias) for cross-targets in c/ for native targets
  3. Building of subdirectory c/src takes place in c/${target_alias}/<bsp> for cross-targets, c/<bsp> for native targets
  4. c/build-tools moved to tools/build
  5. c/src/exec/score/cpu/tools moved to tools/cpu (=cpu-tools split out)
  6. c/update-tools moved to tools/update
  7. New subdirectory c/src/make, handles files from make/ on a per BSP basis
  8. Maintainer mode support: Ie. if configuring with --enable-maintainer-mode disabled (the default), then tracking of many dependencies will be disabled in Makefiles. Esp. many dependencies for auto* generated files will be switched off in Makefiles. Ie. if not using "--enable-maintainer-mode" many auto* generated files will not be updated automatically, i.e. normal users should not be required to have auto* tools anymore (untested).
  9. Independent configuration scripts for / (toplevel), tools/build, tools/cpu, tools/update, c/, c/src/, c/src/exec, c/src/lib, c/src/tests, c/src/make
  10. Automake support for all directories above and besides c/src
  11. "preinstall" now is implemented as depth-first recursive make target
  1. host compiled tools (exception bsp-tools) are accessed in location in the build tree instead of inside the build-tree when building RTEMS.
  2. RTEMS_ROOT and PROJECT_ROOT now point to directories inside the build-tree - many tiny changes as consequence from this.
  3. --with-cross-host support removed (offically announced obsolete by cygnus)
  4. Changing the order of building libraries below c/src/lib/
  5. Former toplevel configure script broken into aclocal/*.m4 macros
  6. Newlib now detected by configure macros, RTEMS_HAS_NEWLIB removed from *cfg.
  7. sptables.h now generated by autoconf
  8. Rules for "mkinstalldirs temporary installation tree" moved from c/Makefile to subdirectories.
  9. Cpu-tools do not get installed.
  10. FIX: Use ACLOCAL_AMFLAGS instead of ACLOCAL = -I ... in Makefile.ams which are in directories with own configure scripts.
  11. Hardcoding BSP names into libbsp/.../tools to avoid RTEMS_BSP get overridden from the environment.
  12. FIX: Handling of MP_PIECES in various Makefiles
  13. FIX: Removing "::" rules from some Makefile.ins
  14. FIX: File permission chaos: (-m 444 and -m 555 vs. -m 644 and -m 755) - Now all include files use -m 644.
  15. Removed many gnumake-conditionals in Makefile.ins - Partially replaced with automake-conditional, partially replaced with conditionalized Makefile variables (... _yes_V)
  16. Massively reworked acpolish: acpolish now parses Makefile.ins and interprets parts of the Makefile.ins.
  17. FIX: Some $(wildcard $(srcdir)/*.h) macros removed / replaced with explicit lists of files in Makefile.ins.
  18. FIX: Replacing MKLIB with RANLIB in Makefile.ins
  19. HACK: Add preinstallation for pc386 specific $(PROJECT_RELEASE)/BootImgs? directory

... many more details, I can't recall

KNOWN BUGS:

  1. make [debug|profile]_install do not do what they are promissing. "make [debug|profile] install" does what "make [debug|profile]_install" has been doing. Proposal: remove [debug|profile]_install
  2. Dependencies between temporary installation tree and source tree are not yet handled correctly.
  3. Dependencies between temporary installation tree and source tree are handled ineffencently (Using INSTALL_CHANGE instead of make dependencies)
  4. RTEMS_ROOT, PROJECT_ROOT, top_builddir, RTEMS_TOPdir now are redundant.
  5. The new configure scripts still are in their infancy. They contain redundant checks and might still contain bugs, too.
  6. RTEMS autoconf Makefile.ins use a mixture of configuration information gathered in c/$(target_alias)/<bsp>/make and of information collected from their configure scripts.
  7. make dist is not fully functional
  8. Subdirectory host-/build-/target- configure options (--target, --host, --build) do not conform to Cygnus/GNU conventions.
  9. Some RTEMS autoconf Makefile.in's makefile targets are not supported in automake Makefile.ams/ins (e.g. get, clobber).
  10. Some automake standard targets are not propagated from toplevel and c/Makefile.am to autoconf subdirectories (eg. make dist).
  11. rpcgen generated files are not part of the source-tree (Automake conventions favor supplying generated files inside the source-tree, however there is no support for rpcgen generated files in automake, cf. yacc/lex support in automake).
  12. RTEMS_HAS_RDBG handling is flaky. make/*.cfg use RTEMS_HAS_RDBG per CPU, while librdb's sources can only be built per BSP. Raises the more general question whether librdbg located correctly in the source-tree.
  13. All make/*cfg files are configured per cpu, currently there is no location to store per-bsp configuration information --> bsp.cfg, per aconfig.h?
  14. "make install" without having run "make all" beforehand does not work.
  15. handling of --enable-multiprocessing seems to be broken in make/custom/*
  16. Makefile.ins still exploit many gmake features.
  17. File permisson chaos on libraries (no explict -m for libraries/rels/etc).
  18. mcp750 Makefiles are broken (Note: I *do* mean buggy - I am not talking about "not-conforming to conventions", here :-).
  19. Dependencies between configure scripts are not handled, eg. aborting "make RTEMS_BSP=<bsp>" can leave the build-tree in an unusable state.
  20. "make clean" does not delete <build-tree>/<bsp>. This is intentional for now, because rerunning "make" after "make clean" requires an explicit "make preinstall" afterwards now. This should be done automatically, but doesn't work in this case for now. To work around this problem <build-tree>/<bsp> is kept during "make clean" for now (HACK).

TODO:

  1. split out host-compiled bsp-tools
  2. Use Cygnus/GNU standards for cross-compiling target-subdir (CC=CC_FOR_TARGET .. configure --host=${target_alias} --build=`config.guess'}), to be added to toplevel configure script after splitting out bsp-tools.
  3. Exploit per cpu support directory (c/src/<cpu>)- Splitting out per-cpu libraries - Are there any?
  4. Further automake support
  5. Converting subdirectories into standalone / self-contained subdirectories (Esp. moving their headers to the same common root as their sources, eg. mv lib/include/rtems++ lib/librtems++/include/rtems++) - This is the main obstacle which prevents moving further towards automake.
  6. Propagating values from *.cfg into Makefiles instead of propagating them at make time via Makefile-fragments (i.e. try to avoid using *.cfg).
  7. Testing on cygwin host (I *do* expect cygwin specific problems).
  8. The ARCH in o-$(ARCH)-$(VARIANT) build-subdirectories is not needed anymore.

GENERAL ISSUES:

  1. Temporary installation tree -- Ian and I seem to disagree basically. Though I think that I understand his argumentation, I do not share it. IMO, his way of using the buildtree is mis-using the build-tree, relying on an inofficial feature of RTEMS's current implementation, which doesn't even work correctly in the current build-tree, though it attempts hard to do so. From my very POV, it unnecessarily complicates the structures of the source- and build-trees. It is not supported by automake (No automatic generation for the necessary rules) and complicates the transition to automake significantly (Generating the rules with an enhanced version of acpolish could be possible). As Ian correctly pointed out, here a management decision is needed - though I don't see the need to draw this decision in short terms.
  1. preinstallation generally is a sure means to spoil the structure of the source tree, IMHO (No ranting intended, I am completly serious about this one). eg. through tree dependencies. The worst problem related to this I have found in the meantime is bsp_specs. bsp_specs is part of libbsp, ie. there is *no* way to build *any* part of the source tree *without* having a BSP *preinstalled*. Note: This issue is related to issue 1., but is not identical - The difference is the change of the order make rules have to be triggered. While preinstallation triggers rules spread all over the source tree before a "make all" can be run, a temporary installation tree could also be installed by post "make all" hooks (all-local:, to be run after make all in a directory is completed) if the directories' dependencies would be a tree,
  1. Stuctural dependencies between subdirectories.
  2. Depth of the source tree (Prevents multilibbing and introduces many unnecessary configure scripts).
  3. per cpu vs. per bsp configuration (There are no real per-cpu parts yets :-).
  4. automake does not support $makefiles in AC_OUTPUT. Unlike before, we now should try to avoid RTEMS_CHECK_MAKEFILE and to hard-code as much paths to Makefiles as possible.
  5. General redesign of the source tree
  6. Main installation point - Changing it to ${prefix}/${target_alias}. ?

Besides item 8. (which is a must, IMHO), as far as I see most of them
can not be solved soon and will remain issues in the mid- to long-term
:-.

REMARKS:

  • You (as the maintainer) should always use --enable-maintainer-mode when building RTEMS to ensure that maintainer mode generated files (esp. those in c/src/make) will be updated when make/* files have changed.
  • Use @RTEMS_BSP@ in Makefile.ins and Makefile.ams below c/src/, $(RTEMS_BSP) or ${RTEMS_BSP} will be overridden from environment variables when using make RTEMS_BSP="....".
  • c/src/make is a temporary cludge until configuration issues are solved. At the moment it is configured per bsp, but contains per-target/cpu info only. Its main purpose now is to circumvent modifying make/*.cfg files, because I consider make/* to be frozen for backward compatibilty.
  • This patch should only affect configuration files. At least I do not remember having touched any source files.
  • To build the bare bsp you now need to mention it in --enable-rtemsbsp.

Example: building gensh1 and sh1/bare simultaneously:
../rtems-rc-19990709-1/configure --target=sh-rtems \
--enable-rtemsbsp="bare gensh1" \
--prefix=/tmp/rtems \
--enable-bare-cpu-cflags='-DMHZ=20 -m1
-DCPU_CONSOLE_DEVNAME=\"/dev/null\"' \
--enable-bare-cpu-model=sh7032 \
--enable-maintainer-mode \
--enable-cxx
make
make install

  • The next steps in development would be to split out bsp-tools and then to change to Cygnus/GNU canonicalization conventions for building the c/ subdirectory afterwards (i.e. many standard AC_*.m4 macros could be used instead of customized versions)

FINAL REMARK:
The issues mentioned in the lists above sound much worser than the
situation actually is. Most of them are not specific to this patch, but
are also valid for the snapshot. I just wrote down what I came across
when working on the patch over the last few weeks.

I wouldn't be too surprised if you don't like the patch at the current
point in development. I am willing to discuss details and problems, I
also have no problem if you would post-pone applying this patch to times
after 4.1, but rejecting it as a whole for all times would be a false
management decision, IMHO.

Therefore I would suggest that you, if your time constaints allow it,
should at least play a little while with this patch to understand what
is going on and before drawing a decision on how to handle this
proposal. I know this patch is neither perfect nor complete, but I
consider it to be a major breakthrough. Don't be anxious because of the
size of the patch, the core of the patch is rather small, the size is
mainly the side effect of some systematic cleanups inside the Makefiles
(result of acpolish).

Feel free to ask if you encounter problems, if you don't understand
something or if you meet bugs - I am far from being perfect and am
prepared to answer them.

Ralf.

--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@… FAX: +49/731/501-999
http://www.faw.uni-ulm.de

  • Property mode set to 100644
File size: 14.2 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 = .
47
48ACLOCAL = @ACLOCAL@
49AUTOCONF = @AUTOCONF@
50AUTOMAKE = @AUTOMAKE@
51AUTOHEADER = @AUTOHEADER@
52
53INSTALL = @INSTALL@
54INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
55INSTALL_DATA = @INSTALL_DATA@
56INSTALL_SCRIPT = @INSTALL_SCRIPT@
57transform = @program_transform_name@
58
59NORMAL_INSTALL = :
60PRE_INSTALL = :
61POST_INSTALL = :
62NORMAL_UNINSTALL = :
63PRE_UNINSTALL = :
64POST_UNINSTALL = :
65host_alias = @host_alias@
66host_triplet = @host@
67CC = @CC@
68EXEEXT = @EXEEXT@
69KSH = @KSH@
70MAINT = @MAINT@
71MAKEINFO = @MAKEINFO@
72PACKAGE = @PACKAGE@
73RTEMS_TOPdir = @RTEMS_TOPdir@
74VERSION = @VERSION@
75
76AUTOMAKE_OPTIONS = foreign 1.4
77ACLOCAL_AMFLAGS = -I $(RTEMS_TOPdir)/aclocal
78
79bin_PROGRAMS = cklength eolstrip packhex unhex
80
81cklength_SOURCES = cklength.c
82eolstrip_SOURCES = eolstrip.c
83packhex_SOURCES = packhex.c
84unhex_SOURCES = unhex.c
85
86bin_SCRIPTS =  install-if-change lock-directory unlock-directory rcs-clean
87
88
89noinst_SCRIPTS = search-id.sh
90ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
91mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
92CONFIG_HEADER = config.h
93CONFIG_CLEAN_FILES =  install-if-change lock-directory rcs-clean \
94unlock-directory
95bin_PROGRAMS =  cklength$(EXEEXT) eolstrip$(EXEEXT) packhex$(EXEEXT) \
96unhex$(EXEEXT)
97PROGRAMS =  $(bin_PROGRAMS)
98
99
100DEFS = @DEFS@ -I. -I$(srcdir) -I.
101CPPFLAGS = @CPPFLAGS@
102LDFLAGS = @LDFLAGS@
103LIBS = @LIBS@
104cklength_OBJECTS =  cklength.o
105cklength_LDADD = $(LDADD)
106cklength_DEPENDENCIES =
107cklength_LDFLAGS =
108eolstrip_OBJECTS =  eolstrip.o
109eolstrip_LDADD = $(LDADD)
110eolstrip_DEPENDENCIES =
111eolstrip_LDFLAGS =
112packhex_OBJECTS =  packhex.o
113packhex_LDADD = $(LDADD)
114packhex_DEPENDENCIES =
115packhex_LDFLAGS =
116unhex_OBJECTS =  unhex.o
117unhex_LDADD = $(LDADD)
118unhex_DEPENDENCIES =
119unhex_LDFLAGS =
120SCRIPTS =  $(bin_SCRIPTS) $(noinst_SCRIPTS)
121
122CFLAGS = @CFLAGS@
123COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
124CCLD = $(CC)
125LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
126DIST_COMMON =  README ./stamp-h.in Makefile.am Makefile.in aclocal.m4 \
127config.h.in configure configure.in install-if-change.in \
128lock-directory.in rcs-clean.in unlock-directory.in
129
130
131DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
132
133TAR = tar
134GZIP_ENV = --best
135DEP_FILES =  .deps/cklength.P .deps/eolstrip.P .deps/packhex.P \
136.deps/unhex.P
137SOURCES = $(cklength_SOURCES) $(eolstrip_SOURCES) $(packhex_SOURCES) $(unhex_SOURCES)
138OBJECTS = $(cklength_OBJECTS) $(eolstrip_OBJECTS) $(packhex_OBJECTS) $(unhex_OBJECTS)
139
140all: all-redirect
141.SUFFIXES:
142.SUFFIXES: .S .c .o .s
143$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/../../automake/local.am
144        cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
145
146Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
147        cd $(top_builddir) \
148          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
149
150$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
151        cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
152
153config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
154        $(SHELL) ./config.status --recheck
155$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
156        cd $(srcdir) && $(AUTOCONF)
157
158config.h: stamp-h
159        @if test ! -f $@; then \
160                rm -f stamp-h; \
161                $(MAKE) stamp-h; \
162        else :; fi
163stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
164        cd $(top_builddir) \
165          && CONFIG_FILES= CONFIG_HEADERS=config.h \
166             $(SHELL) ./config.status
167        @echo timestamp > stamp-h 2> /dev/null
168$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
169        @if test ! -f $@; then \
170                rm -f $(srcdir)/stamp-h.in; \
171                $(MAKE) $(srcdir)/stamp-h.in; \
172        else :; fi
173$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
174        cd $(top_srcdir) && $(AUTOHEADER)
175        @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
176
177mostlyclean-hdr:
178
179clean-hdr:
180
181distclean-hdr:
182        -rm -f config.h
183
184maintainer-clean-hdr:
185install-if-change: $(top_builddir)/config.status install-if-change.in
186        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
187lock-directory: $(top_builddir)/config.status lock-directory.in
188        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
189rcs-clean: $(top_builddir)/config.status rcs-clean.in
190        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
191unlock-directory: $(top_builddir)/config.status unlock-directory.in
192        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
193
194mostlyclean-binPROGRAMS:
195
196clean-binPROGRAMS:
197        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
198
199distclean-binPROGRAMS:
200
201maintainer-clean-binPROGRAMS:
202
203install-binPROGRAMS: $(bin_PROGRAMS)
204        @$(NORMAL_INSTALL)
205        $(mkinstalldirs) $(DESTDIR)$(bindir)
206        @list='$(bin_PROGRAMS)'; for p in $$list; do \
207          if test -f $$p; then \
208            echo "  $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
209             $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
210          else :; fi; \
211        done
212
213uninstall-binPROGRAMS:
214        @$(NORMAL_UNINSTALL)
215        list='$(bin_PROGRAMS)'; for p in $$list; do \
216          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
217        done
218
219.s.o:
220        $(COMPILE) -c $<
221
222.S.o:
223        $(COMPILE) -c $<
224
225mostlyclean-compile:
226        -rm -f *.o core *.core
227
228clean-compile:
229
230distclean-compile:
231        -rm -f *.tab.c
232
233maintainer-clean-compile:
234
235cklength$(EXEEXT): $(cklength_OBJECTS) $(cklength_DEPENDENCIES)
236        @rm -f cklength$(EXEEXT)
237        $(LINK) $(cklength_LDFLAGS) $(cklength_OBJECTS) $(cklength_LDADD) $(LIBS)
238
239eolstrip$(EXEEXT): $(eolstrip_OBJECTS) $(eolstrip_DEPENDENCIES)
240        @rm -f eolstrip$(EXEEXT)
241        $(LINK) $(eolstrip_LDFLAGS) $(eolstrip_OBJECTS) $(eolstrip_LDADD) $(LIBS)
242
243packhex$(EXEEXT): $(packhex_OBJECTS) $(packhex_DEPENDENCIES)
244        @rm -f packhex$(EXEEXT)
245        $(LINK) $(packhex_LDFLAGS) $(packhex_OBJECTS) $(packhex_LDADD) $(LIBS)
246
247unhex$(EXEEXT): $(unhex_OBJECTS) $(unhex_DEPENDENCIES)
248        @rm -f unhex$(EXEEXT)
249        $(LINK) $(unhex_LDFLAGS) $(unhex_OBJECTS) $(unhex_LDADD) $(LIBS)
250
251install-binSCRIPTS: $(bin_SCRIPTS)
252        @$(NORMAL_INSTALL)
253        $(mkinstalldirs) $(DESTDIR)$(bindir)
254        @list='$(bin_SCRIPTS)'; for p in $$list; do \
255          if test -f $$p; then \
256            echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
257            $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
258          else if test -f $(srcdir)/$$p; then \
259            echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
260            $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
261          else :; fi; fi; \
262        done
263
264uninstall-binSCRIPTS:
265        @$(NORMAL_UNINSTALL)
266        list='$(bin_SCRIPTS)'; for p in $$list; do \
267          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
268        done
269
270tags: TAGS
271
272ID: $(HEADERS) $(SOURCES) $(LISP)
273        list='$(SOURCES) $(HEADERS)'; \
274        unique=`for i in $$list; do echo $$i; done | \
275          awk '    { files[$$0] = 1; } \
276               END { for (i in files) print i; }'`; \
277        here=`pwd` && cd $(srcdir) \
278          && mkid -f$$here/ID $$unique $(LISP)
279
280TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
281        tags=; \
282        here=`pwd`; \
283        list='$(SOURCES) $(HEADERS)'; \
284        unique=`for i in $$list; do echo $$i; done | \
285          awk '    { files[$$0] = 1; } \
286               END { for (i in files) print i; }'`; \
287        test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
288          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
289
290mostlyclean-tags:
291
292clean-tags:
293
294distclean-tags:
295        -rm -f TAGS ID
296
297maintainer-clean-tags:
298
299distdir = $(PACKAGE)-$(VERSION)
300top_distdir = $(distdir)
301
302# This target untars the dist file and tries a VPATH configuration.  Then
303# it guarantees that the distribution is self-contained by making another
304# tarfile.
305distcheck: dist
306        -rm -rf $(distdir)
307        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
308        mkdir $(distdir)/=build
309        mkdir $(distdir)/=inst
310        dc_install_base=`cd $(distdir)/=inst && pwd`; \
311        cd $(distdir)/=build \
312          && ../configure --srcdir=.. --prefix=$$dc_install_base \
313          && $(MAKE) $(AM_MAKEFLAGS) \
314          && $(MAKE) $(AM_MAKEFLAGS) dvi \
315          && $(MAKE) $(AM_MAKEFLAGS) check \
316          && $(MAKE) $(AM_MAKEFLAGS) install \
317          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
318          && $(MAKE) $(AM_MAKEFLAGS) dist
319        -rm -rf $(distdir)
320        @banner="$(distdir).tar.gz is ready for distribution"; \
321        dashes=`echo "$$banner" | sed s/./=/g`; \
322        echo "$$dashes"; \
323        echo "$$banner"; \
324        echo "$$dashes"
325dist: distdir
326        -chmod -R a+r $(distdir)
327        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
328        -rm -rf $(distdir)
329dist-all: distdir
330        -chmod -R a+r $(distdir)
331        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
332        -rm -rf $(distdir)
333distdir: $(DISTFILES)
334        -rm -rf $(distdir)
335        mkdir $(distdir)
336        -chmod 777 $(distdir)
337        here=`cd $(top_builddir) && pwd`; \
338        top_distdir=`cd $(distdir) && pwd`; \
339        distdir=`cd $(distdir) && pwd`; \
340        cd $(top_srcdir) \
341          && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
342        @for file in $(DISTFILES); do \
343          d=$(srcdir); \
344          if test -d $$d/$$file; then \
345            cp -pr $$/$$file $(distdir)/$$file; \
346          else \
347            test -f $(distdir)/$$file \
348            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
349            || cp -p $$d/$$file $(distdir)/$$file || :; \
350          fi; \
351        done
352
353DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
354
355-include $(DEP_FILES)
356
357mostlyclean-depend:
358
359clean-depend:
360
361distclean-depend:
362        -rm -rf .deps
363
364maintainer-clean-depend:
365
366%.o: %.c
367        @echo '$(COMPILE) -c $<'; \
368        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
369        @-cp .deps/$(*F).pp .deps/$(*F).P; \
370        tr ' ' '\012' < .deps/$(*F).pp \
371          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
372            >> .deps/$(*F).P; \
373        rm .deps/$(*F).pp
374
375%.lo: %.c
376        @echo '$(LTCOMPILE) -c $<'; \
377        $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
378        @-sed -e 's/^\([^:]*\)\.o[      ]*:/\1.lo \1.o :/' \
379          < .deps/$(*F).pp > .deps/$(*F).P; \
380        tr ' ' '\012' < .deps/$(*F).pp \
381          | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
382            >> .deps/$(*F).P; \
383        rm -f .deps/$(*F).pp
384info-am:
385info: info-am
386dvi-am:
387dvi: dvi-am
388check-am: all-am
389check: check-am
390installcheck-am:
391installcheck: installcheck-am
392all-recursive-am: config.h
393        $(MAKE) $(AM_MAKEFLAGS) all-recursive
394
395install-exec-am: install-binPROGRAMS install-binSCRIPTS
396install-exec: install-exec-am
397
398install-data-am:
399install-data: install-data-am
400
401install-am: all-am
402        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
403install: install-am
404uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS
405uninstall: uninstall-am
406all-am: Makefile $(PROGRAMS) $(SCRIPTS) config.h
407all-redirect: all-am
408install-strip:
409        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
410installdirs:
411        $(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(bindir)
412
413
414mostlyclean-generic:
415
416clean-generic:
417
418distclean-generic:
419        -rm -f Makefile $(CONFIG_CLEAN_FILES)
420        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
421
422maintainer-clean-generic:
423mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
424                mostlyclean-compile mostlyclean-tags mostlyclean-depend \
425                mostlyclean-generic
426
427mostlyclean: mostlyclean-am
428
429clean-am:  clean-hdr clean-binPROGRAMS clean-compile clean-tags \
430                clean-depend clean-generic mostlyclean-am
431
432clean: clean-am
433
434distclean-am:  distclean-hdr distclean-binPROGRAMS distclean-compile \
435                distclean-tags distclean-depend distclean-generic \
436                clean-am
437
438distclean: distclean-am
439        -rm -f config.status
440
441maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
442                maintainer-clean-compile maintainer-clean-tags \
443                maintainer-clean-depend maintainer-clean-generic \
444                distclean-am
445        @echo "This command is intended for maintainers to use;"
446        @echo "it deletes files that may require special tools to rebuild."
447
448maintainer-clean: maintainer-clean-am
449        -rm -f config.status
450
451.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
452mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
453maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
454mostlyclean-compile distclean-compile clean-compile \
455maintainer-clean-compile uninstall-binSCRIPTS install-binSCRIPTS tags \
456mostlyclean-tags distclean-tags clean-tags maintainer-clean-tags \
457distdir mostlyclean-depend distclean-depend clean-depend \
458maintainer-clean-depend info-am info dvi-am dvi check check-am \
459installcheck-am installcheck all-recursive-am install-exec-am \
460install-exec install-data-am install-data install-am install \
461uninstall-am uninstall all-redirect all-am all installdirs \
462mostlyclean-generic distclean-generic clean-generic \
463maintainer-clean-generic clean mostlyclean distclean maintainer-clean
464
465
466debug-am:
467debug: debug-am
468.PHONY: debug debug-am
469
470debug_install-am:
471debug_install: debug_install-am
472.PHONY: debug_install debug_install-am
473
474profile-am:
475profile: profile-am
476.PHONY: profile profile-am
477
478profile_install-am:
479profile_install: profile_install-am
480.PHONY: profile_install profile_install-am
481
482preinstall-am:
483preinstall: preinstall-am
484.PHONY: preinstall preinstall-am
485
486clobber-am:
487clobber: clobber-am
488.PHONY: clobber clobber-am
489
490depend-am:
491depend: depend-am
492.PHONY: depend depend-am
493
494# Tell versions [3.59,3.63) of GNU make to not export all variables.
495# Otherwise a system limit (for SysV at least) may be exceeded.
496.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.