1 2TARGET = $(TOPDIR)/include/asm-x86_64/offset.h 3 4all: 5 6mrproper: 7 8fastdep: $(TARGET) 9 10.PHONY: all 11 12$(TARGET): offset.h 13 cmp -s $^ $@ || (cp $^ $(TARGET).new && mv $(TARGET).new $(TARGET)) 14 15.PHONY : offset.h all modules modules_install 16 17offset.h: offset.sed offset.c FORCE_RECOMPILE 18 $(CC) $(CFLAGS) -S -o offset.tmp offset.c 19 sed -n -f offset.sed < offset.tmp > offset.h 20 21FORCE_RECOMPILE: 22 23clean: 24 rm -f offset.[hs] $(TARGET).new offset.tmp 25 26mrproper: 27 rm -f offset.[hs] $(TARGET) 28 rm -f $(TARGET) 29 30include $(TOPDIR)/Rules.make 31 32