patch-2.1.132 linux/arch/m68k/kernel/Makefile
Next file: linux/arch/m68k/kernel/m68k_defs.c
Previous file: linux/arch/m68k/defconfig
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Thu Dec 17 09:06:29 1998
- Orig file:
v2.1.131/linux/arch/m68k/kernel/Makefile
- Orig date:
Tue Feb 17 13:12:45 1998
diff -u --recursive --new-file v2.1.131/linux/arch/m68k/kernel/Makefile linux/arch/m68k/kernel/Makefile
@@ -26,10 +26,13 @@
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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov