1# Makefile for MIPS kernel build tools. 2# 3# Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) 4# Copyright (C) 1997 Ralf Baechle (ralf@gnu.ai.mit.edu) 5# 6TARGET := $(TOPDIR)/include/asm-$(ARCH)/offset.h 7 8USE_STANDARD_AS_RULE := true 9 10$(TARGET): offset.h 11 cmp -s $^ $@ || (cp $^ $(TARGET).new && mv $(TARGET).new $(TARGET)) 12 13offset.h: offset.s 14 sed -n '/^@@@/s///p' $^ >$@ 15 16offset.s: offset.c $(TOPDIR)/include/linux/autoconf.h 17 18clean: 19 rm -f offset.[hs] $(TARGET).new 20 21mrproper: clean 22 rm -f $(TARGET) 23 24include $(TOPDIR)/Rules.make 25