summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-02-26 04:26:44 +0000
committerRoland McGrath <roland@gnu.org>2001-02-26 04:26:44 +0000
commitad6dbaf6541730c0c98f509425464491bb3062a0 (patch)
treeb09df8266b8fc732f5a4fb9afd0b817f640c2435
parentd46d0726fb7a48723ed128e1ca8366b58b7ba5d0 (diff)
2001-02-25 Roland McGrath <roland@frob.com>
* Makefile (asm/checksum.h): New target. (CPPFLAGS): Don't set _HURD_SYSTYPE. * glue-include/asm/checksum.h: File removed.
-rw-r--r--pfinet/Makefile9
-rw-r--r--pfinet/glue-include/asm/checksum.h5
2 files changed, 7 insertions, 7 deletions
diff --git a/pfinet/Makefile b/pfinet/Makefile
index 3343b050..35e30baa 100644
--- a/pfinet/Makefile
+++ b/pfinet/Makefile
@@ -87,11 +87,16 @@ vpath %.c $(addprefix $(srcdir)/linux-src/net/,core ethernet ipv4)
vpath %.c $(srcdir)/linux-src/arch/$(asm_syntax)/lib
vpath %.S $(srcdir)/linux-src/arch/$(asm_syntax)/lib
-CPPFLAGS += '-D_HURD_SYSTYPE="$(asm_syntax)"' \
- -imacros $(srcdir)/config.h \
+CPPFLAGS += -imacros $(srcdir)/config.h \
-I$(srcdir)/glue-include \
-I$(srcdir)/linux-src/include
+asm/checksum.h: ../config.status
+ mkdir -p $(@D)
+ echo > $@.new \
+ '#include "../linux-src/include/asm-$(asm_syntax)/checksum.h"'
+ mv -f $@.new $@
+
io-MIGSFLAGS = -imacros $(srcdir)/mutations.h
socket-MIGSFLAGS = -imacros $(srcdir)/mutations.h
diff --git a/pfinet/glue-include/asm/checksum.h b/pfinet/glue-include/asm/checksum.h
deleted file mode 100644
index 5bcf7551..00000000
--- a/pfinet/glue-include/asm/checksum.h
+++ /dev/null
@@ -1,5 +0,0 @@
-/* This is the only file from the Linux include/asm-* directory
- that we use, so we use this magic file here rather than making a
- symlink asm -> .../linux-src/include/asm-SYSTYPE somewhere. */
-
-#include "../../linux-src/include/asm-" _HURD_SYSTYPE "/checksum.h"