Makefile 556 Bytes
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# Makefile for MIPS kernel build tools.
#
# Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
# Copyright (C) 1997 Ralf Baechle (ralf@gnu.ai.mit.edu)
#
# $Id: Makefile,v 1.2 1997/09/23 06:23:49 ralf Exp $
#
TARGET	:= $(TOPDIR)/include/asm-$(ARCH)/offset.h

$(TARGET): offset.h
	cmp -s $^ $@ || (cp $^ $(TARGET).new && mv $(TARGET).new $(TARGET))

offset.h: offset.s
	sed -n '/^@@@/s///p' $^ >$@

offset.s: offset.c $(TOPDIR)/include/linux/autoconf.h

clean:
	rm -f offset.[hs] $(TARGET).new
Kai Germaschewski's avatar
Kai Germaschewski committed
20

Linus Torvalds's avatar
Linus Torvalds committed
21 22 23
mrproper:	
	rm -f offset.[hs] $(TARGET).new
	rm -f $(TARGET)