summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"