summaryrefslogtreecommitdiffstats
path: root/arch/mips64/tools/Makefile
blob: 79e46e7d244da4aa9388ebaf65cb897477ff8b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id: Makefile,v 1.1 1999/08/18 21:46:53 ralf Exp $
#
# Makefile for MIPS kernel build tools.
#
# Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
# Copyright (C) 1997, 1999 Ralf Baechle (ralf@gnu.org)
# Copyright (C) 1999 Silicon Graphics, Inc.
#
TARGET	:= $(TOPDIR)/include/asm-$(ARCH)/offset.h

.S.s:
	$(CPP) $(CFLAGS) $< -o $*.s
.S.o:
	$(CC) $(CFLAGS) -c $< -o $*.o

fastdep: $(TARGET)

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

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

offset.s: offset.c

clean:
	rm -f offset.[hs] $(TARGET).new
	rm $(TARGET)
	touch $(TARGET)

include $(TOPDIR)/Rules.make