summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-23 00:06:22 +0000
committerRoland McGrath <roland@gnu.org>2002-05-23 00:06:22 +0000
commit41ab0f143fe525c7fb7a30fbc5dd31e755936dbd (patch)
treede264a3a54f2a9c47e8557dafadf1c3948999cad /Makefile.in
parent6b1623e40f59086ecfa7fa44546de0af8bbc85d2 (diff)
2002-05-22 Roland McGrath <roland@frob.com>
* configure.in (VERSION): New substituted variable: set to 1.3 now. (version.c): Add it to AC_OUTPUT. * configure: Regenerated. * Makefile.in (version): New variable, set from that. Remove vpath directive for version.c, not found in build dir. (topfiles): version.c -> version.c.in * doc/Makefile.in (mach-version): Substituted instead of constant. * version.c: File removed, replaced with ... * version.c.in: ... this new file. (version): Make it const. Use @VERSION@ for the number. * Makefile.in (debian-files): Add postinst and prerm. (dist): Use gzip -9 instead of tar z. * Makefile.in (%.migs_d, %.migu_d): Fix sed substitution to match whatever target file name gcc comes up with. (%.migs_d, %.migu_d, %.symc.o, %_user.c, %_server.c): Depend on $(before-compile).
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in
index 2212756..484a7bf 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -19,6 +19,7 @@
srcdir=@srcdir@
systype=@systype@
prefix=@prefix@
+version = @VERSION@
exec_prefix=$(prefix)
@@ -68,7 +69,7 @@ all-archs-configures = $(patsubst %,$(srcdir)/%/configure,$(all-archs))
# Files distributed from the top level directory:
topfiles = ChangeLog ChangeLog.0 ChangeLog.00 Drivers.macros Makefile.in \
README INSTALL config.guess config.sub configure configure.in \
- gensym.awk install-sh version.c NEWS aclocal.m4 COPYING
+ gensym.awk install-sh version.c.in NEWS aclocal.m4 COPYING
# All the source in each directory.
@@ -167,7 +168,7 @@ vm-files = $(vm-cfiles) memory_object_default.cli memory_object_user.cli \
doc-files = Makefile.in fdl.texi gpl.texi mach.texi
# Debian packaging
-debian-files = changelog control copyright README.Debian rules
+debian-files = changelog control copyright README.Debian rules postinst prerm
# Object files that go into the kernel image. (This will be augmented by the
@@ -194,7 +195,6 @@ vpath %.c $(srcdir)/ddb
# Version number
objfiles += version.o
-vpath version.c $(srcdir)
# Header files installed for user use
@@ -393,7 +393,7 @@ dist:
cp $(srcdir)/$$file gnumach-$(version)/`dirname $$file`; \
done
chmod -R u=rwX,og=rX gnumach-$(version)
- tar cfz gnumach-$(version).tar.gz gnumach-$(version)
+ tar cf - gnumach-$(version) | gzip -9vc > gnumach-$(version).tar.gz
rm -rf gnumach-$(version)
@@ -428,18 +428,18 @@ vpath configure $(srcdir)
# Building foo.h from foo.sym:
%.symc: %.sym $(srcdir)/gensym.awk
$(AWK) -f $(word 2,$^) $< > $@
-%.symc.o: %.symc
+%.symc.o: %.symc $(before-compile)
$(CC) -S $(CPPFLAGS) $(CFLAGS) $(CPPFLAGS-$@) -x c -o $@ $<
%.h: %.symc.o
sed <$< -e 's/^[^*].*$$//' | \
sed -e 's/^[*]/#define/' -e 's/mAgIc[^-0-9]*//' >$@
# Building from foo.cli
-%.h %_user.c: %.cli
+%.h %_user.c: %.cli $(before-compile)
$(MIG) $(MIGFLAGS) -header $*.h -user $*_user.c -server /dev/null $<
# Building from foo.srv
-%_interface.h %_server.c: %.srv
+%_interface.h %_server.c: %.srv $(before-compile)
$(MIG) $(MIGFLAGS) -sheader $*_interface.h -server $*_server.c \
-header /dev/null -user /dev/null $<
@@ -467,13 +467,13 @@ endif
# Here is how to make those dependency files
-%.migs_d: %.srv
+%.migs_d: %.srv $(before-compile)
(set -e; $(CPP) $(MIGFLAGS) -M -MG -x c $< | \
- sed -e 's/\.srv\.o:/_server.c $@:/' > $@)
+ sed -e 's/[^:]*:/$(@:.migs_d=_server.c) $@:/' > $@)
-%.migu_d: %.cli
+%.migu_d: %.cli $(before-compile)
(set -e; $(CPP) $(MIGFLAGS) -M -MG -x c $< | \
- sed -e 's/\.cli\.o:/_user.c $@:/' > $@)
+ sed -e 's/[^:]*:/$(@:.migu_d=_user.c) $@:/' > $@)
%.migsh_d: %.migs_d
sed -e 's/_server\.c /_interface.h /' -e 's/migs_d/migsh_d/' < $< > $@