Import 2.3.9pre5
[davej-history.git] / arch / mips / tools / Makefile
blobdf81fac5c2120d4042bc077c805f62de30bc048e
1 # Makefile for MIPS kernel build tools.
3 # Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
4 # Copyright (C) 1997 Ralf Baechle (ralf@gnu.ai.mit.edu)
6 # $Id: Makefile,v 1.2 1997/12/01 17:57:41 ralf Exp $
8 TARGET := $(TOPDIR)/include/asm-$(ARCH)/offset.h
10 .S.s:
11 $(CPP) $(CFLAGS) $< -o $*.s
12 .S.o:
13 $(CC) $(CFLAGS) -c $< -o $*.o
15 all: $(TARGET)
17 $(TARGET): offset.h
18 cmp -s $^ $@ || (cp $^ $(TARGET).new && mv $(TARGET).new $(TARGET))
20 offset.h: offset.s
21 sed -n '/^@@@/s///p' $^ >$@
23 offset.s: offset.c
25 clean:
26 rm -f offset.[hs] $(TARGET).new
28 include $(TOPDIR)/Rules.make