This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / arch / um / kernel / skas / Makefile
index 72c7995..85f9469 100644 (file)
@@ -5,20 +5,24 @@
 
 obj-y = exec_kern.o exec_user.o mem.o mem_user.o mmu.o process.o \
        process_kern.o syscall_kern.o syscall_user.o time.o tlb.o trap_user.o \
-       sys-$(SUBARCH)/
+       uaccess.o sys-$(SUBARCH)/
+
+host-progs     := util/mk_ptregs
+clean-files    := include/skas_ptregs.h
 
 USER_OBJS = $(filter %_user.o,$(obj-y)) process.o time.o
 USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
 
-include/skas_ptregs.h : util/mk_ptregs
-       util/mk_ptregs > $@
-
-util/mk_ptregs :
-       $(MAKE) -C util
+$(TOPDIR)/arch/um/include/skas_ptregs.h : $(src)/util/mk_ptregs
+       @echo -n '  Generating $@'
+       @$< > $@.tmp
+       @if [ -r $@ ] && cmp -s $@ $@.tmp; then \
+               echo ' (unchanged)'; \
+               rm -f $@.tmp; \
+       else \
+               echo ' (updated)'; \
+               mv -f $@.tmp $@; \
+       fi
 
 $(USER_OBJS) : %.o: %.c
        $(CC) $(CFLAGS_$(notdir $@)) $(USER_CFLAGS) -c -o $@ $<
-
-clean :
-       $(MAKE) -C util clean
-       $(RM) -f include/skas_ptregs.h