Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #
  2. # Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
  3. # Licensed under the GPL
  4. #
  5. extra-y := vmlinux.lds
  6. clean-files :=
  7. obj-y = config.o exec.o exitcode.o init_task.o irq.o ksyms.o mem.o \
  8. physmem.o process.o ptrace.o reboot.o sigio.o \
  9. signal.o smp.o syscall.o sysrq.o time.o tlb.o trap.o uaccess.o \
  10. um_arch.o umid.o
  11. obj-$(CONFIG_BLK_DEV_INITRD) += initrd.o
  12. obj-$(CONFIG_GPROF) += gprof_syms.o
  13. obj-$(CONFIG_GCOV) += gmon_syms.o
  14. obj-$(CONFIG_MODE_TT) += tt/
  15. obj-$(CONFIG_MODE_SKAS) += skas/
  16. USER_OBJS := config.o
  17. include arch/um/scripts/Makefile.rules
  18. targets := config.c config.tmp
  19. # Be careful with the below Sed code - sed is pitfall-rich!
  20. # We use sed to lower build requirements, for "embedded" builders for instance.
  21. $(obj)/config.tmp: $(objtree)/.config FORCE
  22. $(call if_changed,quote1)
  23. quiet_cmd_quote1 = QUOTE $@
  24. cmd_quote1 = sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' \
  25. $< > $@
  26. $(obj)/config.c: $(src)/config.c.in $(obj)/config.tmp FORCE
  27. $(call if_changed,quote2)
  28. quiet_cmd_quote2 = QUOTE $@
  29. cmd_quote2 = sed -e '/CONFIG/{' \
  30. -e 's/"CONFIG"\;/""/' \
  31. -e 'r $(obj)/config.tmp' \
  32. -e 'a \' \
  33. -e '""\;' \
  34. -e '}' \
  35. $< > $@