summaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel/Makefile
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-02-15 02:15:32 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-02-15 02:15:32 +0000
commit86464aed71025541805e7b1515541aee89879e33 (patch)
treee01a457a4912a8553bc65524aa3125d51f29f810 /arch/m68k/kernel/Makefile
parent88f99939ecc6a95a79614574cb7d95ffccfc3466 (diff)
Merge with Linux 2.2.1.
Diffstat (limited to 'arch/m68k/kernel/Makefile')
-rw-r--r--arch/m68k/kernel/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/m68k/kernel/Makefile b/arch/m68k/kernel/Makefile
index 977120c1e..280a5b450 100644
--- a/arch/m68k/kernel/Makefile
+++ b/arch/m68k/kernel/Makefile
@@ -26,10 +26,13 @@ endif
head.o: head.S m68k_defs.h
-m68k_defs.h: m68k_defs.c m68k_defs.head $(TOPDIR)/include/linux/sched.h
- $(CC) ${CFLAGS} -S m68k_defs.c
+m68k_defs.h: m68k_defs.c m68k_defs.head
+ rm -f m68k_defs.d
+ SUNPRO_DEPENDENCIES="m68k_defs.d m68k_defs.h" \
+ $(CC) $(filter-out -MD,$(CFLAGS)) -S m68k_defs.c
cp m68k_defs.head m68k_defs.h
- sed -n < m68k_defs.s >> m68k_defs.h '/^#define/s/ #/ /p'
+ grep '^#define' m68k_defs.s >> m68k_defs.h
rm m68k_defs.s
+-include m68k_defs.d
include $(TOPDIR)/Rules.make